mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user