summaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-08-27 13:22:49 -0400
committerFranklin Wei <git@fwei.tk>2017-08-27 13:22:49 -0400
commit27ca56d241356cb12aeb2f0a00e892d8b797edda (patch)
tree0dbad63a618c26c7f575c26bfb818c97299b85b7 /tools/configure
parent99e467e4ff5fb16ca5dbfcec54644178c52dc66a (diff)
downloadrockbox-27ca56d241356cb12aeb2f0a00e892d8b797edda.tar.gz
rockbox-27ca56d241356cb12aeb2f0a00e892d8b797edda.tar.bz2
rockbox-27ca56d241356cb12aeb2f0a00e892d8b797edda.zip
Implement warning silencing in a cleaner way
Change-Id: Iae6356c7e9e04f4e975b1995f77a35f6252293a4
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 0db6501288..fd86d8a76d 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