diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc index a3fd754e36d..90f00879132 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc @@ -38,13 +38,12 @@ 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; + streamsize strmsz_1, strmsz_2; char carray1[13] = ""; char carray2[8192] = ""; - int_type c1, c2, c3, c4; + int_type c1, c4; // streamsize sgetn(char_type *s, streamsize n) // streamsize xsgetn(char_type *s, streamsize n) @@ -88,7 +87,7 @@ void test05() } } -main() +int main() { test05(); return 0; |