build: 'declaration-after-statement' is an error

not allowed in Windows VS, so make it also not allowed with GCC

Thanks to Martin,
https://github.com/OpenSC/OpenSC/pull/156#issuecomment-17538586
This commit is contained in:
Viktor Tarasov 2013-05-07 15:27:23 +02:00
parent 4a674b4dfc
commit 7cbd42a2d0
1 changed files with 2 additions and 0 deletions

View File

@ -601,6 +601,8 @@ if test "$GCC" = "yes"; then
CFLAGS="-fno-strict-aliasing ${CFLAGS}"
fi
CFLAGS="${CFLAGS} -Werror=declaration-after-statement"
AC_CONFIG_FILES([
Makefile
doc/Makefile