]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/collate/1.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / collate / 1.cc
index 5b55b03f24fffbb1f514f3bf43dd4f4f16c9c8ba..2f6415fcd67dd7c7344eb8f1884db12cea50de40 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::messages<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 
   // Check for required typedefs
   typedef test_type::char_type char_type;