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:
ridiculousfish 2017-01-26 16:34:55 -08:00
parent 1efb81456b
commit 07c9f0de9d

View file

@ -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