]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR debug/66869 (-Wunused-function no longer warns for static declarations without...
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Jan 2016 19:32:49 +0000 (20:32 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 27 Jan 2016 19:32:49 +0000 (20:32 +0100)
commitcbdd8ae08c2cec98ed063a0ef2c237e80539e597
tree25b41720693a07d6c651306b4666907bbb307799
parent8dc781e4546beab0893020670bc8154809a5513b
re PR debug/66869 (-Wunused-function no longer warns for static declarations without definition)

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.

From-SVN: r232899
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr66869.c [new file with mode: 0644]