re PR debug/66869 (-Wunused-function no longer warns for static declarations without...
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Jan 2016 11:14:42 +0000 (12:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Jan 2016 11:14:42 +0000 (12:14 +0100)
commit16b77b321eb72c5e2e1ec3628c035df80bef8534
tree4e79522ef94c0bd7571b3dc6e653f306c0e08ce9
parentf597d5f73c62e535493db57260d85aeeca4d4d54
re PR debug/66869 (-Wunused-function no longer warns for static declarations without definition)

PR debug/66869
* decl.c (wrapup_globals_for_namespace): Warn about unused static
function declarations.

* g++.dg/warn/Wunused-function2.C: New test.

From-SVN: r232975
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-function2.C [new file with mode: 0644]