summaryrefslogtreecommitdiff
path: root/tests/cxx/tree/naming/knr/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-07-04 08:45:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-07-04 08:45:31 +0200
commit612b94596ad38263464c27da26a7186e7c22cca9 (patch)
tree0415de165032ed891b28b5640397f7b285c036ed /tests/cxx/tree/naming/knr/driver.cxx
parent6f5e742482eadf055c18bdbe4082450d3161edef (diff)
Suppress new GCC 4.8 warnings in tests
Diffstat (limited to 'tests/cxx/tree/naming/knr/driver.cxx')
-rw-r--r--tests/cxx/tree/naming/knr/driver.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cxx/tree/naming/knr/driver.cxx b/tests/cxx/tree/naming/knr/driver.cxx
index a75b676..4960e04 100644
--- a/tests/cxx/tree/naming/knr/driver.cxx
+++ b/tests/cxx/tree/naming/knr/driver.cxx
@@ -29,6 +29,7 @@ main ()
{
gender::value v;
v = gender::female;
+ XSD_UNUSED (v);
}
// Anonymous type.
@@ -49,6 +50,8 @@ main ()
//
{
type::foo_type* p = 0;
+ XSD_UNUSED (p);
+
type::foo_optional o;
if (t.foo ().present ())
@@ -61,6 +64,7 @@ main ()
//
{
type::bar_type* p = 0;
+ XSD_UNUSED (p);
if (t.bar () != "bar")
return 1;
@@ -72,6 +76,8 @@ main ()
//
{
type::baz_type* p = 0;
+ XSD_UNUSED (p);
+
type::baz_sequence s;
type::baz_iterator i (s.begin ());
type::baz_const_iterator ci (s.begin ());