OSDN Git Service

2010-06-07 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2010 00:45:02 +0000 (00:45 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2010 00:45:02 +0000 (00:45 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160416 138bc75d-0d04-0410-961f-82ee72b054a4

151 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pb_ds/detail/trie_policy/order_statistics_imp.hpp
libstdc++-v3/testsuite/18_support/exception_ptr/make_exception_ptr.cc
libstdc++-v3/testsuite/19_diagnostics/logic_error/what-3.cc
libstdc++-v3/testsuite/19_diagnostics/runtime_error/what-3.cc
libstdc++-v3/testsuite/19_diagnostics/system_error/what-3.cc
libstdc++-v3/testsuite/20_util/clocks/1.cc
libstdc++-v3/testsuite/21_strings/c_strings/char/1.cc
libstdc++-v3/testsuite/21_strings/c_strings/char/2.cc
libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/ctype_base/mask.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/12971.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/2.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/3.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/12971.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc
libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/char/5.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/17038.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/17038.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
libstdc++-v3/testsuite/23_containers/list/pthread5.cc
libstdc++-v3/testsuite/23_containers/map/dr130.cc
libstdc++-v3/testsuite/23_containers/priority_queue/members/7161.cc
libstdc++-v3/testsuite/23_containers/set/dr130.cc
libstdc++-v3/testsuite/24_iterators/back_insert_iterator/2.cc
libstdc++-v3/testsuite/24_iterators/front_insert_iterator/2.cc
libstdc++-v3/testsuite/24_iterators/insert_iterator/2.cc
libstdc++-v3/testsuite/25_algorithms/minmax/3.cc
libstdc++-v3/testsuite/26_numerics/complex/complex_value.cc
libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++.cc
libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads.cc
libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/copy.cc
libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/copy.cc
libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/copy.cc
libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/requirements/constants.cc
libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/copy.cc
libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/requirements/constants.cc
libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/copy.cc
libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/requirements/constants.cc
libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/copy.cc
libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/requirements/constants.cc
libstdc++-v3/testsuite/26_numerics/slice_array/array_assignment.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/12790-4.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/peek/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/peek/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/wchar_t/8348-2.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc
libstdc++-v3/testsuite/27_io/basic_istream/ws/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/ws/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/4.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/4.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/fpos/mbstate_t/2.cc
libstdc++-v3/testsuite/27_io/fpos/mbstate_t/3.cc
libstdc++-v3/testsuite/27_io/fpos/mbstate_t/4_neg.cc
libstdc++-v3/testsuite/27_io/fpos/mbstate_t/5.cc
libstdc++-v3/testsuite/27_io/ios_base/failure/what-3.cc
libstdc++-v3/testsuite/27_io/types/2.cc
libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic_address/cons/aggregate.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/1.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/increment_neg.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/discard_block/requirements/constants.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/requirements/constants.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/mersenne_twister/requirements/constants.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/requirements/constants.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/requirements/constants.cc
libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/xor_combine/requirements/constants.cc
libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cfenv/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/templates.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdio/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdlib/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cwchar/functions.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cwctype/functions.cc
libstdc++-v3/testsuite/util/exception/safety.h
libstdc++-v3/testsuite/util/testsuite_common_types.h

index 81f936b..1a2d410 100644 (file)
@@ -1,3 +1,181 @@
+2010-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * 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.
+
 2010-06-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        * doc/Makefile.am, doc/Makefile.in (xml_sources_extra): Add
index 4e27ac2..cb8e247 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 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 terms
@@ -50,8 +50,6 @@ find_by_order(size_type order)
 
   node_iterator nd_it = node_begin();
 
-  node_iterator end_nd_it = node_end();
-
   while (true)
     {
       if (order > nd_it.get_metadata())
index bc16ccd..4a7283f 100644 (file)
@@ -21,7 +21,7 @@
 #include <exception>
 #include <testsuite_hooks.h>
 
-bool test01()
+void test01()
 {
   bool test __attribute__((unused)) = true;
 
index 13438f0..0656d42 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-options "-std=gnu++0x" }
 
-// Copyright (C) 2007, 2009
+// Copyright (C) 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -32,6 +32,9 @@ void allocate_on_stack(void)
   __extension__ char array[num];
   for (size_t i = 0; i < num; i++) 
     array[i]=0;
+  // Suppress unused warnings.
+  for (size_t i = 0; i < num; i++) 
+    array[i]=array[i];
 }
 
 void test04()
index d28fc8e..b252cea 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-02-26 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,6 +34,9 @@ void allocate_on_stack(void)
   __extension__ char array[num];
   for (size_t i = 0; i < num; i++) 
     array[i]=0;
+  // Suppress unused warnings.
+  for (size_t i = 0; i < num; i++) 
+    array[i]=array[i];
 }
 
 void test04()
index 9dc7010..da4c80d 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-options "-std=gnu++0x" }
 
-// Copyright (C) 2007, 2009
+// Copyright (C) 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -32,6 +32,9 @@ void allocate_on_stack(void)
   __extension__ char array[num];
   for (size_t i = 0; i < num; i++) 
     array[i]=0;
+  // Suppress unused warnings.
+  for (size_t i = 0; i < num; i++) 
+    array[i]=array[i];
 }
 
 void test04()
index e808f45..ead2087 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // { dg-require-cstdint "" }
 
-// Copyright (C) 2008, 2009 Free Software Foundation
+// Copyright (C) 2008, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -33,6 +33,7 @@ main()
   is_monotonic = is_monotonic; // suppress unused warning
   std::time_t t2 = system_clock::to_time_t(t1);
   system_clock::time_point t3 = system_clock::from_time_t(t2);
+  t3 = t3; // suppress unused warning
   
   return 0;
 }
index 67bcac3..9142018 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-02  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 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
@@ -60,6 +60,9 @@ void test01()
   // void* memchr(      void* s, int c, size_t n);
   cv = std::memchr(cv, 'a', 3);
   v = std::memchr(v, 'a', 3);
+
+  cc1 = cc1; // Suppress unused warnings.
+  c1 = c1;
 }
 
 int main()
index 464713b..5d75190 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-02  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 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,6 +40,10 @@ void test02()
   cc = strrchr(ccarray1, 'c');
   cc = strpbrk(ccarray1, ccarray2);
   c = strstr(carray, carray);
+
+  cv1 = cv1; // Suppress unused warnings.
+  cc = cc;
+  c = c;
 }
 
 int main()
index 2e7a6c3..4702581 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-02  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 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
@@ -59,6 +59,9 @@ void test01()
   // wchar_t* wmemchr(      wchar_t* s, wchar_t c, size_t n);
   cc1 = std::wmemchr(ccarray1, L'a', 3);
   c1 = std::wmemchr(carray, L'a', 3);
+
+  cc1 = cc1; // Suppress unused warnings.
+  c1 = c1;
 }
 
 int main()
index aea01b0..7637ecd 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-02  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 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
@@ -39,6 +39,9 @@ void test02()
   cw = wcspbrk(ccarray1, ccarray2);
   cw = wcsrchr(ccarray1, L'c');
   w = wcsstr(carray, carray);
+
+  cw = cw; // Suppress unused warnings.
+  w = w;
 }
 
 int main()
index aec9f31..f503ce7 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do compile }
 // 1999-08-24 bkoz
 
-// Copyright (C) 1999, 2000, 2003, 2009 Free Software Foundation
+// Copyright (C) 1999, 2000, 2003, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -43,6 +43,8 @@ test01()
   res = m01 | m02;
   res = m01 ^ m02;
   res = ~m01;
+  res = res; // Suppress unused warning.
+
   m01 &= m02;
   m01 |= m02;
   m01 ^= m02;
index 0a76d43..0dad40a 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-08-27 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -52,12 +53,12 @@ void test01()
   oss.imbue(loc_de);
   const money_put<char>& mon_put = use_facet<money_put<char> >(oss.getloc()); 
 
-  iterator_type os_it01 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
   string result1 = oss.str();
   VERIFY( result1 == "7.200.000.000,00 ");
 
   oss.str(empty);
-  iterator_type os_it02 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
   string result2 = oss.str();
   VERIFY( result2 == "7.200.000.000,00 ");
 
@@ -68,12 +69,12 @@ void test01()
   oss.setf(ios_base::showbase);
 
   oss.str(empty);
-  iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
   string result3 = oss.str();
   VERIFY( result3 == "7.200.000.000,00 EUR ");
 
   oss.str(empty);
-  iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
   string result4 = oss.str();
   VERIFY( result4 == "7.200.000.000,00 \244");
 
@@ -88,14 +89,14 @@ void test01()
   // test various fill strategies
   oss.str(empty);
   oss.width(20);
-  iterator_type os_it10 = mon_put.put(oss.rdbuf(), true, oss, '*', digits2);
+  mon_put.put(oss.rdbuf(), true, oss, '*', digits2);
   string result10 = oss.str();
   VERIFY( result10 == "***************-,01*");
 
   oss.str(empty);
   oss.width(20);
   oss.setf(ios_base::internal);
-  iterator_type os_it11 = mon_put.put(oss.rdbuf(), true, oss, '*', digits2);
+  mon_put.put(oss.rdbuf(), true, oss, '*', digits2);
   string result11 = oss.str();
   VERIFY( result11 == "-,01****************");
 }
index 15efd37..5ccb9ba 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-11-09 Paolo Carlini <pcarlini@suse.de>
 
-// Copyright (C) 2003, 2009 Free Software Foundation
+// Copyright (C) 2003, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -37,7 +37,7 @@ void test01()
   ostringstream oss;
   const money_put<char>& mon_put = use_facet<money_put<char> >(oss.getloc()); 
 
-  iterator_type os_it01 = mon_put.put(oss.rdbuf(), true, oss, ' ', amount);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', amount);
   string result = oss.str();
   VERIFY( result == "11" );
 }
index b3defe8..7707c7e 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-08-27 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -63,12 +64,12 @@ void test02()
 
   // test sign of more than one digit, say hong kong.
   oss.str(empty);
-  iterator_type os_it05 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
   string result5 = oss.str();
   VERIFY( result5 == "HK$7,200,000,000.00");
 
   oss.str(empty);
-  iterator_type os_it06 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits2);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', digits2);
   string result6 = oss.str();
   VERIFY( result6 == "(HKD 100,000,000,000.00)");
 
@@ -76,7 +77,7 @@ void test02()
   oss.imbue(loc_c);
   oss.str(empty);
   const money_put<char>& mon_put2 = use_facet<money_put<char> >(oss.getloc()); 
-  iterator_type os_it07 = mon_put2.put(oss.rdbuf(), true, oss, ' ', digits4);
+  mon_put2.put(oss.rdbuf(), true, oss, ' ', digits4);
   string result7 = oss.str();
   VERIFY( result7 == "1");
 
@@ -84,7 +85,7 @@ void test02()
   oss.imbue(loc_hk);
   oss.str(empty);
   const money_put<char>& mon_put3 = use_facet<money_put<char> >(oss.getloc()); 
-  iterator_type os_it08 = mon_put3.put(oss.rdbuf(), true, oss, ' ', digits4);
+  mon_put3.put(oss.rdbuf(), true, oss, ' ', digits4);
   string result8 = oss.str();
   VERIFY( result8 == "(HKD .01)");
 
@@ -92,7 +93,7 @@ void test02()
 
   // test bunk input
   oss.str(empty);
-  iterator_type os_it09 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits3);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', digits3);
   string result9 = oss.str();
   VERIFY( result9 == "");
 }
index 6f571fd..609bb7f 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-08-27 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -49,12 +50,12 @@ void test03()
   oss.imbue(loc_de);
   const money_put<char>& mon_put = use_facet<money_put<char> >(oss.getloc()); 
 
-  iterator_type os_it01 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
   string result1 = oss.str();
   VERIFY( result1 == "7.200.000.000,00 ");
 
   oss.str(empty);
-  iterator_type os_it02 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
   string result2 = oss.str();
   VERIFY( result2 == "7.200.000.000,00 ");
 
@@ -65,12 +66,12 @@ void test03()
   oss.setf(ios_base::showbase);
 
   oss.str(empty);
-  iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
   string result3 = oss.str();
   VERIFY( result3 == "7.200.000.000,00 EUR ");
 
   oss.str(empty);
-  iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
   string result4 = oss.str();
   VERIFY( result4 == "7.200.000.000,00 \244");
 
index 1fceb27..d48b8aa 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-08-27 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -53,12 +54,12 @@ void test01()
   const money_put<wchar_t>& mon_put =
     use_facet<money_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it01 = mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
   wstring result1 = oss.str();
   VERIFY( result1 == L"7.200.000.000,00 " );
 
   oss.str(empty);
-  iterator_type os_it02 = mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
   wstring result2 = oss.str();
   VERIFY( result2 == L"7.200.000.000,00 " );
 
@@ -69,12 +70,12 @@ void test01()
   oss.setf(ios_base::showbase);
 
   oss.str(empty);
-  iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
   wstring result3 = oss.str();
   VERIFY( result3 == L"7.200.000.000,00 EUR " );
 
   oss.str(empty);
-  iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
   wstring result4 = oss.str();
   VERIFY( result4 == L"7.200.000.000,00 \x20ac" );
 
@@ -89,14 +90,14 @@ void test01()
   // test various fill strategies
   oss.str(empty);
   oss.width(20);
-  iterator_type os_it10 = mon_put.put(oss.rdbuf(), true, oss, L'*', digits2);
+  mon_put.put(oss.rdbuf(), true, oss, L'*', digits2);
   wstring result10 = oss.str();
   VERIFY( result10 == L"***************-,01*" );
 
   oss.str(empty);
   oss.width(20);
   oss.setf(ios_base::internal);
-  iterator_type os_it11 = mon_put.put(oss.rdbuf(), true, oss, L'*', digits2);
+  mon_put.put(oss.rdbuf(), true, oss, L'*', digits2);
   wstring result11 = oss.str();
   VERIFY( result11 == L"-,01****************" );
 }
index fd8bcf5..cd430a9 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-11-09 Paolo Carlini <pcarlini@suse.de>
 
-// Copyright (C) 2003, 2004, 2009 Free Software Foundation
+// Copyright (C) 2003, 2004, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -38,7 +38,7 @@ void test01()
   const money_put<wchar_t>& mon_put =
     use_facet<money_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it01 = mon_put.put(oss.rdbuf(), true, oss, L' ', amount);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', amount);
   wstring result = oss.str();
   VERIFY( result == L"11" );
 }
index 33f7727..592c913 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-08-27 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -64,12 +65,12 @@ void test02()
 
   // test sign of more than one digit, say hong kong.
   oss.str(empty);
-  iterator_type os_it05 = mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
   wstring result5 = oss.str();
   VERIFY( result5 == L"HK$7,200,000,000.00" );
 
   oss.str(empty);
-  iterator_type os_it06 = mon_put.put(oss.rdbuf(), true, oss, L' ', digits2);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', digits2);
   wstring result6 = oss.str();
   VERIFY( result6 == L"(HKD 100,000,000,000.00)" );
 
@@ -78,7 +79,7 @@ void test02()
   oss.str(empty);
   const money_put<wchar_t>& mon_put2 =
     use_facet<money_put<wchar_t> >(oss.getloc()); 
-  iterator_type os_it07 = mon_put2.put(oss.rdbuf(), true, oss, L' ', digits4);
+  mon_put2.put(oss.rdbuf(), true, oss, L' ', digits4);
   wstring result7 = oss.str();
   VERIFY( result7 == L"1" );
 
@@ -87,7 +88,7 @@ void test02()
   oss.str(empty);
   const money_put<wchar_t>& mon_put3 =
     use_facet<money_put<wchar_t> >(oss.getloc()); 
-  iterator_type os_it08 = mon_put3.put(oss.rdbuf(), true, oss, L' ', digits4);
+  mon_put3.put(oss.rdbuf(), true, oss, L' ', digits4);
   wstring result8 = oss.str();
   VERIFY( result8 == L"(HKD .01)" );
 
@@ -95,7 +96,7 @@ void test02()
 
   // test bunk input
   oss.str(empty);
-  iterator_type os_it09 = mon_put.put(oss.rdbuf(), true, oss, L' ', digits3);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', digits3);
   wstring result9 = oss.str();
   VERIFY( result9 == L"" );
 }
index a0fbcda..798745b 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-08-27 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -50,12 +51,12 @@ void test03()
   const money_put<wchar_t>& mon_put =
     use_facet<money_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it01 = mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
   wstring result1 = oss.str();
   VERIFY( result1 == L"7.200.000.000,00 " );
 
   oss.str(empty);
-  iterator_type os_it02 = mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
   wstring result2 = oss.str();
   VERIFY( result2 == L"7.200.000.000,00 " );
 
@@ -66,12 +67,12 @@ void test03()
   oss.setf(ios_base::showbase);
 
   oss.str(empty);
-  iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), true, oss, L' ', digits1);
   wstring result3 = oss.str();
   VERIFY( result3 == L"7.200.000.000,00 EUR " );
 
   oss.str(empty);
-  iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
+  mon_put.put(oss.rdbuf(), false, oss, L' ', digits1);
   wstring result4 = oss.str();
   VERIFY( result4 == L"7.200.000.000,00 \x20ac" );
 
index fac61ec..fd28b63 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-08-23 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -59,6 +59,8 @@ void test01()
   pattern neg1 = monp_c_t.neg_format();
   pattern pos2 = monp_c_f.pos_format();
   pattern neg2 = monp_c_f.neg_format();
+  neg1 = neg1;
+  neg2 = neg2;
 
   VERIFY( q1 == '.' );
   VERIFY( q3 == '.' );
index bb862de..eb5e506 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-08-23 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -59,6 +59,8 @@ void test01()
   pattern neg1 = monp_c_t.neg_format();
   pattern pos2 = monp_c_f.pos_format();
   pattern neg2 = monp_c_f.neg_format();
+  neg1 = neg1;
+  neg2 = neg2;
 
   VERIFY( q1 == L'.' );
   VERIFY( q3 == L'.' );
index dd849c6..c951c4c 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-11-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -63,7 +63,7 @@ void test01()
   // bool, simple
   iss.str("1");
   iterator_type os_it00 = iss.rdbuf();
-  iterator_type os_it01 = ng.get(os_it00, 0, iss, err, b1);
+  ng.get(os_it00, 0, iss, err, b1);
   VERIFY( b1 == true );
   VERIFY( err & ios_base::eofbit );
 
index d36f5ca..8b48847 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-11-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -63,7 +63,7 @@ void test01()
   // bool, simple
   iss.str(L"1");
   iterator_type os_it00 = iss.rdbuf();
-  iterator_type os_it01 = ng.get(os_it00, 0, iss, err, b1);
+  ng.get(os_it00, 0, iss, err, b1);
   VERIFY( b1 == true );
   VERIFY( err & ios_base::eofbit );
 
index 1398aee..df1a86d 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-11-19 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -61,7 +62,7 @@ void test01()
 
   // bool, simple
   iterator_type os_it00 = oss.rdbuf();
-  iterator_type os_it01 = np.put(os_it00, oss, '+', b1);
+  np.put(os_it00, oss, '+', b1);
   result1 = oss.str();
   VERIFY( result1 == "1" );
 
index 83da0d2..01b06d6 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-11-19 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -62,7 +62,7 @@ void test01()
 
   // bool, simple
   iterator_type os_it00 = oss.rdbuf();
-  iterator_type os_it01 = np.put(os_it00, oss, L'+', b1);
+  np.put(os_it00, oss, L'+', b1);
   result1 = oss.str();
   VERIFY( result1 == L"1" );
 
index 5a31f33..f08cd6f 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -48,7 +48,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const string str0 = "1";
-  iter_type end0 = tg.get_date(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_date(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_year == 0 );
   VERIFY( tm0.tm_mon == 0 );
index 194e150..9110884 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -48,7 +48,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const wstring str0 = L"1";
-  iter_type end0 = tg.get_date(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_date(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_year == 0 );
   VERIFY( tm0.tm_mon == 0 );
index 64b0a2e..c1966fe 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -48,7 +48,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const string str0 = "S";
-  iter_type end0 = tg.get_monthname(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_monthname(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_mon == 0 );
 
index 5b48a30..192d19c 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -48,7 +48,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const wstring str0 = L"S";
-  iter_type end0 = tg.get_monthname(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_monthname(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_mon == 0 );
 
index f0808bf..b099b6e 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -49,7 +49,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const string str0 = "1";
-  iter_type end0 = tg.get_time(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_time(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_sec == 0 );
   VERIFY( tm0.tm_min == 0 );
index b06ccf6..ffce432 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -49,7 +49,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const wstring str0 = L"1";
-  iter_type end0 = tg.get_time(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_time(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_sec == 0 );
   VERIFY( tm0.tm_min == 0 );
index 1583f10..4157a08 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -49,7 +49,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const string str0 = "T";
-  iter_type end0 = tg.get_weekday(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_weekday(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm1.tm_wday == 0 );
 
index 29de6a2..02664bf 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation
+// Copyright (C) 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -49,7 +49,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const wstring str0 = L"T";
-  iter_type end0 = tg.get_weekday(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_weekday(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm1.tm_wday == 0 );
 
index 0f6e5a9..f3a47bf 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009  Free Software Foundation
+// Copyright (C) 2006, 2009, 2010  Free Software Foundation
 //
 // 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
@@ -49,7 +49,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const string str0 = "1";
-  iter_type end0 = tg.get_year(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_year(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_year == 0 );
 
index 6c5cbf1..c932beb 100644 (file)
@@ -1,6 +1,6 @@
 // 2006-06-16  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009  Free Software Foundation
+// Copyright (C) 2006, 2009, 2010  Free Software Foundation
 //
 // 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
@@ -49,7 +49,7 @@ void test01()
   const time_get_type& tg = use_facet<time_get_type>(iss.getloc());
 
   const wstring str0 = L"1";
-  iter_type end0 = tg.get_year(str0.begin(), str0.end(), iss, err, &tm0);
+  tg.get_year(str0.begin(), str0.end(), iss, err, &tm0);
   VERIFY( err == (failbit | eofbit) );
   VERIFY( tm0.tm_year == 0 );
 
index 8fed343..32388cc 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -48,27 +48,27 @@ void test01()
   // put(iter_type s, ios_base& str, char_type fill, const tm* t,
   //    char format, char modifier = 0) const;
   oss.str(empty);
-  iterator_type os_it01 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
   string result1 = oss.str();
   VERIFY( result1 == "Sun" );
 
   oss.str(empty);
-  iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result21 = oss.str(); // "04/04/71"
   VERIFY( result21 == "04/04/71" );
 
   oss.str(empty);
-  iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result22 = oss.str(); // "12:00:00"
   VERIFY( result22 == "12:00:00" );
   
   oss.str(empty);
-  iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result31 = oss.str(); // "04/04/71"
   VERIFY( result31 == "04/04/71" );
 
   oss.str(empty);
-  iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result32 = oss.str(); // "12:00:00"
   VERIFY( result32 == "12:00:00" );
 }
index 318c05d..77f2972 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2009, 2010 Free Software Foundation
 //
 // 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()
   const time_put<char>& tim_put =
     use_facet<time_put<char> >(oss.getloc()); 
 
-  iterator_type os_it01 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'c');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'c');
   string result1 = oss.str();
 
   char time_buffer[128];
index 7c65ad9..255636c 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -47,27 +47,27 @@ void test02()
   oss.imbue(loc_de);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
 
-  iterator_type os_it02 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
   string result2 = oss.str();
   VERIFY( result2 == "Son" || result2 == "So" );
 
   oss.str(empty); // "%d.%m.%Y"
-  iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result23 = oss.str(); // "04.04.1971"
   VERIFY( result23 == "04.04.1971" );
 
   oss.str(empty); // "%T"
-  iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result24 = oss.str(); // "12:00:00"
   VERIFY( result24 == "12:00:00" );
 
   oss.str(empty);
-  iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result33 = oss.str(); // "04.04.1971"
   VERIFY( result33 == "04.04.1971" );
 
   oss.str(empty);
-  iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result34 = oss.str(); // "12:00:00"
   VERIFY( result34 == "12:00:00" );
 }
index c71b5e4..6b9b330 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -47,27 +47,27 @@ void test03()
   oss.imbue(loc_hk);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
 
-  iterator_type os_it03 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
   string result3 = oss.str();
   VERIFY( result3 == "Sun" );
 
   oss.str(empty); // "%A, %B %d, %Y"
-  iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result25 = oss.str(); // "Sunday, April 04, 1971"
   VERIFY( result25 == "Sunday, April 04, 1971" );
 
   oss.str(empty); // "%I:%M:%S %Z"
-  iterator_type os_it26 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result26 = oss.str(); // "12:00:00 CET" or whatever timezone
   VERIFY( result26.find("12:00:00") != string::npos );
 
   oss.str(empty);
-  iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result35 = oss.str(); // "Sunday, April 04, 1971"
   VERIFY( result35 == "Sunday, April 04, 1971" );
 
   oss.str(empty);
-  iterator_type os_it36 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result36 = oss.str(); // "12:00:00 CET"
   VERIFY( result36.find("12:00:00") != string::npos );
 }
index 196c1aa..21b9725 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+// 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -46,27 +47,27 @@ void test04()
   ostringstream oss;
   oss.imbue(loc_es);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
-  iterator_type os_it04 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
   string result4 = oss.str();
   VERIFY( result4 == "dom" );
 
   oss.str(empty); // "%d/%m/%y"
-  iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
   string result27 = oss.str(); // "04/04/71"
   VERIFY( result27 == "04/04/71" );
 
   oss.str(empty); // "%T"
-  iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
   string result28 = oss.str(); // "12:00:00"
   VERIFY( result28 == "12:00:00" );
 
   oss.str(empty);
-  iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
   string result37 = oss.str(); // "04/04/71"
   VERIFY( result37 == "04/04/71" );
 
   oss.str(empty);
-  iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
   string result38 = oss.str(); // "12:00:00"
   VERIFY( result38 == "12:00:00" );
 }
index 2f9c6a6..96ce947 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -48,13 +48,12 @@ void test05()
 
   // 2
   oss.str(empty);
-  iterator_type os_it05 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date, date + traits::length(date));
   string result5 = oss.str();
   VERIFY( result5 == "Sunday, the second of April");
-  iterator_type os_it06 = tim_put.put(oss.rdbuf(), oss, '*', &time1,
-                                     date_ex,
-                                     date_ex + traits::length(date_ex));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1,
+             date_ex, date_ex + traits::length(date_ex));
   string result6 = oss.str();
   VERIFY( result6 != result5 );
 }
index ff3938c..9e144ff 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -50,13 +50,12 @@ void test06()
   oss.imbue(loc_de);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
 
-  iterator_type os_it07 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date, date + traits::length(date));
   string result7 = oss.str();
   VERIFY( result7 == "Sonntag, the second of April");
-  iterator_type os_it08 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date_ex,
-                                     date_ex + traits::length(date_ex));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date_ex, date_ex + traits::length(date_ex));
   string result8 = oss.str();
   VERIFY( result8 != result7 );
 }
index 93b139d..67f1aa5 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -50,13 +50,12 @@ void test07()
   oss.imbue(loc_hk);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
 
-  iterator_type os_it09 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date, date + traits::length(date));
   string result9 = oss.str();
   VERIFY( result9 == "Sunday, the second of April");
-  iterator_type os_it10 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date_ex,
-                                     date_ex + traits::length(date_ex));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date_ex, date_ex + traits::length(date_ex));
   string result10 = oss.str();
   VERIFY( result10 != result9 );
 }
index 2834954..c3fc4d8 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -49,13 +49,12 @@ void test08()
   ostringstream oss;
   oss.imbue(loc_fr);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
-  iterator_type os_it11 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date, date + traits::length(date));
   string result11 = oss.str();
   VERIFY( result11 == "dimanche, the second of avril");
-  iterator_type os_it12 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 
-                                     date_ex,
-                                     date_ex + traits::length(date_ex));
+  tim_put.put(oss.rdbuf(), oss, '*', &time1, 
+             date_ex, date_ex + traits::length(date_ex));
   string result12 = oss.str();
   VERIFY( result12 != result11 );
 }
index 2ed02a5..2325975 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -43,34 +43,35 @@ void test01()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_c);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
 
   // 1
   // iter_type 
   // put(iter_type s, ios_base& str, char_type fill, const tm* t,
   //    char format, char modifier = 0) const;
   oss.str(empty);
-  iterator_type os_it01 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
   wstring result1 = oss.str();
   VERIFY( result1 == L"Sun" );
 
   oss.str(empty);
-  iterator_type os_it21 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result21 = oss.str(); // "04/04/71"
   VERIFY( result21 == L"04/04/71" );
 
   oss.str(empty);
-  iterator_type os_it22 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result22 = oss.str(); // "12:00:00"
   VERIFY( result22 == L"12:00:00" );
 
   oss.str(empty);
-  iterator_type os_it31 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result31 = oss.str(); // "04/04/71"
   VERIFY( result31 == L"04/04/71" );
 
   oss.str(empty);
-  iterator_type os_it32 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result32 = oss.str(); // "12:00:00"
   VERIFY( result32 == L"12:00:00" );
 }
index d4f9046..088acf2 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2009, 2010 Free Software Foundation
 //
 // 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()
   const time_put<wchar_t>& tim_put =
     use_facet<time_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it01 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'c');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'c');
   wstring result1 = oss.str();
 
   wchar_t time_buffer[128];
index c8cc42c..7ead914 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -45,29 +45,30 @@ void test02()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_de);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it02 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
   wstring result2 = oss.str();
   VERIFY( result2 == L"Son" || result2 == L"So" );
 
   oss.str(empty); // "%d.%m.%Y"
-  iterator_type os_it23 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result23 = oss.str(); // "04.04.1971"
   VERIFY( result23 == L"04.04.1971" );
 
   oss.str(empty); // "%T"
-  iterator_type os_it24 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result24 = oss.str(); // "12:00:00"
   VERIFY( result24 == L"12:00:00" );
 
   oss.str(empty);
-  iterator_type os_it33 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result33 = oss.str(); // "04.04.1971"
   VERIFY( result33 == L"04.04.1971" );
 
   oss.str(empty);
-  iterator_type os_it34 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result34 = oss.str(); // "12:00:00"
   VERIFY( result34 == L"12:00:00" );
 }
index eec2fa7..6e099d6 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -45,32 +45,32 @@ void test03()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_hk);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it03 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
   wstring result3 = oss.str();
   VERIFY( result3 == L"Sun" );
 
   oss.str(empty); // "%A, %B %d, %Y"
-  iterator_type os_it25 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result25 = oss.str(); // "Sunday, April 04, 1971"
   VERIFY( result25 == L"Sunday, April 04, 1971" );
 
   oss.str(empty); // "%I:%M:%S %Z"
-  iterator_type os_it26 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result26 = oss.str(); // "12:00:00 CET" or whatever timezone
   VERIFY( result26.find(L"12:00:00") != wstring::npos );
 
   oss.str(empty);
-  iterator_type os_it35 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result35 = oss.str(); // "Sunday, April 04, 1971"
   VERIFY( result35 == L"Sunday, April 04, 1971" );
 
   oss.str(empty);
-  iterator_type os_it36 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result36 = oss.str(); // "12:00:00 CET"
   VERIFY( result36.find(L"12:00:00") != wstring::npos );
-
 }
 
 int main()
index e56f14e..0ae2a1f 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+// 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -45,28 +46,30 @@ void test04()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_es);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
-  iterator_type os_it04 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
   wstring result4 = oss.str();
   VERIFY( result4 == L"dom" );
 
   oss.str(empty); // "%d/%m/%y"
-  iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
   wstring result27 = oss.str(); // "04/04/71"
   VERIFY( result27 == L"04/04/71" );
 
   oss.str(empty); // "%T"
-  iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
   wstring result28 = oss.str(); // "12:00:00"
   VERIFY( result28 == L"12:00:00" );
 
   oss.str(empty);
-  iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
   wstring result37 = oss.str(); // "04/04/71"
   VERIFY( result37 == L"04/04/71" );
 
   oss.str(empty);
-  iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');
   wstring result38 = oss.str(); // "12:00:00"
   VERIFY( result38 == L"12:00:00" );
 }
index 77f7798..1a355e0 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -46,17 +46,17 @@ void test05()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_c);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
 
   // 2
   oss.str(empty);
-  iterator_type os_it05 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date, date + traits::length(date));
   wstring result5 = oss.str();
   VERIFY( result5 == L"Sunday, the second of April");
-  iterator_type os_it06 = tim_put.put(oss.rdbuf(), oss, L'*', &time1,
-                                     date_ex,
-                                     date_ex + traits::length(date_ex));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1,
+             date_ex, date_ex + traits::length(date_ex));
   wstring result6 = oss.str();
   VERIFY( result6 != result5 );
 }
index 91a68a0..dedac7b 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -48,14 +48,15 @@ void test06()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_de);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it07 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date, date + traits::length(date));
   wstring result7 = oss.str();
   VERIFY( result7 == L"Sonntag, the second of April");
-  iterator_type os_it08 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date_ex, date_ex + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date_ex, date_ex + traits::length(date));
   wstring result8 = oss.str();
   VERIFY( result8 != result7 );
 }
index 439d608..5f0926c 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -48,14 +48,15 @@ void test07()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_hk);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
 
-  iterator_type os_it09 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date, date + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date, date + traits::length(date));
   wstring result9 = oss.str();
   VERIFY( result9 == L"Sunday, the second of April");
-  iterator_type os_it10 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date_ex, date_ex + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date_ex, date_ex + traits::length(date));
   wstring result10 = oss.str();
   VERIFY( result10 != result9 );
 }
index b073e8b..09311f4 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2001-09-17 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -48,13 +48,15 @@ void test08()
   const wstring empty;
   wostringstream oss;
   oss.imbue(loc_fr);
-  const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
-  iterator_type os_it11 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date, date + traits::length(date));
+  const time_put<wchar_t>& tim_put
+    = use_facet<time_put<wchar_t> >(oss.getloc()); 
+  
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date, date + traits::length(date));
   wstring result11 = oss.str();
   VERIFY( result11 == L"dimanche, the second of avril");
-  iterator_type os_it12 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
-                                     date_ex, date_ex + traits::length(date));
+  tim_put.put(oss.rdbuf(), oss, L'*', &time1, 
+             date_ex, date_ex + traits::length(date));
   wstring result12 = oss.str();
   VERIFY( result12 != result11 );
 }
index 57411ee..4f46437 100644 (file)
@@ -2,7 +2,7 @@
 // Adpated from libstdc++/5464 submitted by jjessel@amadeus.net
 // Jean-Francois JESSEL (Amadeus SAS Development) 
 //
-// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -99,7 +99,7 @@ main ()
 #endif
 
   pthread_attr_t tattr;
-  int ret = pthread_attr_init (&tattr);
+  int ret __attribute__((unused)) = pthread_attr_init (&tattr);
 #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
   ret = pthread_attr_setscope(&tattr, PTHREAD_SCOPE_SYSTEM);
 #endif
index d7f3c2b..9186a62 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // 2008-07-22  Edward Smith-Rowland  <3dw4rd@verizon.net>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -34,7 +34,7 @@ test01()
   typedef map<int, int>::value_type value_type;
   typedef pair<iterator, bool> insert_return_type;
 
-  insert_return_type irt0 = m0.insert(value_type(1, 1));
+  m0.insert(value_type(1, 1));
   insert_return_type irt1 = m0.insert(value_type(2, 2));
   insert_return_type irt2 = m0.insert(value_type(3, 3));
 
@@ -58,7 +58,7 @@ test02()
   typedef pair<iterator, bool> insert_return_type;
 
   insert_return_type irt0 = m0.insert(value_type(1, 1));
-  insert_return_type irt1 = m0.insert(value_type(2, 2));
+  m0.insert(value_type(2, 2));
   insert_return_type irt2 = m0.insert(value_type(3, 3));
   insert_return_type irt3 = m0.insert(value_type(4, 4));
 
index 4164686..0c21b25 100644 (file)
@@ -1,6 +1,6 @@
 // 2002-06-28 pme
 
-// Copyright (C) 2002, 2004, 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2002, 2004, 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
@@ -28,12 +28,10 @@ test03()
 {
   int data[] = {1, 2, 3};
   std::priority_queue<int> pq;
-  std::size_t size = pq.size();
 
   for (int i = 0; i < 3; ++i)
     pq.push(data[i]);
 
-  size = pq.size();
   pq.top();
   for (int i = 0; i < 2; ++i)
     pq.pop();
index 1904dcd..1dac562 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // 2008-07-22  Edward Smith-Rowland  <3dw4rd@verizon.net>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -33,7 +33,7 @@ test01()
   typedef set<int>::const_iterator const_iterator;
   typedef pair<iterator, bool> insert_return_type;
 
-  insert_return_type irt0 = s0.insert(1);
+  s0.insert(1);
   insert_return_type irt1 = s0.insert(2);
   insert_return_type irt2 = s0.insert(3);
 
@@ -56,7 +56,7 @@ test02()
   typedef pair<iterator, bool> insert_return_type;
 
   insert_return_type irt0 = s0.insert(1);
-  insert_return_type irt1 = s0.insert(2);
+  s0.insert(2);
   insert_return_type irt2 = s0.insert(3);
   insert_return_type irt3 = s0.insert(4);
 
index d691558..2c967ac 100644 (file)
@@ -1,6 +1,7 @@
 // 2001-06-21  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2004, 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2004, 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
@@ -27,6 +28,7 @@ void test02()
   typedef std::back_insert_iterator<std::list<int> > iterator_type;
   std::list<int> li;
   iterator_type it = std::back_inserter(li);
+  it = it; // Suppress unused warning.
 }
 
 int main() 
index 69aefe8..e727237 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-06-21  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2004, 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2004, 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
@@ -27,6 +27,7 @@ void test02()
   typedef std::front_insert_iterator<std::list<int> > iterator_type;
   std::list<int> li;
   iterator_type it = std::front_inserter(li);
+  it = it; // Suppress unused warning.
 }
 
 int main() 
index a596121..ac94930 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-06-21  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2004, 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2004, 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
@@ -30,6 +30,8 @@ void test02()
   std::list<int>::iterator liit = li.begin();
   iterator_type it01(li, liit);
   iterator_type it02 = std::inserter(li, liit);
+  it01 = it01; // Suppress unused warnings.
+  it02 = it02;
 }
 
 int main() 
index f0944b0..0e99d51 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2008-09-16  Chris Fairles  <chris.fairles@gmail.com>
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 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,8 +41,7 @@ void test01()
 {
   bool test __attribute__((unused)) = true;
 
-  std::pair<int, int> z = std::minmax({1, 2, 3, 4, 5, 6, 7, 8},
-                                     compare_counter());
+  std::minmax({1, 2, 3, 4, 5, 6, 7, 8}, compare_counter());
 
   // If N is the number of arguments in the minmax function call, 
   // 25.3.7 specifies that at most 3N/2 comparisons are allowed.
index 9dd2507..dc05a2b 100644 (file)
@@ -3,7 +3,7 @@
 // 2000-11-20
 // Benjamin Kosnik bkoz@redhat.com
 
-// Copyright (C) 2000, 2003, 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003, 2004, 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
@@ -34,27 +34,27 @@ void test01()
  complex_type a(cd1, cd2);
  double d;
  d = a.real();
- VERIFY( d == cd1);
+ VERIFY( d == cd1 );
 
  d = a.imag();
- VERIFY(d == cd2);
+ VERIFY( d == cd2 );
 
  complex_type c(cd1, cd2);
  double d6 = abs(c);
- VERIFY( d6 >= 0);
+ VERIFY( d6 >= 0 );
 
  double d7 = arg(c);
  double d8 = atan2(c.imag(), c.real());
- VERIFY( d7 == d8);
+ VERIFY( d7 == d8 );
 
  double d9 = norm(c);
  double d10 = d6 * d6;
- VERIFY(d9 - d10 == 0);
+ VERIFY( d9 - d10 == 0 );
 
- complex_type e = conj(c);
+ complex_type e __attribute__((unused)) = conj(c);
  
  complex_type f = polar(c.imag(), 0.0);
- VERIFY(f.real() != 0);
+ VERIFY( f.real() != 0 );
 }
 
 
index e85ecab..3f4b8ba 100644 (file)
@@ -70,6 +70,7 @@ template <typename _Tp>
     res = std::islessequal(f1,f2);
     res = std::islessgreater(f1, f2);
     res = std::isunordered(f1, f2);
+    res = res; // Suppress unused warning.
   }
 #endif
 
index 4418bc3..5819e1a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
+// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -43,4 +43,5 @@ int main()
   ans = std::sinh(j);
   ans = std::tan(i);
   ans = std::tanh(i);
+  ans = ans; // Suppress unused warnings.
 }
index 06360aa..6f5b8d2 100644 (file)
@@ -28,7 +28,8 @@ test01()
   std::linear_congruential_engine<unsigned long, 48271, 0, 2147483647> e(1);
 
   const auto f(e);
-  auto g(f);  
+  auto g(f);
+  g = g; // Suppress unused warning.
 }
 
 int main()
index af0c4b1..2b48164 100644 (file)
@@ -4,7 +4,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -31,6 +31,7 @@ void test01()
   p = &lc.increment;
   p = &lc.modulus;
   p = &lc.default_seed;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index 2abc5ab..ad38bec 100644 (file)
@@ -4,7 +4,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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,6 +41,7 @@ void test01()
   p = &mt.tempering_l;
   p = &mt.initialization_multiplier;
   p = &mt.default_seed;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index c1d5b3a..2a96488 100644 (file)
@@ -4,7 +4,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -29,6 +29,7 @@ void test01()
 
   const void* p = &so.table_size;
   p = &so.table_size;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index 2ab13a3..8c033cd 100644 (file)
@@ -4,7 +4,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -31,6 +31,7 @@ void test01()
   p = &swc.short_lag;
   p = &swc.long_lag;
   p = &swc.default_seed;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index 59bf014..0357e5d 100644 (file)
@@ -1,6 +1,6 @@
 // 20010613 gdr
 
-// 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
@@ -17,8 +17,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
-
 // This is DR-253.  Test for accessible assignment-operators.
 #include <valarray>
 #include <testsuite_hooks.h>
@@ -36,7 +34,7 @@ int main()
   VERIFY(v[3] == 1 && w[3] == 1);
   VERIFY(v[6] == 1 && w[6] == 1);
 
-  std::slice_array<int> t = v[slice(0, 10, 1)];
+  std::slice_array<int> t __attribute__((unused)) = v[slice(0, 10, 1)];
   
   return 0;
 }
index 53ee751..3bf4353 100644 (file)
@@ -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<char>(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<char>('a'));
   fb.sputc(pod_uchar::from<char>(0xff));
   fb.sputc(pod_uchar::from<char>(0));
index 3d26c1c..2488746 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
index bb17515..4dc6d86 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
index f786504..8d7ab1d 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
index f8385b2..3a8809d 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
index 67a376e..89fab2a 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
index e1e9826..b1ad66e 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
index e24941e..fd332b6 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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() );
   }
index 07b971e..54a1372 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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 );
index 753154e..782a83d 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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 );
index 9f1593e..a8d9169 100644 (file)
@@ -62,11 +62,8 @@ bool test01() {
   long double          ld1 = 0;
 
   // process alphanumeric versions of bool values
-  std::ios_base::fmtflags fmt = is_02.flags();
-  bool testfmt = fmt & std::ios_base::boolalpha;
   is_02.setf(std::ios_base::boolalpha);
-  fmt = is_02.flags();
-  testfmt = fmt & std::ios_base::boolalpha;
+  is_02.flags();
   is_02 >> b1;
   VERIFY( b1 == 1 );
   is_02 >> b1;
@@ -74,8 +71,7 @@ bool test01() {
 
   // process numeric versions of of bool values
   is_02.unsetf(std::ios_base::boolalpha);
-  fmt = is_02.flags();
-  testfmt = fmt & std::ios_base::boolalpha;
+  is_02.flags();
   is_02 >> b1;
   VERIFY( b1 == 0 );
   is_02 >> b1;
index 36ddaba..5d7ec97 100644 (file)
@@ -59,11 +59,8 @@ bool test01() {
   long double          ld1 = 0;
 
   // process alphanumeric versions of bool values
-  std::ios_base::fmtflags fmt = is_02.flags();
-  bool testfmt = fmt & std::ios_base::boolalpha;
   is_02.setf(std::ios_base::boolalpha);
-  fmt = is_02.flags();
-  testfmt = fmt & std::ios_base::boolalpha;
+  is_02.flags();
   is_02 >> b1;
   VERIFY( b1 == 1 );
   is_02 >> b1;
@@ -71,8 +68,7 @@ bool test01() {
 
   // process numeric versions of of bool values
   is_02.unsetf(std::ios_base::boolalpha);
-  fmt = is_02.flags();
-  testfmt = fmt & std::ios_base::boolalpha;
+  is_02.flags();
   is_02 >> b1;
   VERIFY( b1 == 0 );
   is_02 >> b1;
index de0546c..4e0ce25 100644 (file)
@@ -40,9 +40,7 @@ test01()
   std::istream is_00(0);
   std::istream is_03(&isbuf_03);
   std::istream is_04(&isbuf_04);
-  std::ios_base::iostate state1, state2, statefail, stateeof;
-  statefail = std::ios_base::failbit;
-  stateeof = std::ios_base::eofbit;
+  std::ios_base::iostate state1, state2;
 
   // istream& read(char_type* s, streamsize n)
   char carray[60] = "";
index 57c827d..c4a7a33 100644 (file)
@@ -37,9 +37,7 @@ test01()
   std::wistream is_00(0);
   std::wistream is_03(&isbuf_03);
   std::wistream is_04(&isbuf_04);
-  std::ios_base::iostate state1, state2, statefail, stateeof;
-  statefail = std::ios_base::failbit;
-  stateeof = std::ios_base::eofbit;
+  std::ios_base::iostate state1, state2;
 
   // istream& read(char_type* s, streamsize n)
   wchar_t carray[60] = L"";
index 4b818b2..39a3fdf 100644 (file)
@@ -40,9 +40,7 @@ test01()
   std::istream is_00(0);
   std::istream is_03(&isbuf_03);
   std::istream is_04(&isbuf_04);
-  std::ios_base::iostate state1, state2, statefail, stateeof;
-  statefail = std::ios_base::failbit;
-  stateeof = std::ios_base::eofbit;
+  std::ios_base::iostate state1, state2;
 
   char carray[60] = "";
 
index 8aa4ecf..612e606 100644 (file)
@@ -37,9 +37,7 @@ test01()
   std::wistream is_00(0);
   std::wistream is_03(&isbuf_03);
   std::wistream is_04(&isbuf_04);
-  std::ios_base::iostate state1, state2, statefail, stateeof;
-  statefail = std::ios_base::failbit;
-  stateeof = std::ios_base::eofbit;
+  std::ios_base::iostate state1, state2;
 
   wchar_t carray[60] = L"";
 
index 0fea445..899a48d 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-06-29 bkoz
 
-// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -35,7 +35,7 @@ void test06(void)
   // seekg
   {
     istringstream iss(num1);
-    istream::pos_type pos1 = iss.tellg();
+    iss.tellg();
     int asNum = 0;
     iss >> asNum;
     VERIFY( test = iss.eof() );
index ec09e45..d428a88 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -32,7 +32,7 @@ void test06(void)
   // seekg
   {
     wistringstream iss(num1);
-    wistream::pos_type pos1 = iss.tellg();
+    iss.tellg();
     int asNum = 0;
     iss >> asNum;
     VERIFY( test = iss.eof() );
index 1b8f18d..e4b4914 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-06-29 bkoz
 
-// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
 // Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -35,7 +35,7 @@ void test06(void)
   // tellg
   {
     istringstream iss(num1);
-    istream::pos_type pos1 = iss.tellg();
+    iss.tellg();
     int asNum = 0;
     iss >> asNum;
     VERIFY( test = iss.eof() );
@@ -47,7 +47,7 @@ void test06(void)
   // seekg
   {
     istringstream iss(num1);
-    istream::pos_type pos1 = iss.tellg();
+    iss.tellg();
     int asNum = 0;
     iss >> asNum;
     VERIFY( test = iss.eof() );
index cdbbd0c..6161381 100644 (file)
@@ -32,7 +32,7 @@ void test06(void)
   // tellg
   {
     wistringstream iss(num1);
-    wistream::pos_type pos1 = iss.tellg();
+    iss.tellg();
     int asNum = 0;
     iss >> asNum;
     VERIFY( test = iss.eof() );
@@ -44,7 +44,7 @@ void test06(void)
   // seekg
   {
     wistringstream iss(num1);
-    wistream::pos_type pos1 = iss.tellg();
+    iss.tellg();
     int asNum = 0;
     iss >> asNum;
     VERIFY( test = iss.eof() );
index 703cced..b59d088 100644 (file)
@@ -1,6 +1,7 @@
 // 1999-07-22 bkoz
 
-// Copyright (C) 1994, 1999, 2001, 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 1994, 1999, 2001, 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
@@ -33,7 +34,6 @@ void test01(void)
   std::string str02(str_lit01);
   std::string str04;
   std::string str05;
-  std::ios_base::iostate flag3, flag4, flag5;
 
   // template<_CharT, _Traits>
   //  basic_istream<_CharT, _Traits>& ws(basic_istream<_Char, _Traits>& is)
@@ -60,9 +60,6 @@ void test01(void)
   VERIFY( str05 == "barbara" );
   VERIFY( str05 == str04 );
 
-  flag3 = std::ios_base::eofbit;
-  flag4 = std::ios_base::badbit;
-  flag5 = std::ios_base::failbit;
   VERIFY( !iss01.fail() );
   VERIFY( !iss02.fail() );
   VERIFY( !iss01.eof() );
index d00dce7..8e60163 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 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
@@ -31,7 +31,6 @@ void test01(void)
   std::wstring str02(str_lit01);
   std::wstring str04;
   std::wstring str05;
-  std::ios_base::iostate flag3, flag4, flag5;
 
   // template<_CharT, _Traits>
   //  basic_istream<_CharT, _Traits>& ws(basic_istream<_Char, _Traits>& is)
@@ -58,9 +57,6 @@ void test01(void)
   VERIFY( str05 == L"barbara" );
   VERIFY( str05 == str04 );
 
-  flag3 = std::ios_base::eofbit;
-  flag4 = std::ios_base::badbit;
-  flag5 = std::ios_base::failbit;
   VERIFY( !iss01.fail() );
   VERIFY( !iss02.fail() );
   VERIFY( !iss01.eof() );
index 8b85ca2..5ec2136 100644 (file)
@@ -1,6 +1,7 @@
 // 1999-08-16 bkoz
 
-// Copyright (C) 1999, 2000, 2002, 2003, 2005, 2009 Free Software Foundation
+// Copyright (C) 1999, 2000, 2002, 2003, 2005, 2009, 2010
+// Free Software Foundation
 //
 // 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
@@ -35,9 +36,6 @@ test04()
 
   std::ostringstream oss_02(str_01, std::ios_base::out);
 
-  std::ios_base::iostate statefail;
-  statefail = std::ios_base::failbit;
-
   // template<_CharT, _Traits>
   //  basic_ostream& operator<<(ostream&, const char*)
   for (int i = 0; i < i_max; ++i) 
index cdcb354..902539e 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-08-16 bkoz
 
-// Copyright (C) 1999, 2000, 2002, 2003, 2009 Free Software Foundation
+// Copyright (C) 1999, 2000, 2002, 2003, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -35,9 +35,6 @@ test04()
 
   std::wostringstream oss_02(str_01, std::ios_base::out);
 
-  std::ios_base::iostate statefail;
-  statefail = std::ios_base::failbit;
-
   // template<_CharT, _Traits>
   //  basic_ostream& operator<<(ostream&, const wchar_t*)
   for (int i = 0; i < i_max; ++i) 
index 08ff1d2..5fe7188 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-23 Benjamin Kosnik  <bkoz@redhat.com>
 
-// 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
@@ -30,10 +30,6 @@ void test01()
   const std::string str01 = "123";
   std::string str02;
 
-  std::ios_base::iostate statefail, stateeof;
-  statefail = std::ios_base::failbit;
-  stateeof = std::ios_base::eofbit;
-
   // string str() const
   str02 = os01.str();
   VERIFY( str00 == str02 );
index ca8a69a..b66d8fa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 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
@@ -28,10 +28,6 @@ void test01()
   const std::wstring str01 = L"123";
   std::wstring str02;
 
-  std::ios_base::iostate statefail, stateeof;
-  statefail = std::ios_base::failbit;
-  stateeof = std::ios_base::eofbit;
-
   // string str() const
   str02 = os01.str();
   VERIFY( str00 == str02 );
index 2763a01..f60911b 100644 (file)
@@ -1,7 +1,7 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-// 2006, 2007, 2009
+// 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,14 +33,13 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   // int_type sbumpc()
   // if read_cur not avail, return uflow(), else return *read_cur & increment
index 5b0f986..3ec279a 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -32,14 +32,13 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   // int_type sbumpc()
   // if read_cur not avail, return uflow(), else return *read_cur & increment
index ee983c2..142cde9 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -36,7 +36,7 @@ void test04()
   typedef std::stringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
-  int_type c2, c3;
+  int_type c2;
 
   // BUFFER MANAGEMENT & POSITIONING
 
@@ -84,7 +84,7 @@ void test04()
   c1 = strb_01.sgetc(); 
   c2 = strb_01.sungetc();
   strmsz_2 = strb_01.in_avail(); // 1
-  c3 = strb_01.sgetc();
+  strb_01.sgetc();
   VERIFY( c1 != c2 );
   VERIFY( strmsz_2 != strmsz_1 );
   VERIFY( strmsz_2 == 1 );
index 288e76c..1b0ee5f 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -36,7 +36,7 @@ void test04()
   typedef std::wstringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
-  int_type c2, c3;
+  int_type c2;
   
   // BUFFER MANAGEMENT & POSITIONING
 
@@ -84,7 +84,7 @@ void test04()
   c1 = strb_01.sgetc(); 
   c2 = strb_01.sungetc();
   strmsz_2 = strb_01.in_avail(); // 1
-  c3 = strb_01.sgetc();
+  strb_01.sgetc();
   VERIFY( c1 != c2 );
   VERIFY( strmsz_2 != strmsz_1 );
   VERIFY( strmsz_2 == 1 );
index 4cdca1a..53f98bf 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,7 +34,6 @@ void test04()
   typedef std::stringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
-  int_type c2; 
   int_type c3 = strb_01.sbumpc();
 
   pos_type pt_1(off_type(-1));
@@ -58,7 +57,7 @@ void test04()
   off_1 = off_type(pt_1);
   c1 = strb_01.snextc(); //current in pointer +1
   VERIFY( c1 == 'o' );
-  c2 = strb_01.sputc('x');  //test current out pointer
+  strb_01.sputc('x');  //test current out pointer
   str_tmp = std::string("myxonos. . . or what?");
   VERIFY( strb_01.str() == str_tmp );
   strb_01.pubsync(); //resets pointers
@@ -67,7 +66,7 @@ void test04()
   VERIFY( off_1 == off_2 );
   c3 = strb_01.snextc(); //current in pointer +1
   VERIFY( c1 == c3 );
-  c2 = strb_01.sputc('x');  //test current out pointer
+  strb_01.sputc('x');  //test current out pointer
   str_tmp = std::string("myxonos. . . or what?");
   VERIFY( strb_01.str() == str_tmp );
 }
index 47414b9..bc01ea6 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,7 +34,6 @@ void test04()
   typedef std::wstringbuf::off_type off_type;
 
   int_type c1 = strb_01.sbumpc();
-  int_type c2;
   int_type c3 = strb_01.sbumpc();
 
   pos_type pt_1(off_type(-1));
@@ -58,7 +57,7 @@ void test04()
   off_1 = off_type(pt_1);
   c1 = strb_01.snextc(); //current in pointer +1
   VERIFY( c1 == L'o' );
-  c2 = strb_01.sputc(L'x');  //test current out pointer
+  strb_01.sputc(L'x');  //test current out pointer
   str_tmp = std::wstring(L"myxonos. . . or what?");
   VERIFY( strb_01.str() == str_tmp );
   strb_01.pubsync(); //resets pointers
@@ -67,7 +66,7 @@ void test04()
   VERIFY( off_1 == off_2 );
   c3 = strb_01.snextc(); //current in pointer +1
   VERIFY( c1 == c3 );
-  c2 = strb_01.sputc(L'x');  //test current out pointer
+  strb_01.sputc(L'x');  //test current out pointer
   str_tmp = std::wstring(L"myxonos. . . or what?");
   VERIFY( strb_01.str() == str_tmp );
 }
index e686ba2..f26ec85 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -32,14 +32,13 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   int_type c3 = strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
index 181dba9..98ca73d 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -32,14 +32,13 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   int_type c3 = strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
index 4348f74..2f077a5 100644 (file)
@@ -1,7 +1,7 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-// 2006, 2007, 2009
+// 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,20 +34,19 @@ void test04()
 {
   bool test __attribute__((unused)) = true;
   std::streamsize              strmsz_1, strmsz_2;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
   strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
+  strb_03.sbumpc();
 
   // int_type sgetc()
   // if read_cur not avail, return uflow(), else return *read_cur  
@@ -55,13 +54,13 @@ void test04()
   int_type c7 = strb_02.sgetc();
   strb_01.sgetc();
   strb_02.sgetc();
-   c5 = strb_03.sgetc();
+  strb_03.sgetc();
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
   c6 = strb_01.snextc();
   c7 = strb_02.snextc();
-  c5 = strb_03.snextc();
+  strb_03.snextc();
 
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
index 01a149e..5c917e1 100644 (file)
@@ -1,7 +1,7 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-// 2006, 2007, 2009
+// 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,20 +34,19 @@ void test04()
 {
   bool test __attribute__((unused)) = true;
   std::streamsize              strmsz_1, strmsz_2;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
   strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
+  strb_03.sbumpc();
 
   // int_type sgetc()
   // if read_cur not avail, return uflow(), else return *read_cur  
@@ -55,13 +54,13 @@ void test04()
   int_type c7 = strb_02.sgetc();
   strb_01.sgetc();
   strb_02.sgetc();
-   c5 = strb_03.sgetc();
+  strb_03.sgetc();
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
   c6 = strb_01.snextc();
   c7 = strb_02.snextc();
-  c5 = strb_03.snextc();
+  strb_03.snextc();
 
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
index 960e6e9..afe1dfa 100644 (file)
@@ -1,7 +1,7 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-// 2006, 2007, 2009
+// 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,14 +33,13 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   strb_01.sbumpc();
   strb_02.sbumpc();
index 62d21a7..0154594 100644 (file)
@@ -1,7 +1,7 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-// 2006, 2007, 2009
+// 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,14 +33,13 @@ std::wstringbuf strb_03(str_03, std::ios_base::out);
 void test04() 
 {
   bool test __attribute__((unused)) = true;
-  std::streamoff               strmof_1(-1), strmof_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
 
   // GET
-  strmof_1 = strb_01.in_avail();
-  strmof_2 = strb_02.in_avail();
-  strmof_1 = strb_03.in_avail(); 
+  strb_01.in_avail();
+  strb_02.in_avail();
+  strb_03.in_avail(); 
 
   strb_01.sbumpc();
   strb_02.sbumpc();
index c99c2aa..67358a3 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,7 +33,6 @@ void test04()
 {
   bool test __attribute__((unused)) = true;
   std::string          str_tmp, str_tmp2;
-  std::streamsize              strmsz_1, strmsz_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
 
@@ -44,27 +43,27 @@ void test04()
 
   // PUT
   strb_03.str(str_01); //reset
-  std::string::size_type sz1 = strb_03.str().length();
-  std::string::size_type sz2 = strb_03.str().length();
+  strb_03.str().length();
+  strb_03.str().length();
   
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
   // NB *sputn will happily put '\0' into your stream if you give it a chance*
   str_tmp = strb_03.str();
-  sz1 = str_tmp.length();
-  strmsz_1 = strb_03.sputn("racadabras", 10);//"abracadabras or what?"
-  sz2 = strb_03.str().length();
-  strmsz_2 = strb_03.sputn(", i wanna reach out and", 10);
-  sz2 = strb_03.str().length();
+  str_tmp.length();
+  strb_03.sputn("racadabras", 10);//"abracadabras or what?"
+  strb_03.str().length();
+  strb_03.sputn(", i wanna reach out and", 10);
+  strb_03.str().length();
   str_tmp = strb_02.str();
-  strmsz_1 = strb_02.sputn("racadabra", 10);
+  strb_02.sputn("racadabra", 10);
 
   // PUTBACK
 
   // int_type sputbackc(char_type c)
   // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
   // otherwise decrements in_cur and returns *gptr()
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   str_tmp = strb_01.str();
   c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
   c2 = strb_01.sputbackc('z');//"mykonos. . .zor what?"
@@ -76,7 +75,7 @@ void test04()
   VERIFY( str_tmp.size() == str_tmp2.size() );
   //test for _in_cur == _in_beg
   strb_01.str(str_tmp);
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
   c2 = strb_01.sputbackc('z');//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
@@ -88,7 +87,7 @@ void test04()
   VERIFY( str_tmp.size() == strb_01.str().size() );
   // test for replacing char with identical one
   strb_01.str(str_01); //reset
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   strb_01.sbumpc();
   strb_01.sbumpc();
   c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
@@ -100,7 +99,7 @@ void test04()
   VERIFY( strb_01.str() == str_01 );
   VERIFY( str_01.size() == strb_01.str().size() );
   //test for ios_base::out
-  strmsz_2 = strb_03.in_avail();
+  strb_03.in_avail();
   c4 = strb_03.sputbackc('x');
   VERIFY( c4 == traits_type::eof() );
 }
index f95a695..e0c91a3 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,7 +33,6 @@ void test04()
 {
   bool test __attribute__((unused)) = true;
   std::wstring                 str_tmp, str_tmp2;
-  std::streamsize              strmsz_1, strmsz_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
 
@@ -44,27 +43,27 @@ void test04()
 
   // PUT
   strb_03.str(str_01); //reset
-  std::wstring::size_type sz1 = strb_03.str().length();
-  std::wstring::size_type sz2 = strb_03.str().length();
+  strb_03.str().length();
+  strb_03.str().length();
   
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
   // NB *sputn will happily put '\0' into your stream if you give it a chance*
   str_tmp = strb_03.str();
-  sz1 = str_tmp.length();
-  strmsz_1 = strb_03.sputn(L"racadabras", 10);//"abracadabras or what?"
-  sz2 = strb_03.str().length();
-  strmsz_2 = strb_03.sputn(L", i wanna reach out and", 10);
-  sz2 = strb_03.str().length();
+  str_tmp.length();
+  strb_03.sputn(L"racadabras", 10);//"abracadabras or what?"
+  strb_03.str().length();
+  strb_03.sputn(L", i wanna reach out and", 10);
+  strb_03.str().length();
   str_tmp = strb_02.str();
-  strmsz_1 = strb_02.sputn(L"racadabra", 10);
+  strb_02.sputn(L"racadabra", 10);
 
   // PUTBACK
 
   // int_type sputbackc(char_type c)
   // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
   // otherwise decrements in_cur and returns *gptr()
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   str_tmp = strb_01.str();
   c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
   c2 = strb_01.sputbackc(L'z');//"mykonos. . .zor what?"
@@ -76,7 +75,7 @@ void test04()
   VERIFY( str_tmp.size() == str_tmp2.size() );
   //test for _in_cur == _in_beg
   strb_01.str(str_tmp);
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
   c2 = strb_01.sputbackc(L'z');//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
@@ -88,7 +87,7 @@ void test04()
   VERIFY( str_tmp.size() == strb_01.str().size() );
   // test for replacing char with identical one
   strb_01.str(str_01); //reset
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   strb_01.sbumpc();
   strb_01.sbumpc();
   c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
@@ -100,7 +99,7 @@ void test04()
   VERIFY( strb_01.str() == str_01 );
   VERIFY( str_01.size() == strb_01.str().size() );
   //test for ios_base::out
-  strmsz_2 = strb_03.in_avail();
+  strb_03.in_avail();
   c4 = strb_03.sputbackc(L'x');
   VERIFY( c4 == traits_type::eof() );
 }
index 5b1fcfc..ae038e5 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == char
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,7 +33,6 @@ void test04()
 {
   bool test __attribute__((unused)) = true;
   std::string          str_tmp;
-  std::streamsize              strmsz_1, strmsz_2;
   typedef std::stringbuf::int_type int_type;
   typedef std::stringbuf::traits_type traits_type;
 
@@ -44,47 +43,47 @@ void test04()
 
   // PUT
   strb_03.str(str_01); //reset
-  std::string::size_type sz1 = strb_03.str().length();
-  std::string::size_type sz2 = strb_03.str().length();
+  strb_03.str().length();
+  strb_03.str().length();
   
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
   // NB *sputn will happily put '\0' into your stream if you give it a chance*
   str_tmp = strb_03.str();
-  sz1 = str_tmp.length();
-  strmsz_1 = strb_03.sputn("racadabras", 10);//"abracadabras or what?"
-  sz2 = strb_03.str().length();
-  strmsz_2 = strb_03.sputn(", i wanna reach out and", 10);
-  sz2 = strb_03.str().length();
+  str_tmp.length();
+  strb_03.sputn("racadabras", 10);//"abracadabras or what?"
+  strb_03.str().length();
+  strb_03.sputn(", i wanna reach out and", 10);
+  strb_03.str().length();
   str_tmp = strb_02.str();
-  strmsz_1 = strb_02.sputn("racadabra", 10);
+  strb_02.sputn("racadabra", 10);
 
   // PUTBACK
 
   // int_type sputbackc(char_type c)
   // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
   // otherwise decrements in_cur and returns *gptr()
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   str_tmp = strb_01.str();
   c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
   c2 = strb_01.sputbackc('z');//"mykonos. . .zor what?"
   c3 = strb_01.sgetc();
   //test for _in_cur == _in_beg
   strb_01.str(str_tmp);
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
   c2 = strb_01.sputbackc('z');//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
   // test for replacing char with identical one
   strb_01.str(str_01); //reset
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   strb_01.sbumpc();
   strb_01.sbumpc();
   c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
   c2 = strb_01.sputbackc('y');//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
   //test for ios_base::out
-  strmsz_2 = strb_03.in_avail();
+  strb_03.in_avail();
   c4 = strb_03.sputbackc('x');
 
   // int_type sungetc()
@@ -92,7 +91,7 @@ void test04()
   // return to_int_type(*gptr())
   for (int i = 0; i<12; ++i)
     strb_01.sbumpc();
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   str_tmp = strb_01.str();
   c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
   c2 = strb_01.sungetc();//"mykonos. . . or what?"
@@ -105,7 +104,7 @@ void test04()
   VERIFY( str_01.size() == strb_01.str().size() );
   //test for _in_cur == _in_beg
   strb_01.str(str_tmp);
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
   c2 = strb_01.sungetc();//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
@@ -117,7 +116,7 @@ void test04()
   VERIFY( str_01.size() == strb_01.str().size() );
   // test for replacing char with identical one
   strb_01.str(str_01); //reset
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   strb_01.sbumpc();
   strb_01.sbumpc();
   c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
@@ -129,7 +128,7 @@ void test04()
   VERIFY( strb_01.str() == str_01 );
   VERIFY( str_01.size() == strb_01.str().size() );
   //test for ios_base::out
-  strmsz_2 = strb_03.in_avail();
+  strb_03.in_avail();
   c4 = strb_03.sungetc();
   VERIFY( c4 == traits_type::eof() );
 }
index 360a1ab..767b7ea 100644 (file)
@@ -1,6 +1,6 @@
 // 981208 bkoz test functionality of basic_stringbuf for char_type == wchar_t
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -33,7 +33,6 @@ void test04()
 {
   bool test __attribute__((unused)) = true;
   std::wstring                 str_tmp;
-  std::streamsize              strmsz_1, strmsz_2;
   typedef std::wstringbuf::int_type int_type;
   typedef std::wstringbuf::traits_type traits_type;
 
@@ -44,47 +43,47 @@ void test04()
 
   // PUT
   strb_03.str(str_01); //reset
-  std::wstring::size_type sz1 = strb_03.str().length();
-  std::wstring::size_type sz2 = strb_03.str().length();
+  strb_03.str().length();
+  strb_03.str().length();
   
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
   // NB *sputn will happily put '\0' into your stream if you give it a chance*
   str_tmp = strb_03.str();
-  sz1 = str_tmp.length();
-  strmsz_1 = strb_03.sputn(L"racadabras", 10);//"abracadabras or what?"
-  sz2 = strb_03.str().length();
-  strmsz_2 = strb_03.sputn(L", i wanna reach out and", 10);
-  sz2 = strb_03.str().length();
+  str_tmp.length();
+  strb_03.sputn(L"racadabras", 10);//"abracadabras or what?"
+  strb_03.str().length();
+  strb_03.sputn(L", i wanna reach out and", 10);
+  strb_03.str().length();
   str_tmp = strb_02.str();
-  strmsz_1 = strb_02.sputn(L"racadabra", 10);
+  strb_02.sputn(L"racadabra", 10);
 
   // PUTBACK
 
   // int_type sputbackc(char_type c)
   // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
   // otherwise decrements in_cur and returns *gptr()
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   str_tmp = strb_01.str();
   c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
   c2 = strb_01.sputbackc('z');//"mykonos. . .zor what?"
   c3 = strb_01.sgetc();
   //test for _in_cur == _in_beg
   strb_01.str(str_tmp);
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
   c2 = strb_01.sputbackc(L'z');//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
   // test for replacing char with identical one
   strb_01.str(str_01); //reset
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   strb_01.sbumpc();
   strb_01.sbumpc();
   c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
   c2 = strb_01.sputbackc(L'y');//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
   //test for ios_base::out
-  strmsz_2 = strb_03.in_avail();
+  strb_03.in_avail();
   c4 = strb_03.sputbackc(L'x');
 
   // int_type sungetc()
@@ -92,7 +91,7 @@ void test04()
   // return to_int_type(*gptr())
   for (int i = 0; i<12; ++i)
     strb_01.sbumpc();
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   str_tmp = strb_01.str();
   c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
   c2 = strb_01.sungetc();//"mykonos. . . or what?"
@@ -105,7 +104,7 @@ void test04()
   VERIFY( str_01.size() == strb_01.str().size() );
   //test for _in_cur == _in_beg
   strb_01.str(str_tmp);
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
   c2 = strb_01.sungetc();//"mykonos. . . or what?"
   c3 = strb_01.sgetc();
@@ -117,7 +116,7 @@ void test04()
   VERIFY( str_01.size() == strb_01.str().size() );
   // test for replacing char with identical one
   strb_01.str(str_01); //reset
-  strmsz_1 = strb_01.in_avail();
+  strb_01.in_avail();
   strb_01.sbumpc();
   strb_01.sbumpc();
   c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
@@ -129,7 +128,7 @@ void test04()
   VERIFY( strb_01.str() == str_01 );
   VERIFY( str_01.size() == strb_01.str().size() );
   //test for ios_base::out
-  strmsz_2 = strb_03.in_avail();
+  strb_03.in_avail();
   c4 = strb_03.sungetc();
   VERIFY( c4 == traits_type::eof() );
 }
index 46f0d12..accb565 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-09-20 bkoz
 
-// Copyright (C) 1999, 2001, 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2001, 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
@@ -60,7 +60,6 @@ void test02()
   pos04 += off02;
   VERIFY( pos03 == pos04 );
   std::streampos pos05 = pos03;
-  std::streampos pos06 = pos03 + off02;
   VERIFY ( pos05 == pos03 );
 
   // q = p - o
@@ -69,7 +68,6 @@ void test02()
   pos04 -= off02;
   VERIFY( pos03 == pos04 );
   std::streampos pos07 = pos03;
-  std::streampos pos08 = pos03 - off02;
   VERIFY ( pos07 == pos03 );
 
   // o = p - q
index abef007..34c557b 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-09-20 bkoz
 
-// Copyright (C) 1999, 2001, 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2001, 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
@@ -34,6 +34,7 @@ void test03()
   // casts to const streamoff
   const std::streampos pos01 = 0;
   off01 = std::streamoff(pos01);
+  off01 = off01; // Suppress unused warning.
 
   // equality/inequality with const args
   const std::streampos pos02(54);
index 5c89aa5..9e3cad5 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009
+// Copyright (C) 2003, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -32,6 +32,8 @@ void test04()
 
   // Explicit conversion
   n = static_cast<long>(pos); // { dg-error "invalid static_cast" "" { xfail *-*-* } }
+
+  n = n; // Suppress unused warning.
 }
 
 int main()
index 831bfd4..a32e34a 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-03-13  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -32,7 +32,9 @@ void test01()
 
   test01 = pos01 == -1;
   test01 = -1 == pos01;  
+  test01 = test01; // Suppress unused warning.
 
   test02 = pos02 != -1;
   test02 = -1 != pos02;
+  test02 = test02; // Suppress unused warning.
 }
index 7b3ee83..ddb29c5 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-02-26 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -34,6 +34,8 @@ void allocate_on_stack(void)
   __extension__ char array[num];
   for (size_t i = 0; i < num; i++) 
     array[i]=0;
+  for (size_t i = 0; i < num; i++) 
+    array[i]=array[i]; // Suppress unused warning.
 }
 
 void test04()
index 009e6f6..33db5fe 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2004, 2009 Free Software Foundation
+// Copyright (C) 2003, 2004, 2009, 2010 Free Software Foundation
 //
 // 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
@@ -30,6 +30,7 @@ void test01()
 
   // Wrapped in pos_type is EOF.
   soff = -1;
+  soff = soff; // Suppress unused warning.
 }
 
 int main(void)
index 380540a..b7cb05d 100644 (file)
@@ -28,7 +28,7 @@ int main()
   return 0;
 }
 
-// { dg-error "used here" "" { target *-*-* } 521 }
+// { dg-error "used here" "" { target *-*-* } 522 }
 // { dg-error "deleted function" "" { target *-*-* } 230 }
 // { dg-error "deleted function" "" { target *-*-* } 248 }
 // { dg-error "deleted function" "" { target *-*-* } 266 }
index 21f77f4..26d0d03 100644 (file)
@@ -28,7 +28,7 @@ int main()
   return 0;
 }
 
-// { dg-error "used here" "" { target *-*-* } 560 }
+// { dg-error "used here" "" { target *-*-* } 561 }
 // { dg-error "deleted function" "" { target *-*-* } 229 }
 // { dg-error "deleted function" "" { target *-*-* } 247 }
 // { dg-error "deleted function" "" { target *-*-* } 265 }
index ae2b76f..5cd2ef9 100644 (file)
@@ -23,6 +23,6 @@
 
 int main()
 {
-  std::atomic_address a = { { NULL } };
+  std::atomic_address a __attribute__((unused)) = { { NULL } };
   return 0;
 }
index cfb0c1b..b772440 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // { dg-do compile }
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 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
@@ -23,5 +23,5 @@
 void test01()
 {
   using namespace std;
-  atomic_flag af = ATOMIC_FLAG_INIT;
+  atomic_flag af __attribute__((unused)) = ATOMIC_FLAG_INIT;
 }
index d21e30c..b5fc5c3 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // { dg-do compile }
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 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
@@ -29,11 +29,11 @@ int main()
   return 0;
 }
 
-// { dg-error "used here" "" { target *-*-* } 521 }
+// { dg-error "used here" "" { target *-*-* } 522 }
 // { dg-excess-errors "deleted function" }
 // { dg-excess-errors "deleted function" }
 // { dg-error "instantiated from" "" { target *-*-* } 28 }
-// { dg-error "instantiated from" "" { target *-*-* } 528 }
+// { dg-error "instantiated from" "" { target *-*-* } 529 }
 // { dg-error "instantiated from" "" { target *-*-* } 170 }
 // { dg-error "instantiated from" "" { target *-*-* } 399 }
 // { dg-error "instantiated from" "" { target *-*-* } 168 }
index be0580a..e1559a5 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // { dg-do compile }
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 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
@@ -29,11 +29,11 @@ int main()
   return 0;
 }
 
-// { dg-error "used here" "" { target *-*-* } 560 }
+// { dg-error "used here" "" { target *-*-* } 561 }
 // { dg-excess-errors "deleted function" }
 // { dg-excess-errors "deleted function" }
 // { dg-error "instantiated from" "" { target *-*-* } 28 }
-// { dg-error "instantiated from" "" { target *-*-* } 566 }
+// { dg-error "instantiated from" "" { target *-*-* } 567 }
 // { dg-error "instantiated from" "" { target *-*-* } 170 }
 // { dg-error "instantiated from" "" { target *-*-* } 399 }
 // { dg-error "instantiated from" "" { target *-*-* } 168 }
index c7a5dc3..2a112c9 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-do compile }
 // -*- C++ -*-
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
 
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -27,7 +27,7 @@ int main()
   return 0;
 }
 
-// { dg-error "operator" "" { target *-*-* } 404 }
 // { dg-error "operator" "" { target *-*-* } 405 }
 // { dg-error "operator" "" { target *-*-* } 406 }
+// { dg-error "operator" "" { target *-*-* } 407 }
 // { dg-excess-errors "In file included from" }
index 5959828..49cbc02 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-do compile }
 // -*- C++ -*-
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
 
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -28,7 +28,7 @@ int main()
   return 0;
 }
 
-// { dg-error "operator" "" { target *-*-* } 375 }
 // { dg-error "operator" "" { target *-*-* } 376 }
 // { dg-error "operator" "" { target *-*-* } 377 }
+// { dg-error "operator" "" { target *-*-* } 378 }
 // { dg-excess-errors "In file included from" }
index 9cff377..e5c9dfc 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-do compile }
 // -*- C++ -*-
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
 
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -28,7 +28,7 @@ int main()
   return 0;
 }
 
-// { dg-error "operator" "" { target *-*-* } 353 }
 // { dg-error "operator" "" { target *-*-* } 354 }
 // { dg-error "operator" "" { target *-*-* } 355 }
+// { dg-error "operator" "" { target *-*-* } 356 }
 // { dg-excess-errors "In file included from" }
index 2c43732..be04a2c 100644 (file)
@@ -2,7 +2,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -27,6 +27,7 @@ void test01()
 
   const void* p = &db.block_size;
   p = &db.used_block;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index c38254f..bdc366e 100644 (file)
@@ -2,7 +2,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -28,6 +28,7 @@ void test01()
   const void* p = &lc.multiplier;
   p = &lc.increment;
   p = &lc.modulus;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index 9ebddd8..52fd3a5 100644 (file)
@@ -2,7 +2,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -36,6 +36,7 @@ void test01()
   p = &mt.output_t;
   p = &mt.output_c;
   p = &mt.output_l;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index c68002d..a34938e 100644 (file)
@@ -2,7 +2,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -28,6 +28,7 @@ void test01()
   const void* p = &swc.modulus;
   p = &swc.long_lag;
   p = &swc.short_lag;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index c171526..a0a360d 100644 (file)
@@ -2,7 +2,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -28,6 +28,7 @@ void test01()
   const void* p = &swc_01.word_size;
   p = &swc_01.long_lag;
   p = &swc_01.short_lag;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index 0318b0d..3fbd552 100644 (file)
@@ -2,7 +2,7 @@
 //
 // 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -28,6 +28,7 @@ void test01()
 
   const void* p = &xor_c.shift1;
   p = &xor_c.shift2;
+  p = p; // Suppress unused warning.
 }
 
 int main()
index 20e6bc0..3189e7f 100644 (file)
@@ -1,6 +1,6 @@
 // 2004-09-23 Chris Jefferson <chris@bubblescope.net>
 
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 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
@@ -36,8 +36,10 @@ main()
   VERIFY(tuple_size<test_pair_type>::value == 2);
   // Test if tuple_element::type returns the correct type
   blank_class blank;
-  tuple_element<0, pair<blank_class, int> >::type blank2 = blank;
-  tuple_element<1, pair<int ,blank_class> >::type blank3 = blank;
+  tuple_element<0, pair<blank_class, int> >::type
+    blank2 __attribute__((unused)) = blank;
+  tuple_element<1, pair<int ,blank_class> >::type
+    blank3 __attribute__((unused)) = blank;
   pair<int,int> test_pair(1, 2);
   VERIFY(get<0>(test_pair) == 1);
   VERIFY(get<1>(test_pair) == 2);
index 4b6a7df..862b041 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-01-25  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -29,6 +29,7 @@ void test01()
 
   int ch = 0, ret;
   ret = std::tr1::isblank(ch);
+  ret = ret; // Suppress unused warning.
 
 #endif
 }
index 765df19..5bffa0e 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -46,6 +46,7 @@ void test01()
   ret = std::tr1::feholdexcept(penv);
   ret = std::tr1::fesetenv(penv);
   ret = std::tr1::feupdateenv(penv);
+  ret = ret; // Suppress unused warning.
 
 #endif
 }
index 7afe3b8..30c7b78 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-01-30  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 2007, 2008, 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
@@ -53,5 +53,9 @@ void test01()
   uret = std::tr1::wcstoumax(ws, wendptr, base);
 #endif
 
+  ret = ret; // Suppress unused warnings.
+  dret = dret;
+  uret = uret;
+
 #endif
 }
index 020c273..ae31a48 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 2007, 2008, 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
@@ -181,6 +181,13 @@ void test01()
   ret = std::tr1::trunc(d0);
   fret = std::tr1::truncf(f0);
   ldret = std::tr1::truncl(ld0);
+
+  ret = ret; // Suppress unused warnings.
+  iret = iret;
+  lret = lret;
+  llret = llret;
+  fret = fret;
+  ldret = ldret;
   
 #endif
 }
index 35f8869..cbf8c95 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-02-26  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -37,6 +37,7 @@ template<typename T>
     ret = std::tr1::signbit(x);
     
     iret = std::tr1::fpclassify(x);
+    iret = iret; // Suppress unused warning.
     
     ret = std::tr1::isfinite(x);
     ret = std::tr1::isinf(x);
@@ -49,6 +50,7 @@ template<typename T>
     ret = std::tr1::islessequal(x, x);
     ret = std::tr1::islessgreater(x, x);
     ret = std::tr1::isunordered(x, x);
+    ret = ret; // Suppress unused warning.
   }
 
 void test01()
index 426083e..3389025 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-02-05  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -46,6 +46,7 @@ void test01(int dummy, ...)
   ret = std::tr1::vfscanf(stream, format, ap); 
   ret = std::tr1::vscanf(format, ap);
   ret = std::tr1::vsscanf(cs, format, ap);
+  ret = ret; // Suppress unused warning.
   
 #endif
 }
index 542f429..f9b88dc 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -55,8 +55,16 @@ void test01()
   ldret = std::tr1::strtold(s, endptr);
 
   ret = std::tr1::abs(i);
+
+  ret = ret; // Suppress unused warning.
+  uret = uret;
+  fret = fret;
+  ldret = ldret;
+
 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
   dret = std::tr1::div(numer, denom);
+
+  dret = dret;
 #endif
 
 #endif
index 2a57220..0320c9a 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-02-03  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -37,6 +37,8 @@ void test01(int dummy, ...)
   wchar_t** endptr1 = 0;
   float fret;
   fret = std::tr1::wcstof(nptr1, endptr1);
+
+  fret = fret; // Suppress unused warning.
 #endif
 
 #if _GLIBCXX_HAVE_VFWSCANF
@@ -44,6 +46,8 @@ void test01(int dummy, ...)
   const wchar_t* format1 = 0;
   int ret1;
   ret1 = std::tr1::vfwscanf(stream, format1, arg);
+
+  ret1 = ret1; // Suppress unused warning.
 #endif
 
 #if _GLIBCXX_HAVE_VSWSCANF
@@ -51,12 +55,16 @@ void test01(int dummy, ...)
   const wchar_t* format2 = 0;
   int ret2;
   ret2 = std::tr1::vswscanf(s, format2, arg);
+
+  ret2 = ret2; // Suppress unused warning.
 #endif
 
 #if _GLIBCXX_HAVE_VWSCANF
   const wchar_t* format3 = 0;
   int ret3;
   ret3 = std::tr1::vwscanf(format3, arg);
+
+  ret3 = ret3; // Suppress unused warning.
 #endif
 
 #if _GLIBCXX_USE_C99
@@ -72,6 +80,10 @@ void test01(int dummy, ...)
   llret = std::tr1::wcstoll(nptr2, endptr2, base);
   ullret = std::tr1::wcstoull(nptr2, endptr2, base);
 
+  ldret = ldret; // Suppress unused warnings.
+  llret = llret;
+  ullret = ullret;
+
 #endif
 }
 
index 9eff208..031b3ac 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2006-02-03  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006, 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
@@ -32,6 +32,7 @@ void test01()
   std::wint_t ch = 0;
   int ret;
   ret = std::tr1::iswblank(ch);
+  ret = ret; // Suppress unused warning.
 
 #endif
 }
index aef58b6..046eab9 100644 (file)
@@ -1012,7 +1012,6 @@ namespace __gnu_test
        _M_functions.push_back(function_type(base_type::_M_clear));
 
        // Run tests.
-       auto i = _M_functions.begin();
        for (auto i = _M_functions.begin(); i != _M_functions.end(); ++i)
          {
            function_type& f = *i;
@@ -1163,7 +1162,6 @@ namespace __gnu_test
        _M_functions.push_back(function_type(base_type::_M_rehash));
 
        // Run tests.
-       auto i = _M_functions.begin();
        for (auto i = _M_functions.begin(); i != _M_functions.end(); ++i)
          {
            function_type& f = *i;
index fd60b79..1db0ca0 100644 (file)
@@ -1,7 +1,8 @@
 // -*- C++ -*-
 // typelist for the C++ library testsuite. 
 //
-// Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 2007, 2008, 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
@@ -622,7 +623,7 @@ namespace __gnu_test
        struct _Concept
        {
          void __constraint()
-         { _Ttype __v = {__a}; }
+         { _Ttype __v __attribute__((unused)) = {__a}; }
          
          _Tvalue __a;
        };