binutils-gdb/gdb/testsuite/gdb.cp/nsimport.cc
Gary Benson 7e4b9c4cd3 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.
2020-06-23 15:11:27 +01:00

21 lines
182 B
C++

namespace A {
int x = 11;
namespace{
int xx = 22;
}
}
using namespace A;
namespace{
int xxx = 33;
};
int main()
{
(void) x;
(void) xx;
(void) xxx;
return 0;
}