[Bug c/2707] gcc does not warn on truncate

lopezibanez at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Sep 16 00:31:00 GMT 2006

------- Comment #6 from lopezibanez at gmail dot com  2006-09-16 00:31 -------
By using the patches of the Wcoercion project [*] and compiling with
-Wcoercion, gcc reports for the testcase mentioned in the description:

pr2707.c: In function 'main':
pr2707.c:8: warning: coercion to 'short unsigned int' from 'long unsigned int'
may alter its value

So I guess this bug can be closed as soon as Wcoercion is integrated into

[*] http://gcc.gnu.org/wiki/Wcoercion


lopezibanez at gmail dot com changed:

           What    |Removed                     |Added
                 CC|                            |lopezibanez at gmail dot com


More information about the Gcc-bugs mailing list