]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / element_access / char / 2.cc
index d2b5831ad6b7a7cd6dffd90d83b7266c100a1a3a..34c1772d4ceb59819ad6d6083a3c2e558ebc5f0f 100644 (file)
 // underlying string implementation, of course.
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator siterator;
   typedef std::string::reverse_iterator sriterator;
-  csize_type npos = std::string::npos;
   csize_type csz01, csz02;
   siterator it1;
   sriterator rit1;