mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Set -Wno-missing-field-initializers
Suppresses a hugely annoying warning in g++ build for code initialized via the ={} idiom (which is safe).
This commit is contained in:
parent
1efb81456b
commit
07c9f0de9d
1 changed files with 4 additions and 3 deletions
|
@ -217,11 +217,12 @@ CXXFLAGS="$CXXFLAGS -fno-exceptions"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# -Wall is there to keep me on my toes
|
# Set some warning flags
|
||||||
# But signed comparison warnings are way too aggressive
|
# Don't warn about missing field initializers, it has too many
|
||||||
|
# false positives for code like `struct termios tmodes = {};`
|
||||||
#
|
#
|
||||||
|
|
||||||
CXXFLAGS="$CXXFLAGS -Wextra"
|
CXXFLAGS="$CXXFLAGS -Wextra -Wno-missing-field-initializers"
|
||||||
|
|
||||||
#
|
#
|
||||||
# This is needed in order to get the really cool backtraces on Linux
|
# This is needed in order to get the really cool backtraces on Linux
|
||||||
|
|
Loading…
Reference in a new issue