mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Enable -Wobsolete by default
The fact that deprecations were common and quickly acted upon was raised by some users
This commit is contained in:
@@ -219,14 +219,12 @@ This warning is enabled by
|
|||||||
Warn when a string too long to fit in internal buffers is encountered.
|
Warn when a string too long to fit in internal buffers is encountered.
|
||||||
This warning is enabled by
|
This warning is enabled by
|
||||||
.Fl Wall .
|
.Fl Wall .
|
||||||
.It Fl Wobsolete
|
.It Fl Wno-obsolete
|
||||||
Warn when obsolete constructs such as the
|
Warn when obsolete constructs such as the
|
||||||
.Ic jp [hl]
|
.Ic jp [hl]
|
||||||
instruction or
|
instruction or
|
||||||
.Ic HOME
|
.Ic HOME
|
||||||
section type are encountered.
|
section type are encountered.
|
||||||
This warning is enabled by
|
|
||||||
.Fl Wextra .
|
|
||||||
.It Fl Wshift
|
.It Fl Wshift
|
||||||
Warn when shifting right a negative value.
|
Warn when shifting right a negative value.
|
||||||
Use a division by 2^N instead.
|
Use a division by 2^N instead.
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ static enum WarningState const defaultWarnings[NB_WARNINGS] = {
|
|||||||
WARNING_DISABLED, /* Empty entry in `db`, `dw` or `dl` */
|
WARNING_DISABLED, /* Empty entry in `db`, `dw` or `dl` */
|
||||||
WARNING_DISABLED, /* Constants too large */
|
WARNING_DISABLED, /* Constants too large */
|
||||||
WARNING_DISABLED, /* String too long for internal buffers */
|
WARNING_DISABLED, /* String too long for internal buffers */
|
||||||
WARNING_DISABLED, /* Obsolete things */
|
WARNING_ENABLED, /* Obsolete things */
|
||||||
WARNING_DISABLED, /* Shifting undefined behavior */
|
WARNING_DISABLED, /* Shifting undefined behavior */
|
||||||
WARNING_DISABLED, /* Strange shift amount */
|
WARNING_DISABLED, /* Strange shift amount */
|
||||||
WARNING_ENABLED, /* Implicit truncation loses some bits */
|
WARNING_ENABLED, /* Implicit truncation loses some bits */
|
||||||
@@ -101,7 +101,6 @@ static uint8_t const _wallCommands[] = {
|
|||||||
/* Warnings that are less likely to indicate an error */
|
/* Warnings that are less likely to indicate an error */
|
||||||
static uint8_t const _wextraCommands[] = {
|
static uint8_t const _wextraCommands[] = {
|
||||||
WARNING_EMPTY_ENTRY,
|
WARNING_EMPTY_ENTRY,
|
||||||
WARNING_OBSOLETE,
|
|
||||||
META_WARNING_DONE
|
META_WARNING_DONE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user