From 07c9f0de9dd502054da31d6dddedfb4a23230702 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 26 Jan 2017 16:34:55 -0800 Subject: [PATCH] Set -Wno-missing-field-initializers Suppresses a hugely annoying warning in g++ build for code initialized via the ={} idiom (which is safe). --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9626ab964..0d4514bbc 100644 --- a/configure.ac +++ b/configure.ac @@ -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