Commit cb3100c3 authored by Michel Lespinasse's avatar Michel Lespinasse

Do not use -Wstrict-prototypes: this was breaking the --enable-warnings

configure option, due to AC_TRY_COMPILE not declaring arguments (not even void)
for the main() function it generates.
parent d28bfc9d
......@@ -34,7 +34,7 @@ elif test x"$GCC" = x"yes"; then
dnl -Wall
dnl -Werror moved to the end to not disturb the configure script
TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"])
dnl -O3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment