Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A1-1-2: does not understand -Wno-* flags #689

Open
Labels
Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to address Impact-Medium Standard-AUTOSAR false positive/false negativeAn issue related to observed false positives or false negatives.
@MichaelRFairhurst

Description

Affected rules

  • A1-1-2

Description

This rule looks for compilations with no warning flags. However, it will falsely detect -Wno-* flags as if they are warning flags.

Notably, gcc is often built with -Wformat enabled by default. This can be suppressed with -Wno-format, which would cause the false negative.

Note the same issue exists with -w which suppresses all -W* flags, which is failing linux/gcc tests, and I created #688 to fix. However, this issue is, philosophically, one step further yet than that PR in terms of altering current behavior.

Example

g++ -Wno-format test.cpp

Metadata

Metadata

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to address Impact-Medium Standard-AUTOSAR false positive/false negativeAn issue related to observed false positives or false negatives.

Type

No type

Projects

Status

Triaged

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /