Add -Wobsolete to RGBFIX and RGBGFX, and deprecate rgbfix -O

This commit is contained in:
Rangi42
2025-08-05 17:12:29 -04:00
parent 3a0a4b7f90
commit bf66e346f0
12 changed files with 16 additions and 6 deletions

View File

@@ -778,6 +778,7 @@ int main(int argc, char *argv[]) {
break;
case 'O':
warning(WARNING_OBSOLETE, "'-O' is deprecated; use '-Wno-overwrite' instead");
warnings.processWarningFlag("no-overwrite");
break;

View File

@@ -12,6 +12,7 @@ Diagnostics<WarningLevel, WarningID> warnings = {
},
.warningFlags = {
{"mbc", LEVEL_DEFAULT },
{"obsolete", LEVEL_DEFAULT },
{"overwrite", LEVEL_DEFAULT },
{"sgb", LEVEL_DEFAULT },
{"truncation", LEVEL_DEFAULT },

View File

@@ -17,6 +17,7 @@ Diagnostics<WarningLevel, WarningID> warnings = {
},
.warningFlags = {
{"embedded", LEVEL_EVERYTHING},
{"obsolete", LEVEL_DEFAULT },
{"trim-nonempty", LEVEL_ALL },
},
.paramWarnings = {},