]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/2.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / capacity / wchar_t / 2.cc
index 08aa2294bfa1f4b7431257abd2933d1257ca7fda..e611567ecd5e24316b24e1b09838a17ebe3975f4 100644 (file)
@@ -27,7 +27,7 @@
 // http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wstring str01 = L"twelve chars";
   // str01 becomes shared