I think this far into the 21st century we can allow declarations to be
in the middle of code blocks. Even MSVC supports that, even if it doesn't
do other parts of C99 like named struct initialisers.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
# is conditional (as it is here for some of the MinGW checks), it forgets
# to ever look for one in the other code paths. Do it explicitly here.
AC_PROG_CC
+AC_PROG_CC_C99
case $host_os in
*linux* | *gnu* | *nacl*)
-Wno-sign-compare
-Wno-unused-parameter
-Werror=pointer-to-int-cast
- -Wdeclaration-after-statement
-Werror-implicit-function-declaration
-Wformat-nonliteral
-Wformat-security