PR c/80892 - -Wfloat-conversion now warns about non-floats
authorMartin Sebor <msebor@redhat.com>
Sat, 3 Jun 2017 02:49:30 +0000 (02:49 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sat, 3 Jun 2017 02:49:30 +0000 (20:49 -0600)
commit2474f48f738cbbdce18f4ded7afd7e57d8b1dcc4
treea3a46121603c496504491df0fda878bcecbd79af
parenteb64690cd5bb23ba47259cf29c20ce89031796d3
PR c/80892 - -Wfloat-conversion now warns about non-floats

gcc/c-family/ChangeLog:

PR c/80892
* c-warn.c (conversion_warning): Use -Wconversion for integer
conversion and -Wfloat-conversion for floating one.

gcc/testsuite/ChangeLog:

PR c/80892
* c-c++-common/Wfloat-conversion-2.c: New test.

From-SVN: r248852
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog