Remove -wshadow from cflags: causes the toy scheme interpreter to fail to build on freebsd (because <string.h> defines a function index on bsd).

Copied from Perforce
 Change: 182544
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2013-06-05 16:41:31 +01:00
parent 058568fab1
commit b32d6919a7
2 changed files with 2 additions and 2 deletions

2
mps/configure vendored
View file

@ -2918,7 +2918,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
CFLAGS_GC="-ansi -pedantic -Wall -Werror -Wpointer-arith \
-Wstrict-prototypes -Wmissing-prototypes \
-Winline -Waggregate-return -Wnested-externs \
-Wcast-qual -Wshadow -Wstrict-aliasing=2 -O -g3"
-Wcast-qual -Wstrict-aliasing=2 -O -g3"
CFLAGS_LL="$CFLAGS_GC -Wno-extended-offsetof"
# Make sure we can run config.sub.

View file

@ -32,7 +32,7 @@ AC_PROG_INSTALL
CFLAGS_GC="-ansi -pedantic -Wall -Werror -Wpointer-arith \
-Wstrict-prototypes -Wmissing-prototypes \
-Winline -Waggregate-return -Wnested-externs \
-Wcast-qual -Wshadow -Wstrict-aliasing=2 -O -g3"
-Wcast-qual -Wstrict-aliasing=2 -O -g3"
CFLAGS_LL="$CFLAGS_GC -Wno-extended-offsetof"
AC_CANONICAL_HOST