re PR c++/64079 (%+D in diagnostics breaks pragma GCC diagnostic)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 24 Jul 2015 20:20:13 +0000 (20:20 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 24 Jul 2015 20:20:13 +0000 (20:20 +0000)
commit274d8c11f37abd11a3a43b5bd129c194b0daeafc
tree5546702f4370a0141cb4902e6646f8d83f0e1492
parent36b7d827dbcae9727c83ca10424d657109caa12b
re PR c++/64079 (%+D in diagnostics breaks pragma GCC diagnostic)

2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c++/64079
* toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
and "%qD" in warning_at instead of "%q+D" in warning.

/testsuite
2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c++/64079
* c-c++-common/Wunused-function-1.c: New.

From-SVN: r226191
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-function-1.c [new file with mode: 0644]
gcc/toplev.c