This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48379] New: -Wdouble-promotion warns for promotion by varargs
- From: "jmuizelaar at mozilla dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2011 03:18:08 +0000
- Subject: [Bug c++/48379] New: -Wdouble-promotion warns for promotion by varargs
- Auto-submitted: auto-generated
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.