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?
This commit is contained in:
ISSOtm
2019-12-06 00:32:49 +01:00
parent b1d4be66e4
commit 21f4cafef5

View File

@@ -118,6 +118,9 @@ void processWarningFlag(char const *flag)
/* 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];