[Bug c++/48379] New: -Wdouble-promotion warns for promotion by varargs
jmuizelaar at mozilla dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 31 04:56:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list