mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Make implicit truncation a warning
This commit is contained in:
@@ -37,6 +37,7 @@ static enum WarningState const defaultWarnings[NB_WARNINGS] = {
|
||||
WARNING_DISABLED, /* Shifting undefined behavior */
|
||||
WARNING_ENABLED, /* User warnings */
|
||||
WARNING_DISABLED, /* Strange shift amount */
|
||||
WARNING_ENABLED, /* Implicit truncation loses some bits */
|
||||
};
|
||||
|
||||
static enum WarningState warningStates[NB_WARNINGS];
|
||||
@@ -72,6 +73,7 @@ static char const *warningFlags[NB_WARNINGS_ALL] = {
|
||||
"shift",
|
||||
"user",
|
||||
"shift-amount",
|
||||
"truncation",
|
||||
|
||||
/* Meta warnings */
|
||||
"all",
|
||||
|
||||
Reference in New Issue
Block a user