ast2firm: Factorise code to convert a value to its storage type.
[cparser] / warning.h
index 1d3acf8..dcd2bd9 100644 (file)
--- 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,9 +55,9 @@ 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 */
-       WARN_INIT_SELF,                     /**< Warn about uninitialized variables which are initialized with themselves. */
 #if 0 // TODO
        WARN_INLINE,                        /**< Warn if a function can not be inlined and it was declared as inline */
        WARN_INT_TO_POINTER_CAST,           /**< Warn if cast from integer to pointer of different size. */
@@ -93,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