Skip to content

compilation warnings due to missing storm32 feature #264

@danieleades

Description

@danieleades

There are compilation warnings on master due to missing storm32 feature.

The code-gen generates a storm32 cfg attribute, since this dialect is described in the mavlink message definitions, however Cargo.toml contains no such feature.

The warning should be addressed or suppressed.

warning: `mavlink-core` (lib) generated 1 warning
   Compiling mavlink v0.13.2 (/home/dan/Code/rust/rust-mavlink/mavlink)
warning: `mavlink-core` (lib test) generated 1 warning (1 duplicate)
warning: unexpected `cfg` condition value: `storm32`
 --> /home/dan/Code/rust/rust-mavlink/target/debug/build/mavlink-60b3f9a616716175/out/mod.rs:1:1960
  |
1 | ...:: unnecessary_cast)] # [allow (clippy :: bad_bit_mask)] # [cfg (feature = "storm32")] pub mod storm32 ; # [allow (non_camel_case_types)] # [allow (cl...
  |                                                                     ^^^^^^^^^^^^^^^^^^^
  |
  = note: expected values for `feature` are: `all`, `all-dialects`, `ardupilotmega`, `asluav`, `avssuas`, `common`, `cubepilot`, `default`, `development`, `direct-serial`, `embedded`, `embedded-hal-02`, `emit-description`, `emit-extensions`, `format-generated-code`, `icarous`, `matrixpilot`, `minimal`, `paparazzi`, `python_array_test`, `serde`, `slugs`, `standard`, `std`, `tcp`, `test`, `tokio-1`, `ualberta`, `uavionix`, and `udp`
  = help: consider adding `storm32` as a feature in `Cargo.toml`
  = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
  = note: `#[warn(unexpected_cfgs)]` on by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions