public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48379] New: -Wdouble-promotion warns for promotion by varargs
@ 2011-03-31  4:56 jmuizelaar at mozilla dot com
  2011-03-31 10:38 ` [Bug c++/48379] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jmuizelaar at mozilla dot com @ 2011-03-31  4:56 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -Wdouble-promotion warns for promotion by varargs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jmuizelaar@mozilla.com


The following program gives a warning about double promotion:

#include <stdio.h>
void
p()
{
    float q = 5;
    printf("%g\n", q);
}

Since, there's not much that can be done to fix this situation it's probably
not worth warning about. Alternatively, a switch could be added to avoid the
warning spam.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-17 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31  4:56 [Bug c++/48379] New: -Wdouble-promotion warns for promotion by varargs jmuizelaar at mozilla dot com
2011-03-31 10:38 ` [Bug c++/48379] " rguenth at gcc dot gnu.org
2013-11-23 14:15 ` achurch+gcc at achurch dot org
2022-10-18 14:29 ` dcrocker at eschertech dot com
2024-01-17 17:35 ` rlcamp.pdx at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).