From 27ca56d241356cb12aeb2f0a00e892d8b797edda Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 27 Aug 2017 13:22:49 -0400 Subject: Implement warning silencing in a cleaner way Change-Id: Iae6356c7e9e04f4e975b1995f77a35f6252293a4 --- tools/configure | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3