ref: 21f4cafef5a42e6368d1fcc5222adb6bea2d0b7e
parent: b1d4be66e49ba1b722e9a7a072c39b22f0f9c7e5
author: ISSOtm <[email protected]>
date: Thu Dec 5 19:32:49 EST 2019
Make `-Werror=` with a meta warning an error The previous behavior was to just enable the meta warning's warnings. This is an error now because it doesn't make sense to do that, does it?
--- a/src/asm/warning.c
+++ b/src/asm/warning.c
@@ -118,6 +118,9 @@
/* TODO: improve the matching performance? */
if (!strcmp(flag, warningFlags[id])) {
/* We got a match! */
+ if (setError)
+ errx(1, "Cannot make meta warning \"%s\" into an error", flag);
+
uint8_t const *ptr =
metaWarningCommands[id - NB_WARNINGS];