[Bug c/80892] [8 regression] -Wfloat-conversion now warns about non-floats
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 26 19:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80892
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-05-26
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed:
$ cat t.c && gcc -S -Wfloat-conversion t.c
void f (char);
void g (unsigned long x)
{
f (x);
}
t.c: In function ‘g’:
t.c:5:6: warning: conversion from ‘long unsigned int’ to ‘char’ may change
value [-Wfloat-conversion]
f (x);
^
The conversion changes were committed in r248431. They weren't intended to
change how warnings are controlled so this is a bug.
More information about the Gcc-bugs
mailing list