build: enable -Wstrict-prototypes

All fixed up, so we can enable this now.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2021-09-01 17:12:15 +02:00
parent 9c1490843a
commit 09e33fbe6b

View file

@ -322,6 +322,7 @@ AC_C_FLAG([-fno-omit-frame-pointer])
AC_C_FLAG([-funwind-tables]) AC_C_FLAG([-funwind-tables])
AC_C_FLAG([-Wall]) AC_C_FLAG([-Wall])
AC_C_FLAG([-Wextra]) AC_C_FLAG([-Wextra])
AC_C_FLAG([-Wstrict-prototypes])
AC_C_FLAG([-Wmissing-prototypes]) AC_C_FLAG([-Wmissing-prototypes])
AC_C_FLAG([-Wmissing-declarations]) AC_C_FLAG([-Wmissing-declarations])
AC_C_FLAG([-Wpointer-arith]) AC_C_FLAG([-Wpointer-arith])
@ -330,7 +331,6 @@ AC_C_FLAG([-Wwrite-strings])
AC_C_FLAG([-Wundef]) AC_C_FLAG([-Wundef])
if test "$enable_gcc_ultra_verbose" = "yes" ; then if test "$enable_gcc_ultra_verbose" = "yes" ; then
AC_C_FLAG([-Wcast-qual]) AC_C_FLAG([-Wcast-qual])
AC_C_FLAG([-Wstrict-prototypes])
AC_C_FLAG([-Wmissing-noreturn]) AC_C_FLAG([-Wmissing-noreturn])
AC_C_FLAG([-Wmissing-format-attribute]) AC_C_FLAG([-Wmissing-format-attribute])
AC_C_FLAG([-Wunreachable-code]) AC_C_FLAG([-Wunreachable-code])