Simplify condition.
[cparser] / warning.h
index 327cb6d..f1eafb7 100644 (file)
--- a/warning.h
+++ b/warning.h
@@ -19,6 +19,9 @@ typedef struct warning_t {
        bool declaration_after_statement:1;   /* Warn when a declaration is found after a statement in a block */
        bool deprecated_declarations:1;       /* Warn about uses of functions, variables and types marked as deprecated by using the 'deprecated' attribute */
        bool div_by_zero:1;                   /* Warn about compile-time integer division by zero */
+#endif
+       bool empty_statement:1;               /* Warn about empty statements, i.e. lone ';'  */
+#if 0 // TODO
        bool endif_labels:1;                  /* Warn whenever an '#else' or an '#endif' are followed by text */
 #endif
        bool fatal_errors:1;                  /* First error stops the compilation */
@@ -65,7 +68,9 @@ typedef struct warning_t {
        bool traditional:1;                   /* Warn about certain constructs that behave differently in traditional and ISO C */
        bool undef:1;                         /* Warn if an undefined identifier is evaluated in an '#if' directive */
        bool uninitialized:1;                 /* Warn if an automatic variable is used without being initialized or if a variable may be clobbered by a 'setjmp' call. */
-       bool unknown_pragmas:1;               /* Warn when a #pragma directive is encountered which is not understood by GCC */
+#endif
+       bool unknown_pragmas:1;               /* Warn when a #pragma directive is encountered which is not understood */
+#if 0 // TODO
        bool unreachable_code:1;              /* Warn if the compiler detects that code will never be executed */
        bool unused_function:1;               /* Warn whenever a static function is declared but not defined or a non-inline static function is unused */
        bool unused_label:1;                  /* Warn whenever a label is declared but not used */