From: Øyvind Harboe Date: Wed, 16 Jun 2010 06:33:32 +0000 (+0200) Subject: build: enable -Wshadow by default X-Git-Tag: v0.5.0-rc1~592 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=814c2a8f9a41a6445f131ee35474dced4bbed210 build: enable -Wshadow by default Signed-off-by: Øyvind Harboe --- diff --git a/configure.in b/configure.in index d93b21ad7b..7f31e1deac 100644 --- a/configure.in +++ b/configure.in @@ -1090,7 +1090,7 @@ fi AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).]) # set default gcc warnings -GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security" +GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security -Wshadow" if test "${gcc_wextra}" = yes; then GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter" GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"