summaryrefslogtreecommitdiff
path: root/xsd/tests/cxx/tree/naming/knr/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/tests/cxx/tree/naming/knr/driver.cxx')
-rw-r--r--xsd/tests/cxx/tree/naming/knr/driver.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/xsd/tests/cxx/tree/naming/knr/driver.cxx b/xsd/tests/cxx/tree/naming/knr/driver.cxx
index fff944b..5038d7b 100644
--- a/xsd/tests/cxx/tree/naming/knr/driver.cxx
+++ b/xsd/tests/cxx/tree/naming/knr/driver.cxx
@@ -1,12 +1,10 @@
// file : tests/cxx/tree/naming/knr/driver.cxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC
+// copyright : Copyright (c) 2006-2014 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
// Test K&R naming style.
//
-#include <memory> // std::auto_ptr
#include <sstream>
#include <iostream>
@@ -29,6 +27,7 @@ main ()
{
gender::value v;
v = gender::female;
+ XSD_UNUSED (v);
}
// Anonymous type.
@@ -49,6 +48,8 @@ main ()
//
{
type::foo_type* p = 0;
+ XSD_UNUSED (p);
+
type::foo_optional o;
if (t.foo ().present ())
@@ -61,6 +62,7 @@ main ()
//
{
type::bar_type* p = 0;
+ XSD_UNUSED (p);
if (t.bar () != "bar")
return 1;
@@ -72,9 +74,13 @@ 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 ());
+ XSD_UNUSED (i);
+ XSD_UNUSED (ci);
if (t.baz () != s)
return 1;
@@ -88,6 +94,8 @@ main ()
type::any_sequence s (t.dom_document ());
type::any_iterator i (s.begin ());
type::any_const_iterator ci (s.begin ());
+ XSD_UNUSED (i);
+ XSD_UNUSED (ci);
if (t.any () != s)
return 1;
@@ -112,6 +120,8 @@ main ()
type::any_attribute_set s (t.dom_document ());
type::any_attribute_iterator i (s.begin ());
type::any_attribute_const_iterator ci (s.begin ());
+ XSD_UNUSED (i);
+ XSD_UNUSED (ci);
if (t.any_attribute () != s)
return 1;