From b32d6919a71e739882ec0ef8a9d7a199483fe22c Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Wed, 5 Jun 2013 16:41:31 +0100 Subject: [PATCH] Remove -wshadow from cflags: causes the toy scheme interpreter to fail to build on freebsd (because defines a function index on bsd). Copied from Perforce Change: 182544 ServerID: perforce.ravenbrook.com --- mps/configure | 2 +- mps/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mps/configure b/mps/configure index d30e26d8cac..f3310d01998 100755 --- a/mps/configure +++ b/mps/configure @@ -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. diff --git a/mps/configure.ac b/mps/configure.ac index 8c7f376a12e..51d93880951 100644 --- a/mps/configure.ac +++ b/mps/configure.ac @@ -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