diff options
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc')
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc b/libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc index 8171715dddb..89026225f9a 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc @@ -33,7 +33,7 @@ struct B { }; // http://gcc.gnu.org/ml/libstdc++/2000-09/msg00002.html bool test01() { - bool test = true; + bool test __attribute__((unused)) = true; std::vector< A<B> > vec01; std::vector< A<B> > vec02(5); typedef std::vector< A<B> >::size_type size_type; @@ -41,7 +41,7 @@ bool test01() try { - reference r01 = vec01.at(6); + reference r01 __attribute__((unused)) = vec01.at(6); VERIFY( false ); // Should not get here, as exception thrown. } catch(std::out_of_range& err) |