Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx> Date: 30/05/2010 at 19:41:38 Revision: 4626 Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Enable -Wshadow by default in the "main" set of warnings. All the shadowing issues have been fixed. Modified: M configure.ac === modified file 'configure.ac' --- configure.ac 2010-05-28 11:50:46 +0000 +++ configure.ac 2010-05-30 16:40:02 +0000 @@ -73,7 +73,7 @@ AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wredundant-decls -Wdisabled-optimization") AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wundef -Wstrict-prototypes -Wmissing-prototypes") AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wno-deprecated-declarations -Wpointer-arith") -AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wwrite-strings") +AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wwrite-strings -Wshadow") #TODO fix the code and get rid of this one @@ -93,7 +93,6 @@ [ac_cv_use_gcc_warn], [ac_cv_use_gcc_warn=yes]) if test x"$ac_cv_use_gcc_warn" = x"yes"; then - AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wshadow -Wno-error=shadow") AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wcast-qual -Wno-error=cast-qual") AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Winline -Wno-error=inline") fi