OSDN Git Service

2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / sgetn / char / 2-out.cc
index c0e6be0..e94de1c 100644 (file)
@@ -37,13 +37,11 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
-  int                                  i = 0, j = 0, k = 0;
-  char carray1[13] = "";
+  streamsize                   strmsz_1, strmsz_2;
   char carray2[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c2, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -72,7 +70,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;