]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1-out.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / sputn / char / 1-out.cc
index d17db7abf3b1c2f6f00ef7a2894c57438ae9713f..3753a4be2622f972673d8eeca59e69aeaf5bac39 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
@@ -58,7 +58,7 @@ void test05()
    }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;