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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 27 19:32:49 2016
New Revision: 232899

URL: https://gcc.gnu.org/viewcvs?rev=232899&root=gcc&view=rev
Log:
        PR debug/66869
        * c-decl.c (c_write_global_declarations_1): Warn with
        warn_unused_function if static prototype without definition
        is not C_DECL_USED.

        * gcc.dg/pr66869.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr66869.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to