-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressA false positive or false negative report which is expected to take <1 day effort to addressImpact-MediumStandard-AUTOSARfalse positive/false negativeAn issue related to observed false positives or false negatives.An issue related to observed false positives or false negatives.
Description
Affected rules
- A1-1-2
Description
Currently, A1-1-2 reports compilations that do not specify at least one flag of type -Wfoo
. However, clang and gcc both give priority to -w
(the flag to suppress errors). Therefore, -w -Wfoo
will not show warnings, and should be captured by A1-1-2, but it currently is not.
Note, codeql run test
seems to automatically and unconditionally extract with a -w
flag. Therefore, it seems that creating a set of compliant/non compliant tests cannot be done with the current test infrastructure.
Example
g++ -w -Wformat test.cpp
clang++ -w -Wformat test.cpp
Metadata
Metadata
Assignees
Labels
Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressA false positive or false negative report which is expected to take <1 day effort to addressImpact-MediumStandard-AUTOSARfalse positive/false negativeAn issue related to observed false positives or false negatives.An issue related to observed false positives or false negatives.
Type
Projects
Status
Done