Avoid testcase build failures with -Wunused-value
authorGary Benson <gbenson@redhat.com>
Tue, 23 Jun 2020 11:25:34 +0000 (12:25 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 23 Jun 2020 11:25:34 +0000 (12:25 +0100)
commit2e573c0a3f9de232587f75de0af765abb8e193b9
treebbd5ce00fdfa2a7315d9b23780376aa88795ae81
parent378258006c924e258f2433a94c1d9d7cb462e128
Avoid testcase build failures with -Wunused-value

A number of testcases fail to build with -Wunused-value enabled.
This commit adds dummy values to avoid this.

gdb/testsuite/ChangeLog:

* gdb.cp/namespace.cc: Avoid build failure with -Wunused-value.
* 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