X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=warning.h;h=dcd2bd9c75a9467ff67762b7170c40f370c47288;hb=42e9d19f816a47115767a727e8a0c25ba49262cc;hp=74bfd102a64a492ac3d3f6afc65d0158d3a9e66b;hpb=7e1e9905b52db878b7f0be8efb8af52202934ade;p=cparser diff --git a/warning.h b/warning.h index 74bfd10..dcd2bd9 100644 --- a/warning.h +++ b/warning.h @@ -46,6 +46,7 @@ typedef enum warning_t { WARN_DECLARATION_AFTER_STATEMENT, /**< Warn when a declaration is found after a statement in a block */ WARN_DEPRECATED_DECLARATIONS, /* TODO implement for types */ /**< Warn about uses of functions, variables and types marked as deprecated by using the 'deprecated' attribute */ WARN_DIV_BY_ZERO, /**< Warn about compile-time integer division by zero */ + WARN_EMPTY_BODY, /**< Warn about an empty body of an if or else statement */ WARN_EMPTY_STATEMENT, /**< Warn about empty statements, i.e. lone ';' */ #if 0 // TODO WARN_ENDIF_LABELS, /**< Warn whenever an '#else' or an '#endif' are followed by text */ @@ -54,6 +55,7 @@ typedef enum warning_t { WARN_FATAL_ERRORS, /**< First error stops the compilation */ WARN_FLOAT_EQUAL, /**< Warn if floating point values are used in equality comparisons */ WARN_FORMAT, /**< Check printf-style format strings */ + WARN_IGNORED_QUALIFIERS, /**< Warn when type qualifiers are meaningless */ WARN_IMPLICIT_FUNCTION_DECLARATION, /**< Warn whenever a function is used before being declared */ WARN_IMPLICIT_INT, /**< Warn when a declaration does not specify a type */ #if 0 // TODO @@ -92,6 +94,7 @@ typedef enum warning_t { WARN_SHADOW, /**< Warn whenever a local variable shadows another local variable, parameter or global variable or whenever a built-in function is shadowed */ WARN_SHADOW_LOCAL, WARN_SIGN_COMPARE, /**< Warn when a comparison between signed and unsigned values could produce an incorrect result when the signed value is converted to unsigned */ + WARN_STRAY_SEMICOLON, /**< Warn about stray semicolons outside of functions */ #if 0 // TODO WARN_STRICT_ALIASING, /**< Warn about code which might break the strict aliasing rules that the compiler is using for optimization. */ #endif