2021-11-09 04:33:39 +08:00
|
|
|
-Werror=cast-function-type
|
2020-02-26 01:38:15 +08:00
|
|
|
#
|
|
|
|
# For GCC 8, promote maybe-initialized warnings to an error. GCC 8
|
|
|
|
# reports 0 maybe-uninitialized warnings where earlier versions
|
|
|
|
# make many false reports. GCC 8 seems to analyze calls to static
|
|
|
|
# in order to detect initializations that occur there. It's possible
|
|
|
|
# that GCC 8 only performs that analysis at -O3, though.
|
|
|
|
#
|
2022-05-07 07:26:48 +08:00
|
|
|
-Werror=maybe-uninitialized
|
2024-03-26 20:40:16 +08:00
|
|
|
# Ask GCC to warn about cast-align problems, even on platforms where
|
|
|
|
# it normally wouldn't (because those platforms don't require alignment).
|
|
|
|
# While this flag doesn't follow the -Werror format like above, it's
|
|
|
|
# placed here to make sure that it comes after the -Werror=cast-align
|
|
|
|
# line from error-general in the list of flags. Otherwise, if the
|
|
|
|
# '--enable-warnings-as-errors' flag isn't passed at configure time,
|
|
|
|
# the logic in config/gnu-flags that demotes these errors to their
|
|
|
|
# normal warning form will cause -Wcast-align to come after
|
|
|
|
# -Wcast-align=strict in the list of flags, causing it to take
|
|
|
|
# precedence and mask cast-align warnings from GCC on certain platforms.
|
|
|
|
-Wcast-align=strict
|