X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=warning.h;h=90f3ca6788e853b1e0f8a092bd5ac29fc6510a4b;hb=0179066555a419d66893a5ca3bb36aadc2317705;hp=48352e53844a21a46b5a79b8a2b923f40059d144;hpb=ba0d46aeb8456932335728047230840ef65fdcf4;p=cparser diff --git a/warning.h b/warning.h index 48352e5..90f3ca6 100644 --- a/warning.h +++ b/warning.h @@ -25,6 +25,9 @@ void set_warning_opt(const char *opt); typedef struct warning_t { + bool other:1; /**< Warnings not covered by any option below */ + + bool address:1; /**< Warn about suspicious uses of memory addresses */ bool aggregate_return:1; /**< Warn if any functions that return structures or unions are defined or called */ bool attribute:1; /**< Warn if an unexpected `__attribute__' is used or function attributes applied to variables, etc. */ #if 0 // TODO @@ -70,10 +73,10 @@ typedef struct warning_t { bool multichar:1; /**< Warn if a multicharacter constant ('FOOF') is used. */ bool nested_externs:1; /**< Warn if an 'extern' declaration is encountered within a function. */ bool nonnull:1; /**< Warn about passing a null pointer for arguments marked nonnull. */ -#if 0 // TODO 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' */