Warn about casts which remove const.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 01:31:49 +0000 (01:31 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 01:31:49 +0000 (01:31 +0000)
Feel free to flame me if you disagree that such code is wrong.

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

configure

index 6177295..a17bc84 100755 (executable)
--- a/configure
+++ b/configure
@@ -1784,6 +1784,7 @@ check_cflags -Wdisabled-optimization
 check_cflags -Wpointer-arith
 check_cflags -Wredundant-decls
 check_cflags -Wno-pointer-sign
+check_cflags -Wcast-qual
 enabled extra_warnings && check_cflags -Winline
 
 # add some linker flags