aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/error.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/error.h b/include/error.h
index 1d904849..cd64a497 100644
--- a/include/error.h
+++ b/include/error.h
@@ -120,17 +120,16 @@ static inline vefunc nasm_set_verror(vefunc ve)
#define WARN_ALL (22+2) /* Do not use WARN() here */
#define WARN_OTHER WARN(WARN_ALL-1) /* any noncategorized warning */
+/* This is a bitmask */
+#define WARN_ST_ENABLED 1 /* Warning is currently enabled */
+#define WARN_ST_ERROR 2 /* Treat this warning as an error */
+
struct warning {
const char *name;
const char *help;
- bool enabled;
+ uint8_t state; /* Default state for this warning */
};
extern const struct warning warnings[WARN_ALL+1];
-
-/* This is a bitmask */
-#define WARN_ST_ENABLED 1 /* Warning is currently enabled */
-#define WARN_ST_ERROR 2 /* Treat this warning as an error */
-
extern uint8_t warning_state[WARN_ALL];
extern uint8_t warning_state_init[WARN_ALL];