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 617729543a186cdc2965cd52738a43f877d28e26..a17bc8445ef2fe9f5602285f15fbe02b0dc4d84c 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