]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/bitset/test/1.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / bitset / test / 1.cc
index 40f4f42d8ea6d565dfffd9713a8989340ac387d1..6e945d69768ee826820797b28c2cc93a1d625bc3 100644 (file)
 void 
 test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const size_t n1 = 5;
 
   // the other 22 member functions should be in here too...
   try {
     std::bitset<n1> five_bits;
-    bool unused = five_bits.test(n1);   // should throw
+    bool unused __attribute__((unused)) = five_bits.test(n1);   // should throw
     VERIFY( false );
   }
   catch(std::out_of_range& fail) {