Implement -Wdeclaration-after-statement.
[cparser] / warning.h
index 24ae114..0229078 100644 (file)
--- a/warning.h
+++ b/warning.h
@@ -37,8 +37,8 @@ typedef struct warning_t {
        bool cast_align:1;                    /**< Warn whenever a pointer is cast such that the required alignment of the target is increased */
        bool cast_qual:1;                     /**< Warn whenever a pointer is cast so as to remove a type qualifier from the target type */
        bool conversion:1;                    /**< Warn if a prototype causes a type conversion that is different from what would happen to the same argument in the absence of a prototype */
-       bool declaration_after_statement:1;   /**< Warn when a declaration is found after a statement in a block */
 #endif
+       bool declaration_after_statement:1;   /**< Warn when a declaration is found after a statement in a block */
        bool deprecated_declarations:1;       /* TODO implement for types */ /**< Warn about uses of functions, variables and types marked as deprecated by using the 'deprecated' attribute */
 #if 0 // TODO
        bool div_by_zero:1;                   /**< Warn about compile-time integer division by zero */