]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / collate / compare / wchar_t / 2.cc
index 8d813abde3d3d580a27193b4942fbeeecf531c38..fd4aee7a01614e9af8c76ec3be50f5899dbe31e7 100644 (file)
@@ -33,7 +33,7 @@ void test02()
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -46,22 +46,17 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c); 
-  const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us); 
-  const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr); 
   const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de); 
 
   // int compare(const charT*, const charT*, const charT*, const charT*) const
 
   const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
-  const wchar_t* strlit2 = L"imperial tea court green oolong";
   const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Äuglein"
   const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
   int i1;
   int i2;
   int size1 = char_traits<wchar_t>::length(strlit1) - 1;
-  int size2 = char_traits<wchar_t>::length(strlit2) - 1;
   int size3 = char_traits<wchar_t>::length(strlit3) - 1;
   int size4 = char_traits<wchar_t>::length(strlit4) - 1;