From: Naja Melan Date: Wed, 3 Jan 2018 18:57:50 +0000 (+0000) Subject: Add the -Wimplicit-fallthrough=0 flag to allow compiling with GCC7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=34056451174e8722b972229fefc1bf9e0b89a7da;p=osstest%2Frumprun.git Add the -Wimplicit-fallthrough=0 flag to allow compiling with GCC7 GCC7 comes with a new warning "implicit-fallthrough" which will prevent building the netbsd-src. For more information: https://dzone.com/articles/implicit-fallthrough-in-gcc-7 --- diff --git a/build-rr.sh b/build-rr.sh index e361c32..7ea2acc 100755 --- a/build-rr.sh +++ b/build-rr.sh @@ -350,7 +350,7 @@ buildrump () extracflags= [ "${MACHINE_GNU_ARCH}" = "x86_64" ] \ - && extracflags='-F CFLAGS=-mno-red-zone' + && extracflags='-F CFLAGS=-mno-red-zone -F CPPFLAGS=-Wimplicit-fallthrough=0' # build tools ${BUILDRUMP}/buildrump.sh ${BUILD_QUIET} ${STDJ} -k \