Accept -Wno-all, -Wno-extra and -Wno-unused like GCC.
[cparser] / warning.h
index 6ebcd40..d45c460 100644 (file)
--- a/warning.h
+++ b/warning.h
@@ -72,12 +72,12 @@ typedef struct warning_t {
        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 */
+#endif
        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 */
        bool unused_parameter:1;              /**< Warn whenever a function parameter is unused aside from its declaration */
-       bool unused_variable:1;               /**< Warn whenever a local variable or non-constant static variable is unused aside from its declaration */
-#endif
        bool unused_value:1;                  /**< Warn whenever a statement computes a result that is explicitly not used */
+       bool unused_variable:1;               /**< Warn whenever a local variable or non-constant static variable is unused aside from its declaration */
 #if 0 // TODO
        bool write_strings:1;                 /**< Give string constants the type 'const char[LENGTH]' so that copying the address of one into a 'char *' pointer will get a warning */
 #endif