summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/configure5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 0db6501..fd86d8a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -4258,6 +4258,11 @@ else
GCCOPTS="$GCCOPTS -Wno-shift-negative-value -Wno-unused-const-variable -Wno-nonnull-compare -Wno-tautological-compare"
fi
+ if test "$gccnum" -ge "700"; then
+ # gcc 7 spews a bunch of warnings by default
+ GCCOPTS="$GCCOPTS -Wno-expansion-to-defined -Wimplicit-fallthrough=0"
+ fi
+
case $prefix in
""|"$CROSS_COMPILE")
# simulator