]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1-io.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / sputc / char / 1-io.cc
index 275def1839732d13238f45ad75765c46d6446d64..94b4c624ae5c72e70512c6edff0ce09c998bcdd0 100644 (file)
@@ -38,10 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -65,7 +63,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;