Add -Wempty-body to default options if gcc supports it

- ...to help protect against screwups like
  2ee45ef12a
This commit is contained in:
Panu Matilainen 2009-09-07 18:41:32 +03:00
parent f634253b32
commit 9f9ab48f71
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if test "$GCC" = yes; then
CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wno-char-subscripts"
# XXX disabled for now due to noise from NSPR headers
# CFLAGS="$CFLAGS -Wstrict-prototypes"
cflags_to_try="-fno-strict-aliasing -fstack-protector"
cflags_to_try="-fno-strict-aliasing -fstack-protector -Wempty-body"
AC_MSG_CHECKING([supported compiler flags])
old_cflags=$CFLAGS
echo