Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
GCC_V
GCC_V

 

Checker

Guideline

DCL31-C. Declare identifiers before using themDCL36-C. Do not declare an identifier with conflicting linkage classificationsEXP30-C. Do not depend on the order of evaluation for side effects
-Wchar-subscriptsSTR34-C. Cast characters to unsigned char before converting to larger integer sizes
-Wunused-parameterMSC12-C. Detect and remove code that has no effect or is never executed
-Wunused-valueMSC12-C. Detect and remove code that has no effect or is never executed
Can detect some violations of this recommendation when the -Wswitch and -Wswitch-default flags are usedMSC01-C. Strive for logical completeness
Can detect some violations of this rule when the -Wcast-align flag is usedEXP32-C. Do not access a volatile object through a nonvolatile referenceEXP33-C. Do not read uninitialized memoryEXP36-C. Do not cast pointers into more strictly aligned pointer types
Can detect some   violations of this rule when the -Wuninitialized flag is usedEXP33-C. Do not read uninitialized memory
Can detect violation of this recommendation when the -Wstrict-prototypes flag is usedDCL07-C. Include the appropriate type information in function declarators
Can detect violation of this recommendation when the -Wtrigraphs flag is usedPRE07-C. Avoid using repeated question marks
Can detect violation of this rule when the -Wstrict-prototypes flag is used. However, it cannot detect violations involving variadic functions, such as the open() example described earlierEXP37-C. Call functions with the correct number and type of arguments
Can detect violations of this recommendation when the -Wall flag is usedEXP45-C. Do not perform assignments in selection statements
Can detect violations of this recommendation when the -Wall flag is usedEXP16-C. Do not compare function pointers to constant values
Can detect violations of this recommendation when the -Wcast-qual flag is usedFIO30-C. Exclude user input from format stringsFIO47-C. Use valid format stringsDCL07-C. Include the appropriate type information in function declaratorsDCL11-C. Understand the type issues associated with variadic functionsEXP05-C. Do not cast away a const qualification
Can detect violations of this recommendation when the -Wformat flag is usedFIO47-C. Use valid format strings
Can detect violations of this recommendation when the -Wunreachable-code flag is usedMSC07EXP13-C. Treat relational and equality operators as if they were nonassociativeDetect and remove dead code
Can detect violations of this rule when the -Wcast-qual flag is usedEXP32EXP16-C. Do not compare function pointers to constant valuesMSC01-C. Strive for logical completenessaccess a volatile object through a nonvolatile reference
Can detect violations of this rule when the -Wcomment flag is usedMSC04-C. Use comments consistently and in a readable fashionMSC07-C. Detect and remove dead codePRE07-C. Avoid using repeated question marks
-Wchar-subscriptsSTR34-C. Cast characters to unsigned char before converting to larger integer sizes
-Wunused-parameterMSC12-C. Detect and remove code that has no effect or is never executed
Can detect violations of this rule when the -Wformat-security flag is usedFIO30-C. Exclude user input from format strings
Can detect violations of this rule when the -Wimplicit and -Wreturn-type flags are usedDCL31-C. Declare identifiers before using them
Can detect violations of this rule when the -Wsequence-point flag is usedEXP30-C. Do not depend on the order of evaluation for side effects
Option -Wparentheses warns if a comparison like x<=y<=z appears; this warning is also enabled by -WallEXP13-C. Treat relational and equality operators as if they were nonassociative
Warns about inconsistently typed arguments to formatted output functions when the -Wall is usedDCL11-C. Understand the type issues associated with variadic functions-Wunused-valueMSC12-C. Detect and remove code that has no effect or is never executed

>