From 567d4027a3ca0dc36fd0d828925a34a237ad62db Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 8 Jun 2010 00:45:02 +0000 Subject: order_statistics_imp.hpp: Avoid -Wall warnings. 2010-06-07 Paolo Carlini * include/ext/pb_ds/detail/trie_policy/order_statistics_imp.hpp: Avoid -Wall warnings. * testsuite/27_io/ios_base/failure/what-3.cc: Likewise. * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_ostringstream/str/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise. * testsuite/27_io/types/2.cc: Likewise. * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise. * testsuite/27_io/basic_istream/peek/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise. * testsuite/27_io/basic_istream/ws/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_istream/ws/char/1.cc: Likewise. * testsuite/27_io/basic_istream/seekg/wchar_t/8348-2.cc: Likewise. * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise. * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise. * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/ wchar_t/01.cc: Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/ 01.cc: Likewise. * testsuite/27_io/fpos/mbstate_t/4_neg.cc: Likewise. * testsuite/27_io/fpos/mbstate_t/2.cc: Likewise. * testsuite/27_io/fpos/mbstate_t/3.cc: Likewise. * testsuite/27_io/fpos/mbstate_t/5.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_character/wchar_t/ 4.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_character/char/ 4.cc: Likewise. * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Likewise. * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Likewise. * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: Likewise. * testsuite/25_algorithms/minmax/3.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-3.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-3.cc: Likewise. * testsuite/19_diagnostics/system_error/what-3.cc: Likewise. * testsuite/24_iterators/front_insert_iterator/2.cc: Likewise. * testsuite/24_iterators/back_insert_iterator/2.cc: Likewise. * testsuite/24_iterators/insert_iterator/2.cc: Likewise. * testsuite/18_support/exception_ptr/make_exception_ptr.cc: Likewise. * testsuite/21_strings/c_strings/wchar_t/1.cc: Likewise. * testsuite/21_strings/c_strings/wchar_t/2.cc: Likewise. * testsuite/21_strings/c_strings/char/1.cc: Likewise. * testsuite/21_strings/c_strings/char/2.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/cons/ copy.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ cons/copy.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ requirements/constants.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/ cons/copy.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ cons/copy.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ requirements/constants.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ cons/copy.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ requirements/constants.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/ cons/copy.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/ requirements/constants.cc: Likewise. * testsuite/26_numerics/complex/complex_value.cc: Likewise. * testsuite/26_numerics/headers/cmath/overloads.cc: Likewise. * testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++.cc: Likewise. * testsuite/26_numerics/slice_array/array_assignment.cc: Likewise. * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise. * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise. * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise. * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise. * testsuite/22_locale/money_put/put/char/1.cc: Likewise. * testsuite/22_locale/money_put/put/char/2.cc: Likewise. * testsuite/22_locale/money_put/put/char/3.cc: Likewise. * testsuite/22_locale/money_put/put/char/12971.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise. * testsuite/22_locale/time_put/put/char/1.cc: Likewise. * testsuite/22_locale/time_put/put/char/2.cc: Likewise. * testsuite/22_locale/time_put/put/char/3.cc: Likewise. * testsuite/22_locale/time_put/put/char/4.cc: Likewise. * testsuite/22_locale/time_put/put/char/5.cc: Likewise. * testsuite/22_locale/time_put/put/char/6.cc: Likewise. * testsuite/22_locale/time_put/put/char/7.cc: Likewise. * testsuite/22_locale/time_put/put/char/8.cc: Likewise. * testsuite/22_locale/time_put/put/char/17038.cc: Likewise. * testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise. * testsuite/22_locale/num_put/put/char/1.cc: Likewise. * testsuite/22_locale/time_get/get_year/wchar_t/5.cc: Likewise. * testsuite/22_locale/time_get/get_year/char/5.cc: Likewise. * testsuite/22_locale/time_get/get_monthname/wchar_t/5.cc: Likewise. * testsuite/22_locale/time_get/get_monthname/char/5.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/wchar_t/5.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/char/5.cc: Likewise. * testsuite/22_locale/time_get/get_date/wchar_t/5.cc: Likewise. * testsuite/22_locale/time_get/get_date/char/5.cc: Likewise. * testsuite/22_locale/time_get/get_time/wchar_t/5.cc: Likewise. * testsuite/22_locale/time_get/get_time/char/5.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise. * testsuite/22_locale/num_get/get/char/1.cc: Likewise. * testsuite/22_locale/moneypunct/members/wchar_t/1.cc: Likewise. * testsuite/22_locale/moneypunct/members/char/1.cc: Likewise. * testsuite/22_locale/ctype_base/mask.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/ subtract_with_carry/requirements/constants.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/ subtract_with_carry_01/requirements/constants.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/ discard_block/requirements/constants.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/ linear_congruential/requirements/constants.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/ mersenne_twister/requirements/constants.cc: Likewise. * testsuite/tr1/5_numerical_facilities/random/ xor_combine/requirements/constants.cc: Likewise. * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cctype/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cmath/templates.cc: Likewise. * testsuite/tr1/8_c_compatibility/cmath/functions.cc: Likewise. * testsuite/tr1/8_c_compatibility/cwctype/functions.cc: Likewise. * testsuite/tr1/6_containers/utility/pair.cc: Likewise. * testsuite/29_atomics/atomic_address/cons/aggregate.cc: Likewise. * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/operators/ increment_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/operators/ bitwise_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/operators/ decrement_neg.cc: Likewise. * testsuite/29_atomics/atomic_flag/cons/1.cc: Likewise. * testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise. * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. * testsuite/23_containers/priority_queue/members/7161.cc * testsuite/23_containers/set/dr130.cc: Likewise. * testsuite/23_containers/list/pthread5.cc: Likewise. * testsuite/23_containers/map/dr130.cc: Likewise. * testsuite/util/exception/safety.h: Likewise. * testsuite/util/testsuite_common_types.h: Likewise. * testsuite/20_util/clocks/1.cc: Likewise. From-SVN: r160416 --- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/12790-4.cc | 4 ++-- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc | 6 +++--- libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc | 8 ++++---- libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc | 8 ++++---- 10 files changed, 31 insertions(+), 31 deletions(-) (limited to 'libstdc++-v3/testsuite/27_io/basic_filebuf') diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/12790-4.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/12790-4.cc index 53ee751ed44..3bf4353d7e6 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/12790-4.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/12790-4.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc. +// Copyright (C) 2003, 2005, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,7 @@ void test01() fb.sputc(pod_uchar::from(0xff)); // Check that seekoff sets the current state during output - traits_type::pos_type pos = fb.pubseekoff(0, ios_base::cur); + fb.pubseekoff(0, ios_base::cur); fb.sputc(pod_uchar::from('a')); fb.sputc(pod_uchar::from(0xff)); fb.sputc(pod_uchar::from(0)); diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc index 3d26c1cfc57..24887461719 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test05() typedef filebuf::traits_type traits_type; bool test __attribute__((unused)) = true; - streamsize strmsz_1, strmsz_2; + streamsize strmsz_1; int_type c1; int_type c2; @@ -65,7 +65,7 @@ void test05() //beg strmsz_1 = fb.in_avail(); pt_1 = fb.pubseekoff(2, ios_base::beg); - strmsz_2 = fb.in_avail(); + fb.in_avail(); off_1 = off_type(pt_1); VERIFY( off_1 > 0 ); c1 = fb.snextc(); //current in pointer +1 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc index bb175150556..4dc6d8648be 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test05() typedef filebuf::off_type off_type; bool test __attribute__((unused)) = true; - streamsize strmsz_1, strmsz_2; + streamsize strmsz_1; int_type c1; int_type c2; @@ -66,7 +66,7 @@ void test05() //beg strmsz_1 = fb.in_avail(); pt_1 = fb.pubseekoff(2, ios_base::beg); - strmsz_2 = fb.in_avail(); + fb.in_avail(); off_1 = off_type(pt_1); VERIFY( off_1 > 0 ); c1 = fb.snextc(); //current in pointer +1 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc index f786504984d..8d7ab1dfc11 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test05() typedef filebuf::traits_type traits_type; bool test __attribute__((unused)) = true; - streamsize strmsz_1, strmsz_2; + streamsize strmsz_1; int_type c1; int_type c2; @@ -66,7 +66,7 @@ void test05() //beg strmsz_1 = fb.in_avail(); pt_1 = fb.pubseekoff(2, ios_base::beg); - strmsz_2 = fb.in_avail(); + fb.in_avail(); off_1 = off_type(pt_1); VERIFY( off_1 > 0 ); c1 = fb.snextc(); //current in pointer +1 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc index f8385b25a8a..3a8809da2f6 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test05() typedef filebuf::traits_type traits_type; bool test __attribute__((unused)) = true; - streamsize strmsz_1, strmsz_2; + streamsize strmsz_1; int_type c1; int_type c2; @@ -66,7 +66,7 @@ void test05() //beg strmsz_1 = fb.in_avail(); pt_1 = fb.pubseekoff(2, ios_base::beg); - strmsz_2 = fb.in_avail(); + fb.in_avail(); off_1 = off_type(pt_1); VERIFY( off_1 > 0 ); c1 = fb.snextc(); //current in pointer +1 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc index 67a376e67c4..89fab2aed90 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test05() typedef filebuf::off_type off_type; bool test __attribute__((unused)) = true; - streamsize strmsz_1, strmsz_2; + streamsize strmsz_1; int_type c1; int_type c2; @@ -66,7 +66,7 @@ void test05() //beg strmsz_1 = fb.in_avail(); pt_1 = fb.pubseekoff(2, ios_base::beg); - strmsz_2 = fb.in_avail(); + fb.in_avail(); off_1 = off_type(pt_1); VERIFY( off_1 > 0 ); c1 = fb.snextc(); //current in pointer +1 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc index e1e98261f22..b1ad66e8933 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test05() typedef filebuf::traits_type traits_type; bool test __attribute__((unused)) = true; - streamsize strmsz_1, strmsz_2; + streamsize strmsz_1; int_type c1; int_type c2; @@ -66,7 +66,7 @@ void test05() //beg strmsz_1 = fb.in_avail(); pt_1 = fb.pubseekoff(2, ios_base::beg); - strmsz_2 = fb.in_avail(); + fb.in_avail(); off_1 = off_type(pt_1); VERIFY( off_1 > 0 ); c1 = fb.snextc(); //current in pointer +1 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc index e24941e06af..fd332b68365 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -40,7 +40,7 @@ void test05() streamsize strmsz_1, strmsz_2; char carray2[8192] = ""; - int_type c2, c4; + int_type c2; // streamsize sgetn(char_type *s, streamsize n) // streamsize xsgetn(char_type *s, streamsize n) @@ -63,7 +63,7 @@ void test05() strmsz_2 = fb_02.sgetn(carray2, strmsz_1 + 5); VERIFY( strmsz_1 == -1 ); VERIFY( strmsz_2 == 0 ); - c4 = fb_02.sgetc(); + fb_02.sgetc(); VERIFY( fb_02.unbuffered() ); VERIFY( !fb_02.read_position() ); } diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc index 07b971ec5c4..54a1372b467 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test01() bool test __attribute__((unused)) = true; streamsize strmsz_1, strmsz_2; - int_type c1, c2, c3; + int_type c1, c2; // int_type sungetc() // if in_cur not avail, return pbackfail(), else decrement and @@ -56,7 +56,7 @@ void test01() fb_01.sputc('u'); fb_01.sputc('v'); fb_01.pubseekoff(-1, std::ios_base::end); - c3 = fb_01.sbumpc(); + fb_01.sbumpc(); strmsz_1 = fb_01.in_avail(); c2 = fb_01.sungetc(); strmsz_2 = fb_01.in_avail(); @@ -68,7 +68,7 @@ void test01() c1 = fb_01.sgetc(); c2 = fb_01.sungetc(); strmsz_2 = fb_01.in_avail(); // 1 - c3 = fb_01.sgetc(); + fb_01.sgetc(); VERIFY( c1 != c2 ); VERIFY( strmsz_2 != strmsz_1 ); VERIFY( strmsz_2 == 1 ); diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc index 753154ea0ae..782a83db91d 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc @@ -1,6 +1,6 @@ // 2001-05-21 Benjamin Kosnik -// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test01() bool test __attribute__((unused)) = true; streamsize strmsz_1, strmsz_2; - int_type c1, c2, c3; + int_type c1, c2; // int_type sungetc() // if in_cur not avail, return pbackfail(), else decrement and @@ -56,7 +56,7 @@ void test01() fb_01.sputc('u'); fb_01.sputc('v'); fb_01.pubseekoff(-1, std::ios_base::end); - c3 = fb_01.sbumpc(); + fb_01.sbumpc(); strmsz_1 = fb_01.in_avail(); c2 = fb_01.sungetc(); strmsz_2 = fb_01.in_avail(); @@ -68,7 +68,7 @@ void test01() c1 = fb_01.sgetc(); c2 = fb_01.sungetc(); strmsz_2 = fb_01.in_avail(); // 1 - c3 = fb_01.sgetc(); + fb_01.sgetc(); VERIFY( c1 != c2 ); VERIFY( strmsz_2 != strmsz_1 ); VERIFY( strmsz_2 == 1 ); -- cgit v1.2.1