Add -Wempty-body to default options if gcc supports it
- ...to help protect against screwups like
2ee45ef12a
This commit is contained in:
parent
f634253b32
commit
9f9ab48f71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue