Skip to content

Commit

Permalink
toolchain: Fix builds with GCC 7.4.0 and 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Jan 5, 2019
1 parent 085e6e0 commit 82a69fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build-rr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 82a69fa

Please sign in to comment.