]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / replace / char / 1.cc
index d4c632b7a42c8fad56de124a0c044be659437fa7..4971324285538c010ea94d7b8c9800b8493a8085 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
-  csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
 
   const char str_lit01[] = "ventura, california";
   const std::string str01(str_lit01);