From 82a69fa8b1f66d973154577fbe6e93cfb04cad64 Mon Sep 17 00:00:00 2001 From: Fabian Freyer Date: Sat, 5 Jan 2019 06:02:19 +0100 Subject: [PATCH] toolchain: Fix builds with GCC 7.4.0 and 8.2.0 --- build-rr.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build-rr.sh b/build-rr.sh index e3dde1b11..b94b05ab3 100755 --- a/build-rr.sh +++ b/build-rr.sh @@ -358,8 +358,17 @@ buildrump () # Disable new errors on GCC 7 which break netbsd-src compilation # [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \ - && extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0" + && extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0" \ + && extracflags="$extracflags -F CFLAGS=-Wno-error=maybe-uninitialized" \ + && extracflags="$extracflags -F CFLAGS=-Wno-error=implicit-function-declaration" + # Disable new errors on GCC 8 which break netbsd-src compilation + # + [ `${CC} -dumpversion | cut -f1 -d.` -ge 8 ] \ + && extracflags="$extracflags -F CFLAGS=-Wno-error=packed-not-aligned" \ + && extracflags="$extracflags -F CFLAGS=-Wno-error=cast-function-type" \ + && extracflags="$extracflags -F CFLAGS=-Wno-error=tautological-compare" \ + && extracflags="$extracflags -F CFLAGS=-Wno-error=attributes" # build tools ${BUILDRUMP}/buildrump.sh ${BUILD_QUIET} ${STDJ} -k \