From: zwelch Date: Wed, 29 Apr 2009 03:28:12 +0000 (+0000) Subject: Add -Wredundant-decls to prevent unwanted duplicate declarations. X-Git-Tag: v0.2.0~942 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f3dc12ad79758e921f2fe5291642226ffb703c0;p=openocd Add -Wredundant-decls to prevent unwanted duplicate declarations. git-svn-id: svn://svn.berlios.de/openocd/trunk@1562 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/configure.in b/configure.in index 364a3d88..9eaeb7e4 100644 --- a/configure.in +++ b/configure.in @@ -779,6 +779,7 @@ if test "${gcc_wextra}" = yes; then GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter" GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast" GCC_WARNINGS="${GCC_WARNINGS} -Wcast-align" + GCC_WARNINGS="${GCC_WARNINGS} -Wredundant-decls" fi if test "${gcc_werror}" = yes; then GCC_WARNINGS="${GCC_WARNINGS} -Werror"