]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1-io.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / snextc / char / 1-io.cc
index 973d89b41f32230361865519fe7eb3f511e90b01..93764d9d7ece01e6c5cbf1ba859db24b884d483a 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c3;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -76,7 +76,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;