]> git.sur5r.net Git - openocd/commitdiff
build: enable -Wshadow by default
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 16 Jun 2010 06:33:32 +0000 (08:33 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 16 Jun 2010 06:58:40 +0000 (08:58 +0200)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
configure.in

index d93b21ad7b2cc7582958f93f5df2329206d488d1..7f31e1deacd533c256d3fe04bd3c50304b624941 100644 (file)
@@ -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"