Browse code

Warn about casts which remove const. 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

Michael Niedermayer authored on 2008/02/01 10:31:49
Showing 1 changed files
... ...
@@ -1784,6 +1784,7 @@ check_cflags -Wdisabled-optimization
1784 1784
 check_cflags -Wpointer-arith
1785 1785
 check_cflags -Wredundant-decls
1786 1786
 check_cflags -Wno-pointer-sign
1787
+check_cflags -Wcast-qual
1787 1788
 enabled extra_warnings && check_cflags -Winline
1788 1789
 
1789 1790
 # add some linker flags