Make rgbasm -Wlarge-constant enabled by default

This commit is contained in:
Rangi42
2025-08-08 19:00:13 -04:00
parent e41ce49698
commit 9fc83efe06
2 changed files with 2 additions and 4 deletions

View File

@@ -370,10 +370,8 @@ Warn when
is called with an empty string as its second argument (the substring to replace). is called with an empty string as its second argument (the substring to replace).
This warning is enabled by This warning is enabled by
.Fl Wall . .Fl Wall .
.It Fl Wlarge-constant .It Fl Wno-large-constant
Warn when a constant too large to fit in a signed 32-bit integer is encountered. Warn when a constant too large to fit in a signed 32-bit integer is encountered.
This warning is enabled by
.Fl Wall .
.It Fl Wmacro-shift .It Fl Wmacro-shift
Warn when shifting macro arguments past their limits. Warn when shifting macro arguments past their limits.
This warning is enabled by This warning is enabled by

View File

@@ -34,7 +34,7 @@ Diagnostics<WarningLevel, WarningID> warnings = {
{"empty-data-directive", LEVEL_ALL }, {"empty-data-directive", LEVEL_ALL },
{"empty-macro-arg", LEVEL_EXTRA }, {"empty-macro-arg", LEVEL_EXTRA },
{"empty-strrpl", LEVEL_ALL }, {"empty-strrpl", LEVEL_ALL },
{"large-constant", LEVEL_ALL }, {"large-constant", LEVEL_DEFAULT },
{"macro-shift", LEVEL_EXTRA }, {"macro-shift", LEVEL_EXTRA },
{"nested-comment", LEVEL_DEFAULT }, {"nested-comment", LEVEL_DEFAULT },
{"obsolete", LEVEL_DEFAULT }, {"obsolete", LEVEL_DEFAULT },