mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-31 15:25:15 +08: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
|
@ -217,11 +217,12 @@ CXXFLAGS="$CXXFLAGS -fno-exceptions"
|
|||
|
||||
|
||||
#
|
||||
# -Wall is there to keep me on my toes
|
||||
# But signed comparison warnings are way too aggressive
|
||||
# Set some warning flags
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user