implemented -Wall, -Wextra, -Wunused, -Wunused-function with limited
[cparser] / warning.h
index 87fc35a..fb82953 100644 (file)
--- a/warning.h
+++ b/warning.h
@@ -72,8 +72,8 @@ 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 */
-       bool unused_function:1;               /**< Warn whenever a static function is declared but not defined or a non-inline static function is unused */
 #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 */