This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/80892] [8 regression] -Wfloat-conversion now warns about non-floats


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80892

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Sat Jun  3 02:49:30 2017
New Revision: 248852

URL: https://gcc.gnu.org/viewcvs?rev=248852&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]