Mostly finished parsing of GNU attributes.
[cparser] / warning.h
index a71aaec..743e420 100644 (file)
--- a/warning.h
+++ b/warning.h
@@ -29,6 +29,7 @@ typedef struct warning_t {
        bool aggregate_return:1;              /**< Warn if any functions that return structures or unions are defined or called */
        bool bad_function_cast:1;             /**< Warn whenever a function call is cast to a non-matching type */
 #endif
+       bool attribute:1;                     /**< Warn if an unexpected `__attribute__' is used or function attributes applied to variables, etc. */
        bool char_subscripts:1;               /**< Warn if an array subscript has the type 'char' */
        bool check_format:1;                  /**< Check printf-style format strings */
 #if 0 // TODO