]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Add the -Wimplicit-fallthrough=0 flag to allow compiling with GCC7
authorNaja Melan <najamelan@autistici.org>
Wed, 3 Jan 2018 18:57:50 +0000 (18:57 +0000)
committerGitHub <noreply@github.com>
Wed, 3 Jan 2018 18:57:50 +0000 (18:57 +0000)
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

build-rr.sh

index e361c327ddda7da9c8a42485e371256897790a1f..7ea2acc8654383d1374007a0a3f033b49f3e1af4 100755 (executable)
@@ -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             \