X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=warning.h;h=d45c4609ad8204066847b73eb4a66334fde3a233;hb=b8df54059f5ceb0bb6c767aaaf94840dc0b38e25;hp=6ebcd40bfdbd4ab4d94fc3f3d753bd5ab1eed6c2;hpb=1465a73b88bc8189d767535d74e6748e8ac0821e;p=cparser diff --git a/warning.h b/warning.h index 6ebcd40..d45c460 100644 --- 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