This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34389] -Wconversion produces wrong warning
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2008 17:30:19 -0000
- Subject: [Bug c/34389] -Wconversion produces wrong warning
- References: <bug-34389-5307@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from manu at gcc dot gnu dot org 2008-06-08 17:30 -------
(In reply to comment #9)
> Does the patch also fix the warning for conditional expressions? For example:
>
> short f(int cond, short x, short y)
> {
> return cond ? x : y;
> }
>
No, that is a completely different issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34389