Improve -Wunused-value testcase build failures fix
authorGary Benson <gbenson@redhat.com>
Tue, 23 Jun 2020 14:11:27 +0000 (15:11 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 23 Jun 2020 14:11:27 +0000 (15:11 +0100)
commit7e4b9c4cd3b83be4c52eb475a6ef6b3fa4946cc5
treefb62f897dfad0df116835b33a89e8b0e9bb05cb8
parent80fda85ca18ee287c826a90b09c5cb8e20fd4d54
Improve -Wunused-value testcase build failures fix

This commit improves upon my previous -Wunused-value fix by
replacing the various dummy variables with casts to void, as
suggested by Pedro.

gdb/testsuite/ChangeLog:

* gdb.cp/namespace.cc: Improve -Wunused-value fix.
* gdb.cp/nsimport.cc: Likewise.
* gdb.cp/nsnested.cc: Likewise.
* gdb.cp/nsnoimports.cc: Likewise.
* gdb.cp/nsusing.cc: Likewise.
* gdb.cp/smartp.cc: Likewise.
* gdb.python/py-pp-integral.c: Likewise.
* gdb.python/py-pp-re-notag.c: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/namespace.cc
gdb/testsuite/gdb.cp/nsimport.cc
gdb/testsuite/gdb.cp/nsnested.cc
gdb/testsuite/gdb.cp/nsnoimports.cc
gdb/testsuite/gdb.cp/nsusing.cc
gdb/testsuite/gdb.cp/smartp.cc
gdb/testsuite/gdb.python/py-pp-integral.c
gdb/testsuite/gdb.python/py-pp-re-notag.c