]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / codecvt / always_noconv / char / 1.cc
index 523322ece8744f18b88ffb8b3b67b282cf450e58..060b3683a52098f6e34fd9b22ad7ab68843fecf6 100644 (file)
@@ -31,16 +31,12 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
-  const char*          c_lit = "black pearl jasmine tea";
-  const char*          from_next;
+  bool test __attribute__((unused)) = true;
   int                  size = 25;
   char*                c_arr = new char[size];
   char*                 c_ref = new char[size];
-  char*                        to_next;
 
   locale               loc = locale::classic();
-  c_codecvt::state_type state;
   const c_codecvt*     cvt = &use_facet<c_codecvt>(loc); 
 
   // According to the resolution of DR19 (see also libstd++/9168), in