diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-08-31 12:53:40 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-08-31 17:33:31 +0100 |
commit | 7f27d1f1b94843caed557b83715a94cb5b7deb0d (patch) | |
tree | 887eb7c0d818c85e15758ee91d532c020d68f96c /libobjc/exception.c | |
parent | 2c27189da4de8a4ba005255fd3df6f3ac7064498 (diff) | |
download | gcc-7f27d1f1b94843caed557b83715a94cb5b7deb0d.zip gcc-7f27d1f1b94843caed557b83715a94cb5b7deb0d.tar.gz gcc-7f27d1f1b94843caed557b83715a94cb5b7deb0d.tar.bz2 |
testsuite, c++, coroutines: Avoid 'unused' warnings [NFC].
The 'torture' section of the coroutine tests is primarily about checking
correct operation of the generated code. It should, ideally, be possible
to run this part of the testsuite with '-Wall' and expect no fails. In
the case that we wish to test for a specific diagnostic (and that it does
not appear over a range of optimisation/debug conditions) then we should
make that explict (as done, for example, in pr109867.C).
The tests amended here have warnings because of unused entities; in many
cases those are relevant to the test, and so we just mark them with
__attribute__((__unused__)).
We amend the debug output in coro.h to avoid similar warnings when print
output is disabled (the default).
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/coro.h: Use a variadic macro for PRINTF to
avoid unused warnings when output is disabled.
* g++.dg/coroutines/torture/co-await-04-control-flow.C: Avoid
unused warnings.
* g++.dg/coroutines/torture/co-ret-13-template-2.C: Likewise.
* g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C: Likewise.
* g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C:
Likewise.
* g++.dg/coroutines/torture/pr109867.C: Likewise.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'libobjc/exception.c')
0 files changed, 0 insertions, 0 deletions