diff --git a/configure b/configure index a17bc8445e..dda6fab3ef 100755 --- a/configure +++ b/configure @@ -1785,6 +1785,8 @@ check_cflags -Wpointer-arith check_cflags -Wredundant-decls check_cflags -Wno-pointer-sign check_cflags -Wcast-qual +check_cflags -Werror=declaration-after-statement +check_cflags -Werror=pointer-arith enabled extra_warnings && check_cflags -Winline # add some linker flags