From aa819b9b7d9a08120f72bedc64c9f5b8f9cd2c7f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Feb 2008 18:45:26 +0000 Subject: [PATCH] Mixing declarations and statements is an error, so is any construct depending on sizeof(void) (like void_ptr++) Originally committed as revision 11798 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 2 ++ 1 file changed, 2 insertions(+) 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