Browse code

Warn if a comparison is always true or always false due to the limited range of the data type. The only new warning this causes (if i didnt miss one) is: udp.c:272: warning: comparison of unsigned expression < 0 is always false which is a real bug

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

Michael Niedermayer authored on 2008/02/04 07:31:25
Showing 1 changed files
... ...
@@ -1786,6 +1786,7 @@ check_cflags -Wredundant-decls
1786 1786
 check_cflags -Wno-pointer-sign
1787 1787
 check_cflags -Wcast-qual
1788 1788
 check_cflags -Wwrite-strings
1789
+check_cflags -Wtype-limits
1789 1790
 enabled extra_warnings && check_cflags -Winline
1790 1791
 
1791 1792
 # add some linker flags