[Bug c/35649] Incorrect printf warning: expect double has float

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 22 22:40:00 GMT 2010



------- Comment #8 from joseph at codesourcery dot com  2010-09-22 22:40 -------
Subject: Re:  Incorrect printf warning: expect double has float

On Wed, 22 Sep 2010, dj at redhat dot com wrote:

> ------- Comment #6 from dj at redhat dot com  2010-09-22 20:22 -------
> Created an attachment (id=21866)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21866&action=view)
>  --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21866&action=view)
> possible fix
> 
> FYI I've been using this to silence the warning in my local tree...

That's the wrong fix; instead, change convert_arguments to do the 
conversion from float to double even if they have the same precision.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35649



More information about the Gcc-bugs mailing list