Add 0/1/2 warning levels to rgblink -Wtruncation (#1816)

This commit is contained in:
Rangi
2025-09-01 15:35:53 -04:00
committed by GitHub
parent cc96b4d517
commit 534a4efee4
9 changed files with 90 additions and 28 deletions

View File

@@ -26,9 +26,13 @@ Diagnostics<WarningLevel, WarningID> warnings = {
{"obsolete", LEVEL_DEFAULT },
{"shift", LEVEL_ALL },
{"shift-amount", LEVEL_ALL },
// Parametric warnings
{"truncation", LEVEL_DEFAULT },
{"truncation", LEVEL_EVERYTHING},
},
.paramWarnings = {
{WARNING_TRUNCATION_1, WARNING_TRUNCATION_2, 2},
},
.paramWarnings = {},
.state = DiagnosticsState<WarningID>(),
.nbErrors = 0,
};