X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=warning.h;h=42ea5db1da4e65d864cbdfca4ef022b0ddebcb75;hb=0e0d9e91feb751e06cd57d7ae07cf84d7b3dc342;hp=b53d2b32cdf5bbbe0f1fd11ae443fb4781bee5b5;hpb=c6083a78b21bc4e8a9bed0fe21b042b873e23fc7;p=cparser diff --git a/warning.h b/warning.h index b53d2b3..42ea5db 100644 --- a/warning.h +++ b/warning.h @@ -1,6 +1,6 @@ /* * This file is part of cparser. - * Copyright (C) 2007-2008 Matthias Braun + * Copyright (C) 2007-2009 Matthias Braun * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -77,9 +77,7 @@ typedef struct warning_t { bool old_style_definition:1; /**< Warn if an old-style function definition is used. */ bool packed:1; /**< Warn if a structure is given the packed attribute, but the packed attribute has no effect on the layout or size of the structure */ bool padded:1; /**< Warn if padding is included in a structure, either to align an element of the structure or to align the whole structure */ -#if 0 // TODO bool parentheses:1; /**< Warn if parentheses are omitted in certain contexts (assignment where truth value is expected, if-else-braces) */ -#endif bool pointer_arith:1; /**< Warn about anything that depends on the "size of" a function type or of 'void' */ #if 0 // TODO bool pointer_to_int_cast:1; /**< Warn if cast from pointer to integer of different size. */ @@ -101,8 +99,8 @@ typedef struct warning_t { bool traditional:1; /**< Warn about certain constructs that behave differently in traditional and ISO C */ #if 0 // TODO 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. */ #endif + 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 */ 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 */