diff options
author | tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-10-12 10:32:08 +0000 |
---|---|---|
committer | tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-10-12 10:32:08 +0000 |
commit | d1dce8470d304dc3e72fefaf5483e137035e967a (patch) | |
tree | 1403408b129b50f770281f9e871537aaa9c258dd | |
parent | 20edebfd7da1f94a1490e150283ddb0b35a05796 (diff) |
Add -Wdeclaration-after-statement to the compiler flags so we can
catch code that will fail on older compilers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4905 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r-- | Makefile.core.am | 2 | ||||
-rw-r--r-- | Makefile.tool-flags.am | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.core.am b/Makefile.core.am index 1859e0c5..257b3b07 100644 --- a/Makefile.core.am +++ b/Makefile.core.am @@ -9,7 +9,7 @@ add_includes = -I$(top_srcdir)/coregrind \ -DVGO_$(VG_OS)=1 \ -DVGP_$(VG_ARCH)_$(VG_OS)=1 -BASE_AM_CFLAGS = @ARCH_CORE_AM_CFLAGS@ -Wmissing-prototypes -Winline -Wall -Wshadow -O -g +BASE_AM_CFLAGS = @ARCH_CORE_AM_CFLAGS@ -Wmissing-prototypes -Wdeclaration-after-statement -Winline -Wall -Wshadow -O -g PIC_AM_CFLAGS = $(BASE_AM_CFLAGS) -fpic -fno-omit-frame-pointer diff --git a/Makefile.tool-flags.am b/Makefile.tool-flags.am index 7e1517e2..c56892f1 100644 --- a/Makefile.tool-flags.am +++ b/Makefile.tool-flags.am @@ -5,6 +5,6 @@ add_includes = -I$(top_srcdir)/include \ -DVGP_$(VG_ARCH)_$(VG_OS)=1 AM_CPPFLAGS = $(add_includes) -AM_CFLAGS = $(WERROR) -Wmissing-prototypes -Winline -Wall -Wshadow -O -g @ARCH_TOOL_AM_CFLAGS@ +AM_CFLAGS = $(WERROR) -Wmissing-prototypes -Wdeclaration-after-statement -Winline -Wall -Wshadow -O -g @ARCH_TOOL_AM_CFLAGS@ AM_CCASFLAGS = $(add_includes) |