mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-21 22:34:32 +00:00
Prevent rgblink -Wno-* disabled warnings from printing a location trace anyway
Fixes #2005
This commit is contained in:
@@ -212,16 +212,18 @@ void scriptWarning(WarningID id, char const *fmt, ...) {
|
||||
|
||||
case WarningBehavior::ENABLED:
|
||||
printDiag(nullptr, 0, fmt, args, "warning", STYLE_YELLOW, "[-W%s]", flag);
|
||||
|
||||
lexer_TraceCurrent();
|
||||
break;
|
||||
|
||||
case WarningBehavior::ERROR:
|
||||
printDiag(nullptr, 0, fmt, args, "error", STYLE_RED, "[-Werror=%s]", flag);
|
||||
|
||||
lexer_TraceCurrent();
|
||||
warnings.incrementErrors();
|
||||
break;
|
||||
}
|
||||
|
||||
va_end(args);
|
||||
|
||||
lexer_TraceCurrent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user