OSDN Git Service

Mixing declarations and statements is an error, so is any construct
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 18:45:26 +0000 (18:45 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 18:45:26 +0000 (18:45 +0000)
depending on sizeof(void) (like void_ptr++)

Originally committed as revision 11798 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index a17bc84..dda6fab 100755 (executable)
--- 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