diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2015-07-24 20:20:13 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-07-24 20:20:13 +0000 |
commit | 274d8c11f37abd11a3a43b5bd129c194b0daeafc (patch) | |
tree | 5546702f4370a0141cb4902e6646f8d83f0e1492 /gcc/testsuite | |
parent | 36b7d827dbcae9727c83ca10424d657109caa12b (diff) | |
download | gcc-274d8c11f37abd11a3a43b5bd129c194b0daeafc.zip gcc-274d8c11f37abd11a3a43b5bd129c194b0daeafc.tar.gz gcc-274d8c11f37abd11a3a43b5bd129c194b0daeafc.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/Wunused-function-1.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9db2643..57bb26d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR c++/64079 + * c-c++-common/Wunused-function-1.c: New. + 2015-07-24 Tom de Vries <tom@codesourcery.com> * gcc.dg/parloops-exit-first-loop-alt-2.c: Use debug print for diff --git a/gcc/testsuite/c-c++-common/Wunused-function-1.c b/gcc/testsuite/c-c++-common/Wunused-function-1.c new file mode 100644 index 0000000..9f85695 --- /dev/null +++ b/gcc/testsuite/c-c++-common/Wunused-function-1.c @@ -0,0 +1,10 @@ +/* PR c++/64079 */ +/* { dg-do compile } */ +/* { dg-options "-Wunused-function" } */ + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" + +static void bar() {} + +#pragma GCC diagnostic pop |