This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/59939] No warning on signedness changes caused by implicit conversion
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Jan 2014 06:08:38 +0000
- Subject: [Bug c/59939] No warning on signedness changes caused by implicit conversion
- Auto-submitted: auto-generated
- References: <bug-59939-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59939
--- Comment #7 from Zhendong Su <su at cs dot ucdavis.edu> ---
Andrew, this actually feels to me more like a static type checking issue, i.e.,
whether the code is dead or not isn't all that relevant here. The important
thing is that the function fn1 takes two unsigned int's, but given two int's
instead (which should be warned no matter whether we have 1 or 0).
Or perhaps not?