]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/2-in.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / sputn / char / 2-in.cc
index a9f188cf410ee61e2ace36a8cf4196edbc9e65d2..a2a2322dd865466a3b443fefddd3d6f4e4859e65 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
+  bool test __attribute__((unused)) = true;
+  streamsize                   strmsz_1;
 
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
@@ -57,7 +57,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;