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/77336] -Wsuggest-attribute=format warning overly simplistic


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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Sep  6 19:23:25 2016
New Revision: 240013

URL: https://gcc.gnu.org/viewcvs?rev=240013&root=gcc&view=rev
Log:
PR c/77336 -  -Wsuggest-attribute=format warning overly simplistic

gcc/c-family/ChangeLog:

        PR c/77336
        * c-format.c (check_function_format): Avoid issuing warnings for
        functions unless they call format functions with non-constant
        format strings.

gcc/testsuite/ChangeLog:

        PR c/77336
        * gcc.dg/format/miss-7.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/format/miss-7.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-format.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]