locale_facets.tcc: Tweak to avoid warnings.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 23 Sep 2003 20:03:30 +0000 (20:03 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 23 Sep 2003 20:03:30 +0000 (20:03 +0000)
2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_facets.tcc: Tweak to avoid warnings.
* testsuite/testsuite_hooks.h: Same.
* testsuite/*/*.cc: Same.

From-SVN: r71693

795 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/17_intro/header_cerrno.cc
libstdc++-v3/testsuite/17_intro/header_ciso646.cc [deleted file]
libstdc++-v3/testsuite/17_intro/header_csetjmp.cc
libstdc++-v3/testsuite/17_intro/header_cstdarg.cc
libstdc++-v3/testsuite/17_intro/header_cstddef.cc
libstdc++-v3/testsuite/17_intro/header_cstdio.cc
libstdc++-v3/testsuite/17_intro/header_cstdlib.cc
libstdc++-v3/testsuite/17_intro/header_cstring.cc
libstdc++-v3/testsuite/17_intro/header_ctime.cc
libstdc++-v3/testsuite/17_intro/header_cwchar.cc
libstdc++-v3/testsuite/18_support/numeric_limits.cc
libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc
libstdc++-v3/testsuite/20_util/allocator_members.cc
libstdc++-v3/testsuite/20_util/auto_ptr.cc
libstdc++-v3/testsuite/20_util/binders.cc
libstdc++-v3/testsuite/20_util/pairs.cc
libstdc++-v3/testsuite/20_util/raw_storage_iterator.cc
libstdc++-v3/testsuite/20_util/temporary_buffer.cc
libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/assign/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/assign/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/assign/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/8.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/9.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/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/21_strings/char_traits/requirements/char/1.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/short/1.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/char_traits/typedefs/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/codecvt/encoding/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/codecvt/max_length/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/unicode/char.cc
libstdc++-v3/testsuite/22_locale/codecvt/unicode/wchar_t.cc
libstdc++-v3/testsuite/22_locale/codecvt/unshift/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/collate/1.cc
libstdc++-v3/testsuite/22_locale/collate/compare/char/1.cc
libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc
libstdc++-v3/testsuite/22_locale/collate/compare/char/3.cc
libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/collate/hash/char/1.cc
libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc
libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc
libstdc++-v3/testsuite/22_locale/collate/transform/char/3.cc
libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/collate_byname/1.cc
libstdc++-v3/testsuite/22_locale/ctype/1.cc
libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc
libstdc++-v3/testsuite/22_locale/ctype/is/char/1.cc
libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc
libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc
libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/ctype/narrow/char/1.cc
libstdc++-v3/testsuite/22_locale/ctype/narrow/char/2.cc
libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/ctype/scan/char/1.cc
libstdc++-v3/testsuite/22_locale/ctype/scan/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/ctype/to/char/1.cc
libstdc++-v3/testsuite/22_locale/ctype/to/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/ctype/widen/char/1.cc
libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/facet/1.cc
libstdc++-v3/testsuite/22_locale/facet/2.cc
libstdc++-v3/testsuite/22_locale/global_templates/1.cc
libstdc++-v3/testsuite/22_locale/locale/cons/2.cc
libstdc++-v3/testsuite/22_locale/locale/cons/4.cc
libstdc++-v3/testsuite/22_locale/locale/cons/5.cc
libstdc++-v3/testsuite/22_locale/locale/cons/6.cc
libstdc++-v3/testsuite/22_locale/locale/cons/7.cc
libstdc++-v3/testsuite/22_locale/locale/cons/7222-c.cc
libstdc++-v3/testsuite/22_locale/locale/cons/7222-env.cc
libstdc++-v3/testsuite/22_locale/locale/cons/8.cc
libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/1.cc
libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/2.cc
libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/3.cc
libstdc++-v3/testsuite/22_locale/locale/operations/1.cc
libstdc++-v3/testsuite/22_locale/locale/operations/2.cc
libstdc++-v3/testsuite/22_locale/messages/1.cc
libstdc++-v3/testsuite/22_locale/messages/members/char/1.cc
libstdc++-v3/testsuite/22_locale/messages/members/char/2.cc
libstdc++-v3/testsuite/22_locale/messages/members/char/3.cc
libstdc++-v3/testsuite/22_locale/messages_byname/1.cc
libstdc++-v3/testsuite/22_locale/money_get/1.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/11528.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/2.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/3.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/4.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/6.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/7.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/8.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11528.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/8.cc
libstdc++-v3/testsuite/22_locale/money_put/1.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/1.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/char/4.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/5.cc
libstdc++-v3/testsuite/22_locale/money_put/put/char/6.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.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/money_put/put/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/moneypunct/1.cc
libstdc++-v3/testsuite/22_locale/moneypunct/2.cc
libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc
libstdc++-v3/testsuite/22_locale/moneypunct/members/char/2.cc
libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc
libstdc++-v3/testsuite/22_locale/num_get/1.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/3.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/4.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/5.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/6.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/num_put/1.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/2.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/3.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/5.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/6.cc
libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/numpunct/1.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/char/1.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/char/2.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_1.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_2.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/pod/1.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc
libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc
libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc
libstdc++-v3/testsuite/22_locale/numpunct_byname/2.cc
libstdc++-v3/testsuite/22_locale/time_get/1.cc
libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_put/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/10.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/char/9.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.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/22_locale/time_put/put/wchar_t/9.cc
libstdc++-v3/testsuite/23_containers/bitset/cons/1.cc
libstdc++-v3/testsuite/23_containers/bitset/cons/6282.cc
libstdc++-v3/testsuite/23_containers/bitset/operations/1.cc
libstdc++-v3/testsuite/23_containers/bitset/operations/2.cc
libstdc++-v3/testsuite/23_containers/bitset/test/1.cc
libstdc++-v3/testsuite/23_containers/bitset/to_ulong/1.cc
libstdc++-v3/testsuite/23_containers/deque/cons/1.cc
libstdc++-v3/testsuite/23_containers/deque/cons/2.cc
libstdc++-v3/testsuite/23_containers/deque/operators/1.cc
libstdc++-v3/testsuite/23_containers/list/capacity/1.cc
libstdc++-v3/testsuite/23_containers/list/cons/1.cc
libstdc++-v3/testsuite/23_containers/list/cons/2.cc
libstdc++-v3/testsuite/23_containers/list/cons/3.cc
libstdc++-v3/testsuite/23_containers/list/cons/4.cc
libstdc++-v3/testsuite/23_containers/list/cons/5.cc
libstdc++-v3/testsuite/23_containers/list/cons/6.cc
libstdc++-v3/testsuite/23_containers/list/cons/7.cc
libstdc++-v3/testsuite/23_containers/list/cons/8.cc
libstdc++-v3/testsuite/23_containers/list/cons/9.cc
libstdc++-v3/testsuite/23_containers/list/modifiers/1.cc
libstdc++-v3/testsuite/23_containers/list/modifiers/2.cc
libstdc++-v3/testsuite/23_containers/list/modifiers/3.cc
libstdc++-v3/testsuite/23_containers/list/operators/1.cc
libstdc++-v3/testsuite/23_containers/list/operators/2.cc
libstdc++-v3/testsuite/23_containers/list/operators/3.cc
libstdc++-v3/testsuite/23_containers/list/operators/4.cc
libstdc++-v3/testsuite/23_containers/map/insert/1.cc
libstdc++-v3/testsuite/23_containers/map/operators/1_neg.cc
libstdc++-v3/testsuite/23_containers/set/operators/1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/bool/6886.cc
libstdc++-v3/testsuite/23_containers/vector/capacity/1.cc
libstdc++-v3/testsuite/23_containers/vector/capacity/2.cc
libstdc++-v3/testsuite/23_containers/vector/capacity/8230.cc
libstdc++-v3/testsuite/23_containers/vector/cons/3.cc
libstdc++-v3/testsuite/23_containers/vector/cons/4.cc
libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc
libstdc++-v3/testsuite/23_containers/vector/modifiers/1.cc
libstdc++-v3/testsuite/23_containers/vector/modifiers/2.cc
libstdc++-v3/testsuite/23_containers/vector/resize/1.cc
libstdc++-v3/testsuite/24_iterators/back_insert_iterator.cc
libstdc++-v3/testsuite/24_iterators/front_insert_iterator.cc
libstdc++-v3/testsuite/24_iterators/insert_iterator.cc
libstdc++-v3/testsuite/24_iterators/istream_iterator.cc
libstdc++-v3/testsuite/24_iterators/istreambuf_iterator.cc
libstdc++-v3/testsuite/24_iterators/iterator.cc
libstdc++-v3/testsuite/24_iterators/ostream_iterator.cc
libstdc++-v3/testsuite/24_iterators/ostreambuf_iterator.cc
libstdc++-v3/testsuite/24_iterators/reverse_iterator/1.cc
libstdc++-v3/testsuite/24_iterators/reverse_iterator/3.cc
libstdc++-v3/testsuite/25_algorithms/binary_search.cc
libstdc++-v3/testsuite/25_algorithms/copy.cc
libstdc++-v3/testsuite/25_algorithms/heap.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound.cc
libstdc++-v3/testsuite/25_algorithms/min_max.cc
libstdc++-v3/testsuite/25_algorithms/partition.cc
libstdc++-v3/testsuite/25_algorithms/rotate.cc
libstdc++-v3/testsuite/25_algorithms/sort.cc
libstdc++-v3/testsuite/26_numerics/c99_classification_macros_c++.cc
libstdc++-v3/testsuite/26_numerics/c_math.cc
libstdc++-v3/testsuite/26_numerics/c_math_dynamic.cc
libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc
libstdc++-v3/testsuite/26_numerics/complex_value.cc
libstdc++-v3/testsuite/26_numerics/slice.cc
libstdc++-v3/testsuite/26_numerics/slice_array_assignment.cc
libstdc++-v3/testsuite/26_numerics/sum_diff.cc
libstdc++-v3/testsuite/26_numerics/valarray.cc
libstdc++-v3/testsuite/26_numerics/valarray_operators.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/4.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/5.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/9322.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/in_avail/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/is_open/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/9507.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/3599.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9169.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9988.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/9825.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/10132-2.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/seekoff/char/3-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/10132-3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/9339.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/1057.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/9027.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc
libstdc++-v3/testsuite/27_io/basic_fstream/3.cc
libstdc++-v3/testsuite/27_io/basic_fstream/4.cc
libstdc++-v3/testsuite/27_io/basic_fstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/3.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_ios/3.cc
libstdc++-v3/testsuite/27_io/basic_ios/4.cc
libstdc++-v3/testsuite/27_io/basic_ios/clear/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ios/cons/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ios/cons/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ios/locales/char/1.cc
libstdc++-v3/testsuite/27_io/basic_iostream/3.cc
libstdc++-v3/testsuite/27_io/basic_iostream/4.cc
libstdc++-v3/testsuite/27_io/basic_istream/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/4.cc
libstdc++-v3/testsuite/27_io/basic_istream/exceptions/char/9561.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/11095-i.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9826.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9424-in.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc
libstdc++-v3/testsuite/27_io/basic_istream/get/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/get/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/char/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/6360.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/7220.cc
libstdc++-v3/testsuite/27_io/basic_istream/peek/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/peek/char/6414.cc
libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/read/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/read/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/read/char/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-1.cc
libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-2.cc
libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/8258.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-1.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/fstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/sstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/fstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/sstream.cc
libstdc++-v3/testsuite/27_io/basic_istream/ws/char/1.cc
libstdc++-v3/testsuite/27_io/basic_istringstream/3.cc
libstdc++-v3/testsuite/27_io/basic_istringstream/4.cc
libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_istringstream/str/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/3.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_ostream/3.cc
libstdc++-v3/testsuite/27_io/basic_ostream/4.cc
libstdc++-v3/testsuite/27_io/basic_ostream/cons/char/9827.cc
libstdc++-v3/testsuite/27_io/basic_ostream/endl/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ostream/exceptions/char/9561.cc
libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/3.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/5.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/6.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/11095-oa.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/11095-ob.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/11095-oc.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/3.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/4.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/5.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/6.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/8.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/11095-od.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/11095-oe.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/11095-of.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/3.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/4.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9318-out.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9424-out.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc
libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/2.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/3.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/cons/char/3.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/2.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/3.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/cons/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/9322.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/2.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/3599.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/sgetc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/sgetn/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/sputbackc/char/9538.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/sync/char/1057.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/3.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/5.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/9322.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/9825.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/3.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/3.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/9425.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/9404-1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/9404-2.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3955.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/sync/char/1057.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc
libstdc++-v3/testsuite/27_io/fpos/mbstate_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/ios_base/callbacks/1.cc
libstdc++-v3/testsuite/27_io/ios_base/state/1.cc
libstdc++-v3/testsuite/27_io/ios_base/storage/1.cc
libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc
libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/2.cc
libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/1.cc
libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/2.cc
libstdc++-v3/testsuite/27_io/manipulators/basefield/char/1.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc
libstdc++-v3/testsuite/27_io/objects/char/1.cc
libstdc++-v3/testsuite/27_io/objects/char/10.cc
libstdc++-v3/testsuite/27_io/objects/char/3045.cc
libstdc++-v3/testsuite/27_io/objects/char/5.cc
libstdc++-v3/testsuite/27_io/objects/char/6.cc
libstdc++-v3/testsuite/27_io/objects/char/6548_xin.cc
libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.cc
libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.cc
libstdc++-v3/testsuite/27_io/objects/char/7.cc
libstdc++-v3/testsuite/27_io/objects/char/7744_xin.cc
libstdc++-v3/testsuite/27_io/objects/char/8.cc
libstdc++-v3/testsuite/27_io/objects/char/9.cc
libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc
libstdc++-v3/testsuite/27_io/objects/char/9661-2_xin.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/10.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/11.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/12.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/13.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/3045.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/5.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/6548_xin.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/6648-1_xin.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/6648-2_xin.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/7744_xin.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/8.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/9520.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-2_xin.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/9662.cc
libstdc++-v3/testsuite/27_io/types/2.cc
libstdc++-v3/testsuite/backward/strstream_members.cc
libstdc++-v3/testsuite/ext/allocators.cc
libstdc++-v3/testsuite/ext/hash_map.cc
libstdc++-v3/testsuite/ext/hash_set.cc
libstdc++-v3/testsuite/ext/pod_char_traits.cc
libstdc++-v3/testsuite/ext/stdio_filebuf_2.cc
libstdc++-v3/testsuite/ext/stdio_sync_filebuf_char.cc
libstdc++-v3/testsuite/ext/stdio_sync_filebuf_wchar_t.cc
libstdc++-v3/testsuite/performance/map_create_fill.cc
libstdc++-v3/testsuite/testsuite_hooks.h
libstdc++-v3/testsuite/thread/pthread1.cc
libstdc++-v3/testsuite/thread/pthread5.cc
libstdc++-v3/testsuite/thread/pthread6.cc
libstdc++-v3/testsuite/thread/pthread7-rope.cc

index 9caf65ac7e18924caf8c719d51fc97a71659d9e4..224cc60d3a32ee9e8ca4d14022aa69d92d86368a 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.tcc: Tweak to avoid warnings.
+       * testsuite/testsuite_hooks.h: Same.
+       * testsuite/*/*.cc: Same.
+
 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
 
        * include/bits/istream.tcc (basic_istream::read,
index e76ac84ea71e9db7554fa05765f1b2c70a17ab77..f0e41123e771046ea8023f3bcd1eb5caf45a3614 100644 (file)
@@ -105,7 +105,7 @@ namespace std
        const locale::facet** __caches = __loc._M_impl->_M_caches;
        if (!__caches[__i])
          {
-           __numpunct_cache<_CharT>* __tmp;
+           __numpunct_cache<_CharT>* __tmp = NULL;
            try
              {
                __tmp = new __numpunct_cache<_CharT>;
index bfd869e8685c6fa1715949b884f7e5cc89c5f957..a8d19cf722bcebce941ff1092c6495be14fe11b3 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
 
 namespace gnu
 {
-  void test01()
+  int test01()
   { 
     int i = errno;
 #ifndef errno
     #error "errno_must_be_a_macro"
 #endif
+    return i;
   }
 }
   
diff --git a/libstdc++-v3/testsuite/17_intro/header_ciso646.cc b/libstdc++-v3/testsuite/17_intro/header_ciso646.cc
deleted file mode 100644 (file)
index 35b1cee..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-// 1999-05-20 bkoz
-
-// Copyright (C) 1999, 2003 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 of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING.  If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 17.4.1.2 Headers, ciso646
-
-// { dg-do link }
-
-#include <ciso646>
-#include <testsuite_hooks.h>
-
-
-// 2.11 Keywords
-// alternative representations
-// and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq
-
-// C 2.2.2 Header <iso646.h> 
-// The tokens (as above) are keywords and do not appear as macros in <ciso646>.
-
-// Test for macros.
-bool test01() 
-{
-  bool test = true;
-
-#if 0
-
-#ifdef and
-  test = false;
-#endif
-
-#ifdef and_eq
-  test = false;
-#endif
-
-#ifdef bitand
-  test = false;
-#endif
-
-#ifdef bitor
-  test = false;
-#endif
-
-#ifdef compl
-  test = false;
-#endif
-
-#ifdef not_eq
-  test = false;
-#endif
-
-#ifdef not_or
-  test = false;
-#endif
-
-#ifdef or
-  test = false;
-#endif
-
-#ifdef or_eq
-  test = false;
-#endif
-
-#ifdef xor
-  test = false;
-#endif
-
-#ifdef xor_eq
-  test = false;
-#endif
-
-#endif
-
-  return test;
-}
-
-
-// Equivalance in usage.
-bool test02()
-{
-  bool test = true;
-
-  bool arg1 = true;
-  bool arg2 = false;
-  int  int1 = 45;
-  int  int2 = 0;
-  
-  VERIFY( arg1 && int1 );
-  VERIFY( arg1 and int1 );
-
-  VERIFY( (arg1 && arg2) == (arg1 and arg2) );
-  VERIFY( (arg1 && int1) == (arg1 and int1) );
-
-  return test;
-}
-
-
-int main(void)
-{
-  test01();
-  test02();
-
-  return 0;
-}
index 4e2610de4f2c4e5817d8ae8da60d71c1922d2a2e..1cbb630e752ec5923623cc4fc34866bd12106023 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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,7 +27,7 @@ namespace gnu
   void test01()
   { 
     std::jmp_buf env;
-    int i = setjmp(env);
+    int i __attribute__((unused)) = setjmp(env);
 #ifndef setjmp
     #error "setjmp_must_be_a_macro"
 #endif
index 260e92905cb69161ea63e651b53d35974baed11d..9e82930976eb8d4606743cc520e25f61aec19d12 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
@@ -26,7 +26,7 @@ namespace gnu
 {
   void test01()
   { 
-    std::va_list list;
+    std::va_list __attribute__((unused)) list;
 #ifndef va_arg
     #error "va_arg_must_be_a_macro"
 #endif
index eab1c75386afdc3f3e7ef1a7bfe2129402ebc1eb..69f83f07f3a69090ebff3d2f195226435e03c53e 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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,7 @@ namespace gnu
 
   void test01()
   { 
-    std::size_t i = offsetof(struct test_type, i);
+    std::size_t i __attribute__((unused)) = offsetof(struct test_type, i);
 #ifndef offsetof
     #error "offsetof_must_be_a_macro"
 #endif
index 383cc0a529339eeb0d78146aa5fb903b2a95faca..a7be009f9c4eb7680c6394b5a64c626fa8c8b228 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-01 bkoz
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
@@ -25,6 +25,6 @@
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;
+  std::size_t i __attribute__((unused)) = 5;
   return 0;
 }
index f86f423d8750c5c94c896834e7122bfeba5a1371..377bd60ace4801650c4fe675bfd82ad5f6d5d5be 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-01 bkoz
 
-// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003 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
 // libstdc++/2190
 void test01()
 {
-  long a = std::abs(1L);
+  long a __attribute__((unused)) = std::abs(1L);
   std::div(2L, 1L);
-  std::ldiv_t b;
+  std::ldiv_t b __attribute__((unused));
 }
 
 void test02()
 {
   // Make sure size_t is in namespace std.
-  std::size_t i = 5;
+  std::size_t i __attribute__((unused)) = 5;
 }
 
 int main()
index ae8852a43e06e7276f03456f093ab66c7d549f35..3085763954b2a33e4c3e197a378b25f8a4a5d337 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-01 bkoz
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
@@ -26,6 +26,6 @@
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = std::strlen("tibet shop/san francisco (415) 982-0326");
+  std::size_t i __attribute__((unused)) = std::strlen("tibet shop/san francisco (415) 982-0326");
   return 0;
 }
index 03f8294cda6179a61adb405bfd3af78a514131b7..1b97d645ec7116a37a1c6ecad6cd9ee72f690fc7 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-01 bkoz
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
 
 #include <ctime>
 
-
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;
+  std::size_t i __attribute__((unused)) = 5;
   return 0;
 }
index 8d65e024195d2ef4ba8b33bb8531a92a69cfe310..dc2eefe14319077904cff8fae4467aae369ac293 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-01 bkoz
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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
@@ -25,9 +25,9 @@
 int main(void)
 {
   // Make sure size_t is in namespace std
-  std::size_t i = 5;
+  std::size_t i __attribute__((unused)) = 5;
 
-  std::tm mytime;
+  std::tm  __attribute__((unused)) mytime;
 
   return 0;
 }
index 63d9412c3684e30ecf67b01256a4f57c9e753bb5..a96cdf55453fda478f00d9aaf01f192cec036787 100644 (file)
@@ -62,7 +62,7 @@ DEFINE_EXTREMA(long double, LDBL_MIN, LDBL_MAX);
 template<typename T>
 void test_extrema()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   T limits_min = std::numeric_limits<T>::min();
   T limits_max = std::numeric_limits<T>::max();
   T extrema_min = extrema<T>::min;
@@ -74,7 +74,7 @@ void test_extrema()
 template<typename T>
 void test_epsilon()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   T epsilon = std::numeric_limits<T>::epsilon();
   T one = 1;
 
@@ -89,7 +89,7 @@ void test_epsilon()
 
 void test_sign()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   VERIFY( std::numeric_limits<char>::is_signed == char_is_signed );
   VERIFY( std::numeric_limits<signed char>::is_signed == true );
   VERIFY( std::numeric_limits<unsigned char>::is_signed == false );
@@ -200,7 +200,7 @@ struct B
 
 bool test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::numeric_limits< A<B> > obj;
 
   VERIFY( !obj.is_specialized );
@@ -244,16 +244,16 @@ void test02()
   typedef std::numeric_limits<B> b_nl_type;
   
   // Should probably do all of them...
-  const int* pi1 = &b_nl_type::digits;
-  const int* pi2 = &b_nl_type::digits10;
-  const int* pi3 = &b_nl_type::max_exponent10;
-  const bool* pb1 = &b_nl_type::traps;
+  const int* __attribute__((unused)) pi1 = &b_nl_type::digits;
+  const int* __attribute__((unused)) pi2 = &b_nl_type::digits10;
+  const int* __attribute__((unused)) pi3 = &b_nl_type::max_exponent10;
+  const bool* __attribute__((unused)) pb1 = &b_nl_type::traps;
 }
 
 // libstdc++/5045
 bool test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   VERIFY( std::numeric_limits<bool>::digits10 == 0 );
   if (__CHAR_BIT__ == 8)
@@ -282,7 +282,7 @@ bool test03()
 // libstdc++/8949
 bool test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   VERIFY( !std::numeric_limits<short>::is_iec559 );
   VERIFY( !std::numeric_limits<unsigned short>::is_iec559 );
index 267795acb752948b58ef543d916102891861d993..30595f0f76a0e7e0c9d3ee565e67be3f7fbfe908 100644 (file)
@@ -27,7 +27,7 @@
 // libstdc++/1972
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight, no water error");
 
   // 1
@@ -41,7 +41,7 @@ void test01()
 
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight error");
   std::domain_error x(s);
   
@@ -57,7 +57,7 @@ public:
 
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
@@ -78,7 +78,7 @@ void allocate_on_stack(void)
 }
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string s("CA ISO emergency once again:immediate power down");
   const char* strlit1 = "wish I lived in Palo Alto";
   const char* strlit2 = "...or Santa Barbara";
index 8c40ab760f7fc051a2bb7707f0cf31a9f33c3e8b..4170a9d9a966c1ca039600fbd86b2d98a9ab98fe 100644 (file)
@@ -45,7 +45,7 @@ void operator delete(void *v) throw()
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::allocator<gnu> obj;
 
   // XXX These should work for various size allocation and
@@ -61,7 +61,7 @@ void test01()
 // libstdc++/8230
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   try 
     {
       std::allocator<int> alloc;
index d70b63f3e9efa2f724046682617e808a01a6f44e..110d4b2d4bf055a20838979be58fc48a5faa8f6b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2000, 2002 Free Software Foundation
+// Copyright (C) 2000, 2002, 2003 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
@@ -60,8 +60,8 @@ struct reset_count_struct
 int
 test01()
 {
-  reset_count_struct reset;
-  bool test = true;
+  reset_count_struct __attribute__((unused)) reset;
+  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_default;
   VERIFY( A_default.get() == 0 );
@@ -91,8 +91,8 @@ test01()
 int
 test02()
 {
-  reset_count_struct reset;
-  bool test = true;
+  reset_count_struct __attribute__((unused)) reset;
+  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_from_A(new A);
   std::auto_ptr<B> B_from_B(new B);
@@ -115,8 +115,8 @@ test02()
 int
 test03()
 {
-  reset_count_struct reset;
-  bool test = true;
+  reset_count_struct __attribute__((unused)) reset;
+  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_from_ptr_A;
   std::auto_ptr<A> A_from_ptr_B;
@@ -141,8 +141,8 @@ test03()
 int
 test04()
 {
-  reset_count_struct reset;
-  bool test = true;
+  reset_count_struct __attribute__((unused)) reset;
+  bool test __attribute__((unused)) = true;
 
   {/*lifetine scope*/
     std::auto_ptr<A> A_from_A(new A);
@@ -171,8 +171,8 @@ private:
 int 
 test05()
 {
-  bool test = true;
-  reset_count_struct reset;
+  bool test __attribute__((unused)) = true;
+  reset_count_struct __attribute__((unused)) reset;
 
   pimpl<A>();
   pimpl<B>();
@@ -190,8 +190,8 @@ test05()
 int
 test06()
 {
-  reset_count_struct reset;
-  bool test = true;
+  reset_count_struct __attribute__((unused)) reset;
+  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_from_A(new A);
   std::auto_ptr<A> A_from_A_ptr(A_from_A.release());
@@ -231,8 +231,8 @@ static void drain(std::auto_ptr<T>)
 int
 test07()
 {
-  bool test = true;
-  reset_count_struct reset;
+  bool test __attribute__((unused)) = true;
+  reset_count_struct __attribute__((unused)) reset;
 
   drain(source<A>());
   // The resolution of core issue 84, now a DR, breaks this call.
index 6dd45e3ff96f9547a6573fdd3fbdf0b5afa6f686..a12d3b68146327b13d3b4b8b8a635e6957ba82f5 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-06-11  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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,8 +27,8 @@
 class Elem 
 { 
 public: 
-  void print(int i) const { } 
-  void modify(int i) { } 
+  void print(int) const { } 
+  void modify(int) { } 
 }; 
 
 // libstdc++/3113
index 451ef19703b5577bc5e230143a218c76ab1a1572..085937f435fc2db524f114109d831c8fd12316b0 100644 (file)
@@ -46,7 +46,7 @@ template<typename T>
 // heterogeneous
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::pair<bool, long> p_bl_1(true, 433);
   std::pair<bool, long> p_bl_2 = std::make_pair(true, 433);
@@ -75,7 +75,7 @@ void test01()
 // homogeneous
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::pair<bool, bool> p_bb_1(true, false);
   std::pair<bool, bool> p_bb_2 = std::make_pair(true, false);
@@ -87,7 +87,7 @@ void test02()
 // const
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const std::pair<bool, long> p_bl_1(true, 433);
   const std::pair<bool, long> p_bl_2 = std::make_pair(true, 433);
@@ -116,7 +116,7 @@ void test03()
 // const&
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const gnu_obj& obj1 = gnu_obj(5);
   const std::pair<const char*, gnu_obj> p_sg_1("enlightenment", obj1);
   const std::pair<const char*, gnu_obj> p_sg_2 = 
index 7d59a8a6099524c138da6b0ffaad74b4f5f8a854..c79e5400581268dbc24414fa17c29abb42103264 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-06-18  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 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,7 @@ void test01()
   typedef raw_storage_iterator<long*, long> test_iterator;
   typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
   test_iterator rs_it(&l);
-  base_iterator* base = &rs_it;
+  base_iterator* base __attribute__((unused)) = &rs_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
index 602b2fe80b7e30bd3cba2fd476e67cc9fbf63b03..e83a82efcf885508ae851f3ad173dd93291625d1 100644 (file)
@@ -27,7 +27,7 @@ struct junk { char j[12]; };
 
 int main(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::pair<junk*,ptrdiff_t>  results = std::get_temporary_buffer<junk>(5);
 
index 496a6e543092f9b9d78a94d2bcd359a4942c4d7e..8fd48e555b99ad87c9ed037c03456f4163ce1ab6 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
-  csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
+  csize_type csz01;
 
   const char str_lit01[] = "point bolivar, texas";
   const std::string str01(str_lit01);
index f6002f9af5d3e32028350a2baf3831c5f3f7e120..194e09d21841c9a562389c222bf76ac53f223ecc 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
-  csize_type npos = std::wstring::npos;
-  csize_type csz01, csz02;
+  csize_type csz01;
 
   const wchar_t str_lit01[] = L"point bolivar, texas";
   const std::wstring str01(str_lit01);
index 879d3c139c7f547f97a51de800bdb9d6d5ccd4b6..1aa8a67809d0bb3449a2ad270a793803c554395f 100644 (file)
@@ -27,7 +27,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
 
index 9783c45202cc7e31541312b0f9952a3198619ceb..9635b1b47ffc71993779f47fe7c2005b5435b05d 100644 (file)
@@ -28,7 +28,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
   
index cfc35545da47fe4e66acdc603aa7ad484fab7b3c..0c08fe7c72e362fd31f2bafce75afbe703e2e3ea 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
  
index 5f110598bb98f027d28b9e347be1031a2d644d27..377e35bf7b52944b818366db258b50f6475303b9 100644 (file)
@@ -27,7 +27,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
 
index 458204c522e9b766ab9b3fb5b00684797ca13df4..7064d1f935f41fe1451a7f518c76c0130e50361a 100644 (file)
@@ -28,7 +28,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
   
index fc9b5a21eea791064b70968da82bcc1479f7750d..0d46ebe653d6abcd3a329b5242ebac79d4bb7c68 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
  
index 0a50ee7d9ed2a13b9bb40d509567bfe4f34347a7..c37e01fb04644b5c974751a3ebaeed31aa8eced2 100644 (file)
@@ -125,7 +125,7 @@ namespace std
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // non POD types : resize, capacity, reserve
   std::basic_string< A<B> > str02;
@@ -140,7 +140,7 @@ void test01()
   VERIFY( sz04 >= 100 );
   str02.reserve();
   sz03 = str02.capacity();
-  VERIFY( sz03 >= 0 );
+  VERIFY( sz03 > 0 );
 
   sz03 = str02.size() + 5;
   str02.resize(sz03);
index 6072898318a3f522ed554e2cd14eef4367fa7b37..649c5418ba6cd21260c2222cb8d94f40c98d7258 100644 (file)
@@ -26,7 +26,7 @@
 void test01()
 {
   // POD types : resize, capacity, reserve
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str01;
   typedef std::string::size_type size_type_s;
 
@@ -37,7 +37,7 @@ void test01()
   VERIFY( sz02 >= 100 );
   str01.reserve();
   sz01 = str01.capacity();
-  VERIFY( sz01 >= 0 );
+  VERIFY( sz01 > 0 );
 
   sz01 = str01.size() + 5;
   str01.resize(sz01);
@@ -79,9 +79,7 @@ void test01()
     
   // trickster allocator issues involved with these:
   std::string str3 = "8-chars_8-chars_";
-  const char* p3 = str3.c_str();
   std::string str4 = str3 + "7-chars";
-  const char* p4 = str3.c_str();
   
   sz01 = str01.size();
   sz02 = str01.max_size();  
index 731a91870657bc11e182541cbd2a246ee8e9ccd5..b88597486bdd39792cd69732f6df1fd9c3fb64bb 100644 (file)
@@ -27,7 +27,7 @@
 // http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::string str01 = "twelve chars";
   // str01 becomes shared
index 18af608d7d149ba1e9984082a44436d40cdaa027..f10a25578a01acb3f2a91dcf6449a1c21e78c6c5 100644 (file)
@@ -26,7 +26,7 @@
 void test01()
 {
   // POD types : resize, capacity, reserve
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring str01;
   typedef std::wstring::size_type size_type_s;
 
@@ -37,7 +37,7 @@ void test01()
   VERIFY( sz02 >= 100 );
   str01.reserve();
   sz01 = str01.capacity();
-  VERIFY( sz01 >= 0 );
+  VERIFY( sz01 > 0 );
 
   sz01 = str01.size() + 5;
   str01.resize(sz01);
@@ -79,9 +79,7 @@ void test01()
     
   // trickster allocator issues involved with these:
   std::wstring str3 = L"8-chars_8-chars_";
-  const wchar_t* p3 = str3.c_str();
   std::wstring str4 = str3 + L"7-chars";
-  const wchar_t* p4 = str3.c_str();
   
   sz01 = str01.size();
   sz02 = str01.max_size();  
index 08aa2294bfa1f4b7431257abd2933d1257ca7fda..e611567ecd5e24316b24e1b09838a17ebe3975f4 100644 (file)
@@ -27,7 +27,7 @@
 // http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wstring str01 = L"twelve chars";
   // str01 becomes shared
index 8f673c89dbfb838f73cbcaa7060e3a9f0fa6afbf..996f8ad0d32bffa9178988284a895f5ee8ca525a 100644 (file)
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator citerator;
   csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
+  csize_type csz01;
 
   const char str_lit01[] = "rodeo beach, marin";
   const std::string str01(str_lit01);
index d6458a9671255fc5e2e1915d796f9dce207b35d1..85c82ba78cf157866e30987cb01c238f32f98fed 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // template<typename _InputIter>
   //   basic_string(_InputIter begin, _InputIter end, const allocator& a)
index 6f40dda1833e693938d92744e5e571f1fcaead8e..fc86271d0bc05b4da4a8e89ca71359345510b371 100644 (file)
@@ -27,7 +27,7 @@
 
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* with_nulls = "This contains \0 a zero byte.";
 
   // These are tests to see how basic_string handles data with NUL
index fe2f32132157e102a7a356a1ac71056d71c0dcc4..020eff6f229f02fa3a77a4c3990fee3112b07b2a 100644 (file)
@@ -26,7 +26,7 @@
 // http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::string str01("portofino");
 
index 4b2f4015854a4b7ab96e837d805fc2d15622dca3..0aecd998e337b3eb39b9dda8671787a06b850c69 100644 (file)
@@ -27,7 +27,7 @@
 // libstdc++/8347
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::vector<char> empty;
   std::string empty2(empty.begin(), empty.end());
index b1a5b6dd40aaac7e600a5cf200742b42c3b23df0..45715fd5c14f80c87e9cd42ac5d9cf9cdddca98e 100644 (file)
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator citerator;
   csize_type npos = std::wstring::npos;
-  csize_type csz01, csz02;
+  csize_type csz01;
 
   const wchar_t str_lit01[] = L"rodeo beach, marin";
   const std::wstring str01(str_lit01);
index 9eaf4ce2700f3bbcbcc236515258a29b8c285389..c7b6422675aa143248bd5524c0ba134cc8602565 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // template<typename _InputIter>
   //   basic_string(_InputIter begin, _InputIter end, const allocator& a)
index 46b7287b0e011ccadb828f8c237dece13135b19f..882e22c59df1c838a6ded136cab1f08f4f8bc984 100644 (file)
@@ -27,7 +27,7 @@
 
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const wchar_t* with_nulls = L"This contains \0 a zero byte.";
 
   // These are tests to see how basic_string handles data with NUL
index 87dab121eab60b774dcd6b0316ff47660b942b7b..9140ff759e4b0656e26611c53dbef9bffc4e5dbd 100644 (file)
@@ -26,7 +26,7 @@
 // http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wstring str01(L"portofino");
 
index d02dc9c8f4b48c8d6463f4221b363df35c5dd9a9..a426f292c8882417a16d2dc1b188808ae89c0b86 100644 (file)
@@ -27,7 +27,7 @@
 // libstdc++/8347
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::vector<wchar_t> empty;
   std::wstring empty2(empty.begin(), empty.end());
index f594df728474d6d36985ceeb11ca2324be51b2fc..556039e6e1ddbb77e5e183ae3de8ce6f5edfdb09 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
-  csize_type npos = std::string::npos;
   csize_type csz01, csz02;
 
   const std::string str01("tamarindo, costa rica");
@@ -56,7 +55,7 @@ bool test01(void)
   cref cref3 = str01.at(csz01 - 1);
   VERIFY( cref3 == 'a' );
   try {
-    cref cref4 = str01.at(csz01);
+    str01.at(csz01);
     VERIFY( false ); // Should not get here, as exception thrown.
   }
   catch(std::out_of_range& fail) {
@@ -71,7 +70,7 @@ bool test01(void)
   ref ref3 = str02.at(csz02 - 1);
   VERIFY( ref3 == 'a' );
   try {
-    ref ref4 = str02.at(csz02);
+    str02.at(csz02);
     VERIFY( false ); // Should not get here, as exception thrown.
   }
   catch(std::out_of_range& fail) {
index d2b5831ad6b7a7cd6dffd90d83b7266c100a1a3a..34c1772d4ceb59819ad6d6083a3c2e558ebc5f0f 100644 (file)
 // underlying string implementation, of course.
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator siterator;
   typedef std::string::reverse_iterator sriterator;
-  csize_type npos = std::string::npos;
   csize_type csz01, csz02;
   siterator it1;
   sriterator rit1;  
index 1c7ee5bbdf7ad79713aeaa41906a5e881d633970..fec27bb5ef2b3dfd47f193a8f8f321aa5eefb924 100644 (file)
 // iterators, namely insert and erase.
 bool test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator siterator;
   typedef std::string::reverse_iterator sriterator;
-  csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
   siterator it1;
   sriterator rit1;  
 
index 3c39bc555cc1cc4f47a45b84448f02abc229b5d3..11f5921eda2418c0f5d427c729aece529756b74d 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
-  csize_type npos = std::wstring::npos;
   csize_type csz01, csz02;
 
   const std::wstring str01(L"tamarindo, costa rica");
@@ -56,7 +55,7 @@ bool test01(void)
   cref cref3 = str01.at(csz01 - 1);
   VERIFY( cref3 == L'a' );
   try {
-    cref cref4 = str01.at(csz01);
+    str01.at(csz01);
     VERIFY( false ); // Should not get here, as exception thrown.
   }
   catch(std::out_of_range& fail) {
@@ -71,7 +70,7 @@ bool test01(void)
   ref ref3 = str02.at(csz02 - 1);
   VERIFY( ref3 == L'a' );
   try {
-    ref ref4 = str02.at(csz02);
+    str02.at(csz02);
     VERIFY( false ); // Should not get here, as exception thrown.
   }
   catch(std::out_of_range& fail) {
index e2455e635e7bb921bed987ad0131d20b47c81ce9..a8e86fbf5822366a5196dcbe21ef989d919f6d8c 100644 (file)
 // underlying string implementation, of course.
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator siterator;
   typedef std::wstring::reverse_iterator sriterator;
-  csize_type npos = std::wstring::npos;
   csize_type csz01, csz02;
   siterator it1;
   sriterator rit1;  
index 0ef50cc8fb73527114c4ede2b81146961aed8f61..defd0875a8bbb709116fd5bbb90fb4ee926d0dd9 100644 (file)
 // iterators, namely insert and erase.
 bool test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator siterator;
   typedef std::wstring::reverse_iterator sriterator;
-  csize_type npos = std::wstring::npos;
-  csize_type csz01, csz02;
   siterator it1;
   sriterator rit1;  
 
index 0f2236cbe1ac932e9d06af88d7b7d686b0f5dc5c..485ef4f1fc1128d2caeda56ea44f97195702e383 100644 (file)
@@ -25,7 +25,7 @@
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
index 9c3e2f079a8e4227d9d157a601ce43bb2db45625..6874f833ea58f37626c1673027072b90f8845e8e 100644 (file)
@@ -25,7 +25,7 @@
 
 bool test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   csize_type npos = std::string::npos;
   csize_type csz01, csz02;
index 15d0ee2ef52bcb4cb2feceb99755433f3d39460f..24b73333744a80d72bd5048b2daf132e6e32853c 100644 (file)
@@ -25,7 +25,7 @@
 
 bool test03(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   csize_type npos = std::string::npos;
   csize_type csz01;
index 6ed224b3b31e69dda785ddfcf6e9fbb25c0b880c..11d14e59b189c5a47d19a4b57687fbd473483bff 100644 (file)
@@ -25,7 +25,7 @@
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
index 4635dac126728c3f9af9946f59a991cfa6820d6a..a0f0466e105bdaedff9330c3ef1a8d2d519a3e8a 100644 (file)
@@ -25,7 +25,7 @@
 
 bool test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   csize_type npos = std::wstring::npos;
   csize_type csz01, csz02;
index c874229d85304703e358e071c0fe17e85226ea4f..6964e013f30a349ad7da57030abd46754d8ecac9 100644 (file)
@@ -25,7 +25,7 @@
 
 bool test03(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   csize_type npos = std::wstring::npos;
   csize_type csz01;
index 919c8717b0acbaac11420f37b1113fd61d98b38a..e1c5402507598894be58ca9b6d3442e12a53af19 100644 (file)
 
 int test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator citerator;
-  csize_type npos = std::string::npos;
   csize_type csz01, csz02;
 
   const std::string str01("rodeo beach, marin");
index d39bbe2d091e718a29ec792da3ee6cf01af138a9..44384533a1872398519d133545158365f5988467 100644 (file)
@@ -29,7 +29,7 @@
 // but now s points inside the _Rep
 int test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::string str01;
   const char* title = "Everything was beautiful, and nothing hurt";
index f439df907d9431670ce54362c9ec1b031e5eeb98..2e6fdfd2c7023208a129e174592ae9ad287d8cb3 100644 (file)
 
 int test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator citerator;
-  csize_type npos = std::wstring::npos;
   csize_type csz01, csz02;
 
   const std::wstring str01(L"rodeo beach, marin");
index 8b1468b3338ea4ed3773b3920a9b04e45d06b6eb..a1a5389656a3537bde1dce310aeb1d5a9a458c32 100644 (file)
@@ -29,7 +29,7 @@
 // but now s points inside the _Rep
 int test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wstring str01;
   const wchar_t* title = L"Everything was beautiful, and nothing hurt";
index ba92251c6ad3d210615ab2c1c15611cc72e2ccdb..fb2721782c9215c8bcc190346e76fc327709b644 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
-  csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
 
   const std::string str01("sailing grand traverse bay\n"
               "\t\t\t    from Elk Rapids to the point reminds me of miles");
index b53ca2764d25b5b612e027ba396e0a196395ccc9..1fbc3d05dc890cd6ca78997298c8e8cc087a52cb 100644 (file)
 
 // testing basic_stringbuf::xsputn via stress testing with large strings
 // based on a bug report libstdc++ 9
-void test04(int size)
+void test04(std::size_t size)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str(size, 's');
-  int expected_size = 2 * (size + 1);
+  std::size_t expected_size = 2 * (size + 1);
   std::ostringstream oss(str);
   
   // sanity checks
index 416a1df4421e1297e603860006d429058721a517..7ba1cecea818e6047d95c83acbc39ecf6a2745bc 100644 (file)
@@ -32,9 +32,9 @@
 // testing basic_filebuf::xsputn via stress testing with large strings
 // based on a bug report libstdc++ 9
 // mode == out
-void test05(int size)
+void test05(std::size_t size)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char filename[] = "inserters_extractors-1.txt";
   const char fillc = 'f';
   std::ofstream ofs(filename);
@@ -60,7 +60,7 @@ void test05(int size)
 
   // sanity check on the written file
   std::ifstream ifs(filename);
-  int count = 0;
+  std::size_t count = 0;
   char c;
   while (count <= (2 * size) + 4)
     {
index 195ef9dc2ff9fd8cf9f031696c9fba10a9a38896..b074ff2d44c9a39b4cf01785a6f1874f67e4816b 100644 (file)
@@ -33,7 +33,7 @@
 // http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00049.html
 void test06(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::string::size_type size_type;
   std::string str01("@silent");
index 07e3ce63cacd55defe954a6835e1e962b7ef554b..02a2de8f051e74b0db85fcf8ff5fa2c99bc02399 100644 (file)
@@ -34,7 +34,7 @@
 // NB: this is a defect in the standard.
 void test07(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string name("z6.cc");
   std::istringstream iss (name);
   int i = 0;
index bdc848e8055a3ca78e2e2ba727881e76a8f464c4..4d5556661d488a8efe739b0a118c246c6b1f6a01 100644 (file)
@@ -34,7 +34,7 @@ void test08()
 {
   using namespace std;
 
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   istringstream istrm("enero:2001");
   int          year;
   char                 sep;
index fb201c269291ee73824916f1a662c22b164077dd..6755af3f4e1bb219ca363e5e41eee646794e6a11 100644 (file)
@@ -32,7 +32,7 @@
 // libstdc++/2830
 void test09()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string blanks( 3, '\0');
   std::string foo = "peace";
   foo += blanks;
index 46718003d7774d6705c64d6c715d22daf6aa24a7..e77dbc1dc1d0ebee079d0b9bc7126db402f5425b 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
-  csize_type npos = std::wstring::npos;
-  csize_type csz01, csz02;
 
   const std::wstring str01(L"sailing grand traverse bay\n"
               L"\t\t\t    from Elk Rapids to the point reminds me of miles");
index fd844438184ca361614583d27fb9ee1164e933df..ba4f84cead1f90eeab49903b00e227324c52aa8c 100644 (file)
 
 // testing basic_stringbuf::xsputn via stress testing with large strings
 // based on a bug report libstdc++ 9
-void test04(int size)
+void test04(std::size_t size)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring str(size, L's');
-  int expected_size = 2 * (size + 1);
+  std::size_t expected_size = 2 * (size + 1);
   std::wostringstream oss(str);
   
   // sanity checks
index 6d5c69cc1a34de5a88b9cd11d4a360b71d15a243..9a88091fd8f8bde0e5dd57e6c3d03563c4d3566f 100644 (file)
@@ -32,9 +32,9 @@
 // testing basic_filebuf::xsputn via stress testing with large strings
 // based on a bug report libstdc++ 9
 // mode == out
-void test05(int size)
+void test05(std::size_t size)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char filename[] = "inserters_extractors-1.txt";
   const wchar_t fillc = L'f';
   std::wofstream ofs(filename);
@@ -60,7 +60,7 @@ void test05(int size)
 
   // sanity check on the written file
   std::wifstream ifs(filename);
-  int count = 0;
+  std::size_t count = 0;
   wchar_t c;
   while (count <= (2 * size) + 4)
     {
index 1fa1fb07ca33455a86b287674009d3c82c07aacd..33699eb974a27daa3f1e76ea2b7479a2cbe4b56a 100644 (file)
@@ -33,7 +33,7 @@
 // http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00049.html
 void test06(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::wstring::size_type size_type;
   std::wstring str01(L"@silent");
index 0a3775c0bc63537ff4b79e98025184e75614bdc4..1971e959af39f09993264c0e859630793499677c 100644 (file)
@@ -34,7 +34,7 @@
 // NB: this is a defect in the standard.
 void test07(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::wstring name(L"z6.cc");
   std::wistringstream iss(name);
   int i = 0;
index d43d818633fcde71f3e7b9a36b7eda8713c268a3..24aef6f6f18ca42a1e48326476778d3ec6536504 100644 (file)
@@ -34,7 +34,7 @@ void test08()
 {
   using namespace std;
 
-  bool                  test = true;
+  bool test __attribute__((unused)) = true;
   wistringstream istrm(L"enero:2001");
   int           year;
   wchar_t       sep;
index 726dacc9816ef741074b3d6b14e6dcb59c7329ed..d83a17c3cac918dcb7466a1799f5112c55cdb2db 100644 (file)
@@ -32,7 +32,7 @@
 // libstdc++/2830
 void test09()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring blanks(3, L'\0');
   std::wstring foo = L"peace";
   foo += blanks;
index dec24cff731e18de486a0091c147686dc3be25bc..b7337b2fd8d250c6ca391c40714e48e4640b9847 100644 (file)
@@ -26,7 +26,7 @@
 
 int test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::string str1;
   std::string str2;
@@ -35,11 +35,11 @@ int test01(void)
   // 1:8-chars_8-chars_
   // 2:8-chars_8-chars_
   str1 = std::string("8-chars_") + "8-chars_";
-  const char* p1 = str1.c_str();
+  str1.c_str();
   // printf("1:%s\n", str1.c_str());
   str2 = str1 + "7-chars";
   // printf("2:%s\n", str1.c_str()); //str1 is gone
-  const char* p2 = str1.c_str();
+  str1.c_str();
   return 0;
 }
 
index bc3351d02fb468b2bab3e0b77d5e1b95d8847341..c60985e4e2ab0cb78176ea92427b69268addae88 100644 (file)
@@ -115,7 +115,7 @@ template<class charT, class traits, class Allocator>
 
 int test01(void)
 {
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   std::string  str_0("costa rica");
   std::string  str_1("costa marbella");
   std::string  str_2("cost");
index 1dec0cb68954dbe65d37fdb49a55062d24ef8445..98b42f9f769f14443f9af1380413079851da14f3 100644 (file)
@@ -26,7 +26,7 @@
 
 int test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wstring str1;
   std::wstring str2;
@@ -35,11 +35,11 @@ int test01(void)
   // 1:8-chars_8-chars_
   // 2:8-chars_8-chars_
   str1 = std::wstring(L"8-chars_") + L"8-chars_";
-  const wchar_t* p1 = str1.c_str();
+  str1.c_str();
   // wprintf("1:%s\n", str1.c_str());
   str2 = str1 + L"7-chars";
   // wprintf("2:%s\n", str1.c_str()); //str1 is gone
-  const wchar_t* p2 = str1.c_str();
+  str1.c_str();
   return 0;
 }
 
index d92450d23baa24f20810511104c78464218f230c..86ac5dbbf4674b86a6ca45237b66fb687355cf66 100644 (file)
@@ -115,7 +115,7 @@ template<class charT, class traits, class Allocator>
 
 int test01(void)
 {
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring         str_0(L"costa rica");
   std::wstring         str_1(L"costa marbella");
   std::wstring         str_2(L"cost");
index d4c632b7a42c8fad56de124a0c044be659437fa7..4971324285538c010ea94d7b8c9800b8493a8085 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
-  csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
 
   const char str_lit01[] = "ventura, california";
   const std::string str01(str_lit01);
index 7731edd37a4838ca73432fa1fface234b04e8687..08efb962c9e321cfcf981cf801f923ff1c935b98 100644 (file)
@@ -26,7 +26,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit = "../the long pier/Hanalei Bay/Kauai/Hawaii";
   std::string aux = strlit;
   aux.replace(aux.begin()+5, aux.begin()+20,
index a04d13d402433ea2df04eafae1c1172f183c04d9..81cde7bceef1cfad2d975b124d430f5a12e696ad 100644 (file)
@@ -27,7 +27,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* title01 = "nine types of ambiguity";
   const char* title02 = "ultra";
   std::string str01 = title01;
index fcb924a8222188562c04f153334070537c5f0a16..14a294221d6643eb2ca539b523ac8ba8011f043c 100644 (file)
@@ -29,7 +29,7 @@
 void
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str01 = "geogaddi";
   std::string str02;
 
index 8c112c545ed012f606abeb15b84ac8148a0fba15..4e1837f89b29d4353b17ee5d2da171a540a7f2c5 100644 (file)
@@ -28,7 +28,7 @@
 void
 test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str01 = "londinium";
   std::string str02 = "cydonia";
 
index 19ee154025f9e32545e5d15d47f313c0d1ccca65..8d2209da497a5df28d50f5b1b46617caa1dea917 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
-  csize_type npos = std::wstring::npos;
-  csize_type csz01, csz02;
 
   const wchar_t str_lit01[] = L"ventura, california";
   const std::wstring str01(str_lit01);
index da9678a338ff2a0d2c421b76afe315b01e00900e..2ee38141ca2e39e89c57f27ba5f651cf0dca8877 100644 (file)
@@ -27,7 +27,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const wchar_t* strlit = L"../the long pier/Hanalei Bay/Kauai/Hawaii";
   std::wstring aux = strlit;
   aux.replace(aux.begin()+5, aux.begin()+20,
index 2ff6ef282949e9231eee9631bc66a57c760b1a2b..b50af79b0ad370479b2de7e05dc66372ed44dc65 100644 (file)
@@ -27,7 +27,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const wchar_t* title01 = L"nine types of ambiguity";
   const wchar_t* title02 = L"ultra";
   std::wstring str01 = title01;
index 94baa82250dac910461f351618c65b19603e3e86..d11dec82fd2d69e5d13a5f884d37a85784f13f64 100644 (file)
@@ -29,7 +29,7 @@
 void
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring str01 = L"geogaddi";
   std::wstring str02;
 
index f54cfb9a2e7b08a32fd27e713082447286a067dc..1f8d4d9feb4d7d215554074e550d14cf5c4bc871 100644 (file)
@@ -28,7 +28,7 @@
 void
 test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring str01 = L"londinium";
   std::wstring str02 = L"cydonia";
 
index ddc791b6c4aa45e6829db4ed85e4ed321c2e24f3..42913dc3b4d97d3850bd85b017621df3b35229da 100644 (file)
@@ -24,7 +24,7 @@
 // 21.3.6.2 basic_string rfind
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
index d186199a1383fea309152550ee64872150a01303..1f0f5a3367ed545e486e598b9841063e82fd5ca7 100644 (file)
@@ -24,7 +24,7 @@
 // 21.3.6.4 basic_string::find_last_of
 bool test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string z("ab");
   std::string::size_type pos;
   pos = z.find_last_of("ab");
index 3517d4da169f432954c8285ec837683f86fb9ebc..9c3bec96facb836b0557c2bab657880d608d95ee 100644 (file)
@@ -24,7 +24,7 @@
 // 21.3.6.6 basic_string::find_last_not_of
 bool test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   std::string::size_type pos;
   csize_type npos = std::string::npos;
index bfb1f914c21ec7de8f995ef2df93f542f3de076d..46077a8550fdf0eea6a22852ab53dfb3a118a1ed 100644 (file)
@@ -24,7 +24,7 @@
 // 21.3.6.2 basic_string rfind
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
index 2f813b9b28b49be9597ed5814a89f65086440bbe..af012b9d06957d3a39a8cd169e56bbd41a1016e9 100644 (file)
@@ -24,7 +24,7 @@
 // 21.3.6.4 basic_string::find_last_of
 bool test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wstring::size_type pos;
   std::wstring z(L"ab");
   pos = z.find_last_of(L"ab");
index a94da0d3e859c98c241b90ab71aab4e61ea1e64d..7c564e769e7019e9897a05c86b10ddc7f8d700b7 100644 (file)
@@ -24,7 +24,7 @@
 // 21.3.6.6 basic_string::find_last_not_of
 bool test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   std::wstring::size_type pos;
   csize_type npos = std::wstring::npos;
index 486892a62e0c2e363da77296cc8fb4f593ff28c1..b1ed63d60aed3c212668a06c8cb3e02c6a3eb889 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
-  csize_type npos = std::string::npos;
-  csize_type csz01, csz02;
+  csize_type csz01;
 
   const char str_lit01[] = "rockaway, pacifica";
   const std::string str01(str_lit01);
index 1a4e4f63936e8a1b1c55494e426de7e5e62df171..da00f1c507bd467358f6dd578fa86bd305803f3d 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
-  csize_type npos = std::wstring::npos;
-  csize_type csz01, csz02;
+  csize_type csz01;
 
   const wchar_t str_lit01[] = L"rockaway, pacifica";
   const std::wstring str01(str_lit01);
index 7dfe6c24cf2ac99babece5b5897285ad6e8a3ae1..c18b4238a6e9066da5d515b1bdbcb364e26cdd4d 100644 (file)
@@ -25,7 +25,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char c = 'a';
   const char cc = 'b';
   char* c1 = &c;
index 7ec0561b8877767e9d55cf9451969035524e7756..2eaac5e7d357744ef17297ccba5a4a1eb4e57755 100644 (file)
@@ -31,14 +31,15 @@ void test02()
   const char* ccarray2 = "san francisco sunny-day park inspectors";
   char carray[50];
   strcpy(carray, ccarray1);
-  void* v = carray;
   const void* cv = ccarray1;
-  memchr(cv, '/', 3);
-  strchr(ccarray1, '/');
-  strpbrk(ccarray1, ccarray2);
-  strrchr(ccarray1, 'c');
-  strstr(carray, carray);
+  void* v;
+  char* c;
+
+  v = memchr(cv, '/', 3);
+  c = strchr(ccarray1, '/');
+  c = strrchr(ccarray1, 'c');
+  c = strpbrk(ccarray1, ccarray2);
+  c = strstr(carray, carray);
 }
 
 int main()
index 3ad6aed1e0a6a097a4c0738cad8c4f0b4549dc6c..7c4395aea3dd24e77713a5626faaef7c6d8cb86e 100644 (file)
@@ -26,7 +26,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   wchar_t c = L'a';
   const wchar_t cc = L'b';
   wchar_t* c1 = &c;
index 3a8f77cd3355bdcfd4ee7577517f53508c0620dc..19a7ebe30421036108a0531708571a2e128c2263 100644 (file)
@@ -32,12 +32,13 @@ void test02()
   const wchar_t* ccarray2 = L"san francisco sunny-day park inspectors";
   wchar_t carray[50];
   wcscpy(carray, ccarray1);
-  wmemchr(ccarray1, L'/', 3);
-  wcschr(ccarray1, L'/');
-  wcspbrk(ccarray1, ccarray2);
-  wcsrchr(ccarray1, L'c');
-  wcsstr(carray, carray);
+  wchar_t* w;
+
+  w = wmemchr(ccarray1, L'/', 3);
+  w = wcschr(ccarray1, L'/');
+  w = wcspbrk(ccarray1, ccarray2);
+  w = wcsrchr(ccarray1, L'c');
+  w = wcsstr(carray, carray);
 }
 
 int main()
index 6f8eb47373795dd07ca2ae64fdbcc0721a7ded18..4ef29f20d35ba94579d94e0cc29d8435cf493807 100644 (file)
@@ -25,7 +25,7 @@
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01("zuma beach");
   const std::string str_02("montara and ocean beach");
  
index 4a61942efc7a5cc729bc56078bf177c7544b0e75..b38b3cff177c8fe3bc3ca117361ecaca8f862e8a 100644 (file)
@@ -29,7 +29,7 @@
 
 void test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   // 21.1.1 character traits requirements
 
index a93d2f50f2e1dd5e6bed9bc5667535237bcd2041..d4a64ae4a10bbb4bc7946d0a1a690d68a0a7250d 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::wstring str_01(L"zuma beach");
   const std::wstring str_02(L"montara and ocean beach");
  
index 4f2d061fb0956832493739844f73fb77641a7164..5d34aae47793eabefc193313442d1dda0d2c6e3d 100644 (file)
@@ -28,7 +28,7 @@ int main()
   // 21.1.3: char_traits<char>::int_type == int
   // dg-options -ansi -pedantic-err
   std::char_traits<char>::int_type* p = 0;
-  int* q = p;                   // dg-do compile
+  int* q __attribute__((unused)) = p;                   // dg-do compile
 
   return 0;
 }
index fa285752871d1e5149841379862d79abf0495a24..1c46d583c419a293ff3cd13590ee6b12254fad5e 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::codecvt<char, char, mbstate_t> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::intern_type intern_type;
index 523322ece8744f18b88ffb8b3b67b282cf450e58..060b3683a52098f6e34fd9b22ad7ab68843fecf6 100644 (file)
@@ -31,16 +31,12 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
-  const char*          c_lit = "black pearl jasmine tea";
-  const char*          from_next;
+  bool test __attribute__((unused)) = true;
   int                  size = 25;
   char*                c_arr = new char[size];
   char*                 c_ref = new char[size];
-  char*                        to_next;
 
   locale               loc = locale::classic();
-  c_codecvt::state_type state;
   const c_codecvt*     cvt = &use_facet<c_codecvt>(loc); 
 
   // According to the resolution of DR19 (see also libstd++/9168), in
index 6b57c89232f2aac448df3ca4ee41a5c0b0597408..13fc3838c73af5d6dcd3043c7d51a328cb8999eb 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale               loc;
index 1a933f8fd3b68dc0d673f935b849446a8cd70f7a..da377b57a454e09a94ab58406704b0b400f72258 100644 (file)
@@ -30,7 +30,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
index 9e98f53f88b265d518867969cccfcb508f4f02c8..6830d301036c9ef6d9a505573527f8456330ad0b 100644 (file)
@@ -30,7 +30,7 @@
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15");
index 0929676270f9dd2f5538e4488edbfd18d912c552..ecb007531753ed5f8eb2503b9f56fd14cf5211f2 100644 (file)
@@ -30,7 +30,7 @@
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
index 9ac07c5f044ba6c89b3ff6552e4395bc1b5efb28..76428bff18082357a629b7e5793283a66f55e9a9 100644 (file)
@@ -31,16 +31,12 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
-  const char*          c_lit = "black pearl jasmine tea";
-  const char*          from_next;
+  bool test __attribute__((unused)) = true;
   int                  size = 25;
   char*                c_arr = new char[size];
   char*                 c_ref = new char[size];
-  char*                        to_next;
 
   locale               loc = locale::classic();
-  c_codecvt::state_type state;
   const c_codecvt*     cvt = &use_facet<c_codecvt>(loc); 
 
   // According to the resolution of DR19 (see also libstd++/9168), in
index d2fa938e892373f3d1f35643e0f21b04188e3233..1b86fb7a8ddcc410f9b67e6d3a5b136588e91fe7 100644 (file)
@@ -29,7 +29,7 @@ void test01()
 {
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
 
   locale               loc_c = locale::classic();
   const w_codecvt*     cvt = &use_facet<w_codecvt>(loc_c); 
index c103b2e41c50d0d9863d2b2ba5ae17a32358541d..815cfd3ec282034017a590aca520c18083c84245 100644 (file)
@@ -31,7 +31,7 @@ void test02()
 {
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
   locale::global(loc);
index 9cc921c7bce1bf57c53ea984078472392d7c6c31..d456868b85d361a254e1b066509294cba530413d 100644 (file)
@@ -31,7 +31,7 @@ void test03()
 {
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15");
   locale::global(loc);
index 68972e7ab325aab58a207dc208a8eb92ae7f8a52..d996797a8beac738c2477b19f27fc1dc87f59965 100644 (file)
@@ -31,7 +31,7 @@ void test04()
 {
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
   locale::global(loc);
index 71f6ac7749863b257afdcefb9812cd5f7784ae35..bbc6397ce3735c9b096a01a60c8e98d5a5c53d86 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char*          c_lit = "black pearl jasmine tea";
   const char*          from_next;
   int                  size = 25;
index d5a410a7741855c31b906b4df567234a347434f0..d8c2e8fe42adcfc039bd95baa1d4b5b14285c51c 100644 (file)
@@ -49,7 +49,7 @@ void test01()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   const ext_type*       efrom_next;
   const int_type*      i_lit = L"black pearl jasmine tea";
index 51739b6ae3b5ed658e884f56c1f22f0647cf111b..c1e025cff4b18fb2526095d0536aa38528af5234 100644 (file)
@@ -49,7 +49,7 @@ void test02()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 118462d618b894f34b441f0b7242c4c23487f396..361f2c7c418d2c4e1daa62416c3f909b8d6ecbfc 100644 (file)
@@ -49,7 +49,7 @@ void test03()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index c08ee55efea0d505165e0027eff6c42b330787de..14b67284b8cf192c54f27fad8d558d8fa8ce487d 100644 (file)
@@ -50,7 +50,7 @@ void test04()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index ec65f60c6928135fbd4fba7529a2470688e65bb3..aa0879d393db5f48a1143bee5146f3606660e4f6 100644 (file)
@@ -50,7 +50,7 @@ void test05()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type       e_lit[] = { '\0', '\0', 'f', '\0' };
   const ext_type*       efrom_next;
   const int_type       i_lit[] = { L'\0', L'\0', L'f', L'\0' };
index 1be30323b8b3c0d45a122d471b0e20f41660e72c..1eed2880dbc65e23e114f7a918ecf97a6ace75f1 100644 (file)
@@ -50,7 +50,7 @@ void test06()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   const ext_type*       efrom_next;
   const int_type*      i_lit = L"black pearl jasmine tea";
index 7d14ab4cfb511ec55cccf3d64f6465f16e01a300..8689be233faf634de4129db79824916742fa2d6f 100644 (file)
@@ -49,7 +49,7 @@ void test07()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "a\xc0\xff";
   const ext_type*       efrom_next;
   const int_type*      i_lit = L"a";
index 296f2eb3171de24e2425ca2f818761cd60b58cff..ee4d82bae63f03839f1fb0bcfbaaf957457dc7a0 100644 (file)
@@ -49,7 +49,7 @@ void test08()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 7ba367b1327602908f745457eb1eff7bf62eb607..ed6e68849a7db0d6448fc8f4cbc98ceb219a7dbf 100644 (file)
@@ -49,7 +49,7 @@ void test09()
   typedef char                                 ext_type;
   typedef char_traits<wchar_t>                 int_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
@@ -118,7 +118,7 @@ void test09()
   // in
   w_codecvt::state_type state01;
   zero_state(state01);
-  result r1;
+  result r1 = codecvt_base::error;
 
   for (int i = 0; i <= esize; ++i)
     {
index 3ea244dcbb0d9f5cbb4447c822968e5da4fe8b16..085952863c2ab0412edc28ab21808efc48249c53 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char*          c_lit = "black pearl jasmine tea";
   int                  size = 25;
 
index 6e0a7e96f2ea0516468fe1522106b7845b96a621..5e5023af8509d1d73cdc6b96fed1d110c2986e3d 100644 (file)
@@ -49,7 +49,7 @@ void test02()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char*          c_lit = "black pearl jasmine tea";
   int                  size = 25;
 
index 100de8567fccf546788c1d8a498205e7a26c9e6e..bc228755a0d537ecbb668b9d6899ed45d05513fc 100644 (file)
@@ -44,7 +44,7 @@ void test01()
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
index 6f92b6ce093e16e15287623e21e7ad4bbd4d0082..a969ef6123593331b6a86686ad8ced5a5cfe9b07 100644 (file)
@@ -44,7 +44,7 @@ void test02()
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 8aec29d580bac7c8154a15e9b02be767390c9a67..3512e8ce265c768ee54d8d5b7e3a8fa0733f2a65 100644 (file)
@@ -44,7 +44,7 @@ void test03()
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 0b7b87c26435f8713ba82436abb93c4b831ddd93..ca742c3024026bcaf8bec6da3263eb28a1594fcb 100644 (file)
@@ -45,7 +45,7 @@ void test04()
   typedef wchar_t                              int_type;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
@@ -72,7 +72,6 @@ void test04()
     "\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
     "\xfd\x80\x80\x80\x80\x80";
 
-  const ext_type*       efrom_next;
   const int_type       i_lit[] = {
     0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
     0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
index 284233e7b6bf7afdab7b582b7c119c2aab8f2cc9..2921a9d9bfdc7ce4d73b570e441a72290a9dcca6 100644 (file)
@@ -44,7 +44,7 @@ void test05()
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type       e_lit[] = { '\0', '\0', 'f', '\0' };
   int                  size = sizeof(e_lit);
 
index 76c151edf05ceda35087c13e173f96c7c15bb76f..a0700c1892014673bf1657eec4cf11056eeb47dc 100644 (file)
@@ -62,7 +62,7 @@ void test06()
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
index 7d8ff4a1d80206ef84523a7cc103a9789c514f30..5f35a0f2b1a7e0cbe2ce0e52a6da832bb41905ca 100644 (file)
@@ -47,9 +47,8 @@ void test07()
   typedef wchar_t                              int_type;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "a\xc0\xff";
-  const ext_type*       efrom_next;
   int                  size = strlen(e_lit);
 
   locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
index 789007ae90522da2ba8aef08cd4a1cacb08c029e..2880ec5263648d4a6ed5f4940d64511ce853e99f 100644 (file)
@@ -31,16 +31,11 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
-  const char*          c_lit = "black pearl jasmine tea";
-  const char*          from_next;
+  bool test __attribute__((unused)) = true;
   int                  size = 25;
   char*                c_arr = new char[size];
   char*                 c_ref = new char[size];
-  char*                        to_next;
-
   locale               loc = locale::classic();
-  c_codecvt::state_type state;
   const c_codecvt*     cvt = &use_facet<c_codecvt>(loc); 
 
   // According to the resolution of DR19 (see also libstd++/9168), in
index 5ecc99e0c6a9efe6c90325c962b4fd21451d6a41..ad8cc24c60cbfc2f3ac6aeb994f9d9a629f085cf 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale               loc_c = locale::classic();
index c99c823fbe28eb4a0197215919bbb7e71b7a784d..57d471e77989822ec212f152defa9ffb5049cb10 100644 (file)
@@ -28,7 +28,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale  loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
index 27f67a4f1174544b176e980c96dc2649c1a60e38..229692b5f733ce29b67c413c1ce28ea957a226e3 100644 (file)
@@ -28,7 +28,7 @@
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15");
index 8ab6828ddb56673e3db9c0ee2d2fa1c7c80c08ea..7533e4c06591dca641f31987c8d008bd99814d0c 100644 (file)
@@ -28,7 +28,7 @@
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef codecvt<wchar_t, char, mbstate_t>    w_codecvt;
 
   locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
index f0ef0a5da639304fccb2d4117202ffe097e570a9..1dddbb207c76aeb968c2f2ef3533d0323239dab6 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char*          c_lit = "black pearl jasmine tea";
   const char*          from_next;
   int                  size = 25;
index 82a57c6fdbdd85974ed3329f19ff020e7d8f99b5..75eb2ff0817522a1ccd01949d4540ab409a47d93 100644 (file)
@@ -47,7 +47,7 @@ void test01()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   const int_type*      i_lit = L"black pearl jasmine tea";
   const int_type*       ifrom_next;
index ff413d5ac8aedbdfcbb52a2684640b9eef48bb04..cffff049c2841fc5afdb197bf15e048660986f15 100644 (file)
@@ -47,7 +47,7 @@ void test02()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index b1fa9fa4f22b253a98e8edffee2ecef1fbacc28a..c421488d1c40db730ceb300323c3a626111535a1 100644 (file)
@@ -47,7 +47,7 @@ void test03()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 4fd193e3055e0fd4f0f2a2f8bd2577c932844e10..fabb941b021ae2d5f245ddadd889b788d6eefcdd 100644 (file)
@@ -47,7 +47,7 @@ void test04()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit =
     "\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 13ca4b28719541dddcefe50d588f4cb6204a5950..55ba7eff90062081e383d1ebf3e99e5fed283eab 100644 (file)
@@ -50,7 +50,7 @@ void test05()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type       e_lit[] = { '\0', '\0', 'f', '\0' };
   const int_type       i_lit[] = { L'\0', L'\0', L'f', L'\0' };
   const int_type*       ifrom_next;
index 9ee2770bafdcdbc5b918a515897f534346d301f7..a44746ff02d7c3c3fa92427a8139560fd2db2a98 100644 (file)
@@ -50,7 +50,7 @@ void test06()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   const int_type*      i_lit = L"black pearl jasmine tea";
   const int_type*       ifrom_next;
index 3c069c8bb840caad66f6159904cb632f00f4e8bf..2a469c65c30dee4b91d61449c0ee7dea3887c0c6 100644 (file)
@@ -47,7 +47,7 @@ void test03()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "a";
   const int_type       i_lit[] = { L'a', 0x20ac, 0x0 };
   const int_type*       ifrom_next;
index b1dc652d6d4ee0afdd79bce62f1a4987c0e3f0b5..705f43afd6f1692bc1769cd2c3f3b63675e359a7 100644 (file)
@@ -119,7 +119,7 @@ void test01()
   typedef __enc_traits                         enc_type;
   typedef codecvt<int_type, ext_type, enc_type>        unicode_codecvt;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
index 1fa9648f5e86faae5812c9e49439b757adb999b4..ad31f9ae2fcb25b8cf9932bc0be0dc78a2108022 100644 (file)
@@ -126,7 +126,7 @@ void test01()
   typedef char_traits<int_type>                        int_traits;
   typedef char_traits<ext_type>                        ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
@@ -215,7 +215,7 @@ void test02()
   typedef char_traits<int_type>                        int_traits;
   typedef char_traits<ext_type>                        ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
index 5f3d76cfe640a39b6945a375b835718465c566aa..5793b33aa77ad9b7660f521a493da37c1131be52 100644 (file)
@@ -103,7 +103,7 @@ void test01()
   typedef char_traits<int_type>                        int_traits;
   typedef char_traits<ext_type>                        ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   int                  size = 23;
   char  e_lit_base[96] __attribute__((aligned(__alignof__(ext_type)))) =
   {
@@ -155,8 +155,8 @@ void test01()
   unicode_codecvt::state_type state02("UCS-2BE", "UCS-4BE", 0, 0);
   initialize_state(state02);  
   result r2 = cvt.out(state02, i_lit, i_lit + size, ifrom_next, 
-                      e_arr, e_arr + size, eto_next);
-  // XXX   VERIFY( r2 == codecvt_base::ok );
+                      e_arr, e_arr + size, eto_next);   
+  VERIFY( r2 == codecvt_base::ok ); // XXX?
   VERIFY( !ext_traits::compare(e_arr, e_lit, size) ); 
   VERIFY( ifrom_next == i_lit + size );
   VERIFY( eto_next == e_arr + size );
index 1a6eadd82fe6a5ce6339ba00514a656b2bc5c9b7..25a36ef5ee9f5d287e2fe87f04d9e03bd4462698 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   typedef codecvt_base::result                 result;
   typedef codecvt<char, char, mbstate_t>       c_codecvt;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char*          c_lit = "black pearl jasmine tea";
   const char*          from_next;
   int                  size = 25;
index 65aaea05056a963662a22bdd58a08c20d936fd21..8410a358c4cd081fee893c97b5f62d9cfc765557 100644 (file)
@@ -46,7 +46,7 @@ void test01()
   typedef wchar_t                              int_type;
   typedef char                                 ext_type;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
   ext_type*            e_arr = new ext_type[size + 1];
index a6d107cacb6060e9a41f9b7d97aee0e98a7f505a..dce60f81a26a4f60d5b9fa07c65444acea5af58b 100644 (file)
@@ -47,7 +47,7 @@ void test02()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const int_type*      i_lit =
     L"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
     L"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
index 7ca700764c31bcb7d5e84bf6d6bc654712344632..e327ef867312fa1851b986bab7b13cd30e643a7a 100644 (file)
@@ -47,7 +47,7 @@ void test03()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const int_type       i_lit[] = {
     0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
     0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
index 234a4b63f4674a6b6b5d07e96919af0aa594ad0f..d4dc56051af5d27a7beb7631e24a18ac15c727b5 100644 (file)
@@ -47,7 +47,7 @@ void test04()
   typedef char                                 ext_type;
   typedef char_traits<char>                    ext_traits;
 
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const int_type       i_lit[] = {
     0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
     0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
index 5b55b03f24fffbb1f514f3bf43dd4f4f16c9c8ba..2f6415fcd67dd7c7344eb8f1884db12cea50de40 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::messages<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 
   // Check for required typedefs
   typedef test_type::char_type char_type;
index 42469aea5141ba89ad02d6e7b637b2d0e68e4497..62e9510d3682a93a0321dd7e702f18c7644ad4f2 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -43,9 +43,6 @@ void test01()
 
   // cache the collate facets
   const collate<char>& coll_c = use_facet<collate<char> >(loc_c); 
-  const collate<char>& coll_us = use_facet<collate<char> >(loc_us); 
-  const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr); 
-  const collate<char>& coll_de = use_facet<collate<char> >(loc_de); 
 
   // int compare(const charT*, const charT*, const charT*, const charT*) const
 
index b6f944949a387f5ef788b8c7c25284f686f89bd4..d0bad93196bd2d712defb94963b3e4ac2e2eb507 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -42,22 +42,17 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<char>& coll_c = use_facet<collate<char> >(loc_c); 
-  const collate<char>& coll_us = use_facet<collate<char> >(loc_us); 
-  const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr); 
   const collate<char>& coll_de = use_facet<collate<char> >(loc_de); 
 
   // int compare(const charT*, const charT*, const charT*, const charT*) const
 
   const char* strlit1 = "monkey picked tikuanyin oolong";
-  const char* strlit2 = "imperial tea court green oolong";
   const char* strlit3 = "Äuglein Augment"; // "C" == "Augment Ã„uglein"
   const char* strlit4 = "Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
   int i1;
   int i2;
   int size1 = char_traits<char>::length(strlit1) - 1;
-  int size2 = char_traits<char>::length(strlit2) - 1;
   int size3 = char_traits<char>::length(strlit3) - 1;
   int size4 = char_traits<char>::length(strlit4) - 1;
 
index 6712832294c8f63ca9286c514d1d5eab6e75920b..7de98aa7925df4d6958b99447ba966ad79020127 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
index c1825e2bbf257743fb846f9a32e9d6f7495a581b..995c5b4f699dd6eaede36976f66e181d77449fa3 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -43,9 +43,6 @@ void test01()
 
   // cache the collate facets
   const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c); 
-  const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us); 
-  const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr); 
-  const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de); 
 
   // int compare(const charT*, const charT*, const charT*, const charT*) const
 
index 8d813abde3d3d580a27193b4942fbeeecf531c38..fd4aee7a01614e9af8c76ec3be50f5899dbe31e7 100644 (file)
@@ -33,7 +33,7 @@ void test02()
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -46,22 +46,17 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c); 
-  const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us); 
-  const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr); 
   const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de); 
 
   // int compare(const charT*, const charT*, const charT*, const charT*) const
 
   const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
-  const wchar_t* strlit2 = L"imperial tea court green oolong";
   const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Ã„uglein"
   const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
   int i1;
   int i2;
   int size1 = char_traits<wchar_t>::length(strlit1) - 1;
-  int size2 = char_traits<wchar_t>::length(strlit2) - 1;
   int size3 = char_traits<wchar_t>::length(strlit3) - 1;
   int size4 = char_traits<wchar_t>::length(strlit4) - 1;
 
index c4b87bad0683132bb3884d32815f245a21c9af40..209f7f835e3194636ed42cd9735cb5e58fb9b9e6 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
index 9be618a8f4a9637ce630d6a23ecc5cd64e6dd1e4..e8d9d8ef0a1deced32e13981108fb4efc22358c3 100644 (file)
@@ -26,7 +26,7 @@
 // Check "C" locale.
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::string str1("fffff");
   std::string str2("ffffffffffff");
index 6ef1bedbb08d8d51e8bc6aeeeea9803a827f4144..236d21e128da8d83498a6069fc060db3a3c62f03 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -42,19 +42,12 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<char>& coll_c = use_facet<collate<char> >(loc_c); 
-  const collate<char>& coll_us = use_facet<collate<char> >(loc_us); 
-  const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr); 
   const collate<char>& coll_de = use_facet<collate<char> >(loc_de); 
 
   // long hash(const charT*, const charT*) cosnt
-  const char* strlit1 = "monkey picked tikuanyin oolong";
-  const char* strlit2 = "imperial tea court green oolong";
   const char* strlit3 = "Äuglein Augment"; // "C" == "Augment Ã„uglein"
   const char* strlit4 = "Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
-  int i1;
-  int i2;
   long l1;
   long l2;
   int size3 = char_traits<char>::length(strlit4) - 1;
index 73f8da142ca992b3e72de0fe96f099b4a482fcd2..fad5848e46defba08028285d708fc73f54ccc700 100644 (file)
@@ -28,7 +28,7 @@ void test01()
 {
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   string_type str1(L"fffff");
   string_type str2(L"ffffffffffff");
index 2347e0469b270fb0f7f3155c902e010494de81b2..280180322278e39d3a51b68c30b5241b13b73b5e 100644 (file)
@@ -32,7 +32,7 @@ void test02()
 {
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -45,19 +45,12 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c); 
-  const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us); 
-  const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr); 
   const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de); 
 
   // long hash(const charT*, const charT*) cosnt
-  const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
-  const wchar_t* strlit2 = L"imperial tea court green oolong";
   const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Ã„uglein"
   const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
-  int i1;
-  int i2;
   long l1;
   long l2;
   int size3 = char_traits<wchar_t>::length(strlit4) - 1;
index 679a4b0c8fd3ffacf0bb20ae3ac51bf2d831a5eb..9dfc00ffaf47ff12b82ad56b7cd584a2536569db 100644 (file)
@@ -28,7 +28,7 @@ void test02()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,14 +41,9 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<char>& coll_c = use_facet<collate<char> >(loc_c); 
-  const collate<char>& coll_us = use_facet<collate<char> >(loc_us); 
-  const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr); 
   const collate<char>& coll_de = use_facet<collate<char> >(loc_de); 
 
   // long hash(const charT*, const charT*) cosnt
-  const char* strlit1 = "monkey picked tikuanyin oolong";
-  const char* strlit2 = "imperial tea court green oolong";
   const char* strlit3 = "Äuglein Augment"; // "C" == "Augment Ã„uglein"
   const char* strlit4 = "Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
index c82d97cfa85b6c51e00dcdb62582102f8f14ad88..dab1f081b0dae73de549cdb432a80a901bf5fa1d 100644 (file)
@@ -28,7 +28,7 @@ void test03()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
index 4943ba0b7d54f5d6f3756d81db0bf6cad7d92296..d21d39964920b0161682ee424262b8315f9e7795 100644 (file)
@@ -32,7 +32,7 @@ void test02()
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -45,14 +45,9 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the collate facets
-  const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c); 
-  const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us); 
-  const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr); 
   const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de); 
 
   // long hash(const charT*, const charT*) cosnt
-  const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
-  const wchar_t* strlit2 = L"imperial tea court green oolong";
   const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Ã„uglein"
   const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
 
index 583d747145a63077e87b31938d116011a9f88d7c..fdd88f70885512797f45647936cb640a966c1222 100644 (file)
@@ -28,7 +28,7 @@ void test03()
   using namespace std;
   typedef std::collate<wchar_t>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
index f650be796a052f42ad0dc48b3c35afc5c047d17a..be4524f9ca6532f060a81472ee1a3d5bf1bd242b 100644 (file)
@@ -28,7 +28,7 @@ void test01()
   using namespace std;
   typedef std::collate<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string str;
   locale loc_c = locale::classic();
 
@@ -41,7 +41,6 @@ void test01()
   VERIFY( loc_de != loc_byname );
 
   // cache the collate facets
-  const collate<char>& coll_byname = use_facet<collate<char> >(loc_byname); 
   const collate<char>& coll_de = use_facet<collate<char> >(loc_de); 
 
   // Check German "de_DE" locale.
index 541f2b9c23736022cbeaf2d52d68294040345cad..adda6fd548d90d7042d183de2b389e062d3c29c2 100644 (file)
@@ -141,14 +141,15 @@ test01()
 
   ctype_base::mask m01;
   ctype_base::mask m02;
-  
+  ctype_base::mask res;
+
   m01 = ctype_base::space;
   m02 = ctype_base::xdigit;
 
-  m01 & m02;
-  m01 | m02;
-  m01 ^ m02;
-  ~m01;
+  res = m01 & m02;
+  res = m01 | m02;
+  res = m01 ^ m02;
+  res = ~m01;
   m01 &= m02;
   m01 |= m02;
   m01 ^= m02;
index 4846aec220edbdea4551d497e2993a00a5e0abbe..d21ee946d7a37ba3caba698ae0dba739cbc77ba7 100644 (file)
@@ -51,7 +51,7 @@ public:
 void test01()
 {
   using namespace std;
-  bool test = true; 
+  bool test __attribute__((unused)) = true; 
 
   comma_ctype obj;
   const ctype_base::mask* tmp = obj.get_classic_table();
index 8e80fd2fb96329656ae792f93ac7d7be8541a150..523044f6d32214c5c08f54d93373dcc52f314f99 100644 (file)
@@ -35,10 +35,9 @@ class gnu_ctype: public std::ctype<char_type> { };
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char_type strlit00[] = "manilla, cebu, tandag PHILIPPINES";
   const char_type strlit01[] = "MANILLA, CEBU, TANDAG PHILIPPINES";
-  const char_type strlit02[] = "manilla, cebu, tandag philippines";
   const char_type c00 = 'S';
   const char_type c10 = 's';
   const char_type c20 = '9';
@@ -46,13 +45,9 @@ void test01()
   const char_type c40 = '!';
   const char_type c50 = 'F';
   const char_type c60 = 'f';
-  const char_type c70 = 'X';
   const char_type c80 = 'x';
 
   gnu_ctype gctype;
-  char_type c100;
-  int len = std::char_traits<char_type>::length(strlit00);
-  char_type c_array[len + 1];
 
   // sanity check ctype_base::mask members
   int i01 = std::ctype_base::space;
@@ -66,7 +61,6 @@ void test01()
   int i09 = std::ctype_base::graph;
   int i10 = std::ctype_base::print;
   int i11 = std::ctype_base::cntrl;
-  int i12 = sizeof(std::ctype_base::mask);
   VERIFY ( i01 != i02);
   VERIFY ( i02 != i03);
   VERIFY ( i03 != i04);
index 89be53dd3f01bc95a3e09d960ac915575b33ab54..0211607de8f4f62762e7b109e099475b6e731990 100644 (file)
@@ -41,7 +41,7 @@ void test02()
   typedef ctype_base::mask     mask;
   typedef vector<mask>                 vector_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   //  const int max = numeric_limits<char>::max();
   const int max = 255;
index 0b56b5ca3b096f4e7d3805f858163d1c06a73ae6..9ddeadb1f0334488eebf1849267f80ecad9c9215 100644 (file)
@@ -35,7 +35,7 @@ typedef char char_type;
 // Per Liboriussen <liborius@stofanet.dk>
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::ctype_base::mask maskdata[256];
   for (int i = 0; i < 256; ++i)
     maskdata[i] = std::ctype_base::alpha;
index ff115d2cdbe3de80fb9188f10c3353c8bd303fd7..29fdfe97c7eb412ed5fef1927bf90f1a03122a80 100644 (file)
@@ -35,10 +35,9 @@ class gnu_ctype: public std::ctype<char_type> { };
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char_type strlit00[] = L"manilla, cebu, tandag PHILIPPINES";
   const char_type strlit01[] = L"MANILLA, CEBU, TANDAG PHILIPPINES";
-  const char_type strlit02[] = L"manilla, cebu, tandag philippines";
   const char_type c00 = L'S';
   const char_type c10 = L's';
   const char_type c20 = L'9';
@@ -46,13 +45,9 @@ void test01()
   const char_type c40 = L'!';
   const char_type c50 = L'F';
   const char_type c60 = L'f';
-  const char_type c70 = L'X';
   const char_type c80 = L'x';
 
   gnu_ctype gctype;
-  char_type c100;
-  int len = std::char_traits<char_type>::length(strlit00);
-  char_type c_array[len + 1];
 
   // sanity check ctype_base::mask members
   int i01 = std::ctype_base::space;
@@ -66,7 +61,6 @@ void test01()
   int i09 = std::ctype_base::graph;
   int i10 = std::ctype_base::print;
   int i11 = std::ctype_base::cntrl;
-  int i12 = sizeof(std::ctype_base::mask);
   VERIFY ( i01 != i02);
   VERIFY ( i02 != i03);
   VERIFY ( i03 != i04);
@@ -100,7 +94,6 @@ void test01()
   std::ctype_base::mask m02[13];
   const char_type* cc0 = strlit00;
   const char_type* cc1 = NULL;
-  const char_type* cc2 = NULL;
 
   cc0 = strlit00;
   m01[0] = m00;
index c9eb1e0b2a48f4433c2bd201f800530f4c22acfd..df028783f85be1613bdaa5653818570d80d22019 100644 (file)
@@ -41,7 +41,7 @@ void test02()
   typedef ctype_base::mask     mask;
   typedef vector<mask>                 vector_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   //  const int max = numeric_limits<char>::max();
   const int max = 255;
index bbe0c2eadf074a60d44cc77574cf0bec7fb1db2d..6643803a1a1aaa8a2f706812db2cc190f8408087 100644 (file)
@@ -39,7 +39,7 @@ void test01()
   using namespace std;
   typedef char         wide_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char dfault = '?';
   const locale loc_c = locale::classic();
   const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c); 
@@ -49,7 +49,7 @@ void test01()
   vector<char>                         narrow_chars(wide.length() + 1);
   
   // narrow(charT c, char dfault) const
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     {
       char c = ctype_c.narrow(wide[i], dfault);
       VERIFY( c == narrow[i] );
@@ -58,7 +58,7 @@ void test01()
   // narrow(const charT* low, const charT* high, char dfault, char* dest) const
   ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
   VERIFY( narrow_chars[0] != dfault );
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     VERIFY( narrow_chars[i] == narrow[i] );
 }
 
index aa3ff4c70bc9fbfec02f724484749379a06ed818..1f0e1619afc1467428303c9ee6cefe414a648cc4 100644 (file)
@@ -38,7 +38,7 @@ void test02()
   using namespace std;
   typedef char         wide_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char dfault = '?';
   const locale loc_c = locale::classic();
   const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c); 
@@ -53,7 +53,7 @@ void test02()
   vector<char>                         narrow_chars(wide.length() + 1);
 
   // narrow(charT c, char dfault) const
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     {
       char c = ctype_c.narrow(wide[i], dfault);
       VERIFY( c == narrow[i] );
@@ -62,7 +62,7 @@ void test02()
   // narrow(const charT* low, const charT* high, char dfault, char* dest) const
   ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
   VERIFY( narrow_chars[0] != dfault );
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     VERIFY( narrow_chars[i] == narrow[i] );
 }
 
index 459dcf7db5766080310bc78dc7e9ca373ec296ca..a9d30f44cc2ae4a3bbb0ad1ac17977c2b5b64413 100644 (file)
@@ -39,7 +39,7 @@ void test01()
   using namespace std;
   typedef wchar_t      wide_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char dfault = '?';
   const locale loc_c = locale::classic();
   const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c); 
@@ -49,7 +49,7 @@ void test01()
   vector<char>                         narrow_chars(wide.length() + 1);
   
   // narrow(charT c, char dfault) const
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     {
       char c = ctype_c.narrow(wide[i], dfault);
       VERIFY( c == narrow[i] );
@@ -58,7 +58,7 @@ void test01()
   // narrow(const charT* low, const charT* high, char dfault, char* dest) const
   ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
   VERIFY( narrow_chars[0] != dfault );
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     VERIFY( narrow_chars[i] == narrow[i] );
 }
 
index 8f8fecc6ea925bb36238913a8596e1a35cb1adf0..5422a5685a9041d967f463594770a921c8c3f7a0 100644 (file)
@@ -38,7 +38,7 @@ void test02()
   using namespace std;
   typedef wchar_t      wide_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char dfault = '?';
   const locale loc_c = locale::classic();
   const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c); 
@@ -53,7 +53,7 @@ void test02()
   vector<char>                         narrow_chars(wide.length() + 1);
 
   // narrow(charT c, char dfault) const
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     {
       char c = ctype_c.narrow(wide[i], dfault);
       VERIFY( c == narrow[i] );
@@ -62,7 +62,7 @@ void test02()
   // narrow(const charT* low, const charT* high, char dfault, char* dest) const
   ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
   VERIFY( narrow_chars[0] != dfault );
-  for (int i = 0; i < wide.length(); ++i)
+  for (size_t i = 0; i < wide.length(); ++i)
     VERIFY( narrow_chars[i] == narrow[i] );
 }
 
index ac3b436f59001712d14891a550caebd1b61e5ab6..1e00a840a2bdd90d99ac4a3eabb476f0f447986d 100644 (file)
@@ -36,7 +36,7 @@
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = __gnu_test::try_named_locale("se_NO.UTF-8");
   const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
index 6e8d1d31e26be2ca4cf3d525c8936822529dfb4b..86ca5cc2f01c915f79d506d51acef204306094b4 100644 (file)
@@ -50,7 +50,7 @@ class gnu_ctype: public std::ctype<char_type> { };
 // Sanity check scan_is() and scan_not().
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char_type *const ca = "aaaaa";
   const char_type *const cz = "zzzzz";
index afe99f378b71570de957a34ba78adc77eec89e73..dead79ea2f672f33a681d164ca569b6224101167 100644 (file)
@@ -51,7 +51,7 @@ class gnu_ctype: public std::ctype<char_type> { };
 // Sanity check scan_is() and scan_not().
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char_type *const ca = L"aaaaa";
   const char_type *const cz = L"zzzzz";
index a337d8e5ed4328d8f76558cbb4a78aa05e9d585f..504eb89d54075d3b10961bac1d49dd5df87e5790 100644 (file)
@@ -35,19 +35,12 @@ class gnu_ctype: public std::ctype<char_type> { };
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char_type strlit00[] = "manilla, cebu, tandag PHILIPPINES";
   const char_type strlit01[] = "MANILLA, CEBU, TANDAG PHILIPPINES";
   const char_type strlit02[] = "manilla, cebu, tandag philippines";
   const char_type c00 = 'S';
   const char_type c10 = 's';
-  const char_type c20 = '9';
-  const char_type c30 = ' ';
-  const char_type c40 = '!';
-  const char_type c50 = 'F';
-  const char_type c60 = 'f';
-  const char_type c70 = 'X';
-  const char_type c80 = 'x';
 
   gnu_ctype gctype;
   char_type c100;
@@ -66,7 +59,6 @@ void test01()
   int i09 = std::ctype_base::graph;
   int i10 = std::ctype_base::print;
   int i11 = std::ctype_base::cntrl;
-  int i12 = sizeof(std::ctype_base::mask);
   VERIFY ( i01 != i02);
   VERIFY ( i02 != i03);
   VERIFY ( i03 != i04);
index 9f042abc43820170118b277b8b536f8454602009..9d446c791ca7c5f439287bebd10e6be106277777 100644 (file)
@@ -35,19 +35,12 @@ class gnu_ctype: public std::ctype<char_type> { };
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char_type strlit00[] = L"manilla, cebu, tandag PHILIPPINES";
   const char_type strlit01[] = L"MANILLA, CEBU, TANDAG PHILIPPINES";
   const char_type strlit02[] = L"manilla, cebu, tandag philippines";
   const char_type c00 = L'S';
   const char_type c10 = L's';
-  const char_type c20 = L'9';
-  const char_type c30 = L' ';
-  const char_type c40 = L'!';
-  const char_type c50 = L'F';
-  const char_type c60 = L'f';
-  const char_type c70 = L'X';
-  const char_type c80 = L'x';
 
   gnu_ctype gctype;
   char_type c100;
@@ -66,7 +59,6 @@ void test01()
   int i09 = std::ctype_base::graph;
   int i10 = std::ctype_base::print;
   int i11 = std::ctype_base::cntrl;
-  int i12 = sizeof(std::ctype_base::mask);
   VERIFY ( i01 != i02);
   VERIFY ( i02 != i03);
   VERIFY ( i03 != i04);
index f7a2c15ad862dab7f6ff2ffef75fdd36da591116..e4ac43ab6cfa04e1a9d1b2eef6d33c893cbc0c32 100644 (file)
@@ -38,8 +38,7 @@ void test01()
   using namespace std;
   typedef char wide_type;
 
-  bool test = true;
-  const char dfault = '?';
+  bool test __attribute__((unused)) = true;
   const locale loc_c = locale::classic();
   const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c); 
 
@@ -48,7 +47,7 @@ void test01()
   vector<wide_type>            wide_chars(narrow.length() + 1);
   
   // widen(char c) const
-  for (int i = 0; i < narrow.length(); ++i)
+  for (size_t i = 0; i < narrow.length(); ++i)
     {
       char c = ctype_c.widen(narrow[i]);
       VERIFY( c == wide[i] );
@@ -56,7 +55,7 @@ void test01()
 
   // widen(const char* low, const char* high, charT* dest) const
   ctype_c.widen(&narrow[0], &narrow[0] + narrow.length(), &wide_chars[0]);  
-  for (int i = 0; i < narrow.length(); ++i)
+  for (size_t i = 0; i < narrow.length(); ++i)
     VERIFY( wide_chars[i] == wide[i] );
 }
 
index 042a0b5f705e6afd7bb18eeeb2f1c854ccb1786e..7e2377475e0d593b437b00d7695b0a1f066de2eb 100644 (file)
@@ -38,8 +38,7 @@ void test01()
   using namespace std;
   typedef wchar_t wide_type;
 
-  bool test = true;
-  const char dfault = '?';
+  bool test __attribute__((unused)) = true;
   const locale loc_c = locale::classic();
   const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c); 
 
@@ -48,7 +47,7 @@ void test01()
   vector<wide_type>            wide_chars(narrow.length() + 1);
   
   // widen(char c) const
-  for (int i = 0; i < narrow.length(); ++i)
+  for (size_t i = 0; i < narrow.length(); ++i)
     {
       char c = ctype_c.widen(narrow[i]);
       VERIFY( c == wide[i] );
@@ -56,7 +55,7 @@ void test01()
 
   // widen(const char* low, const char* high, charT* dest) const
   ctype_c.widen(&narrow[0], &narrow[0] + narrow.length(), &wide_chars[0]);  
-  for (int i = 0; i < narrow.length(); ++i)
+  for (size_t i = 0; i < narrow.length(); ++i)
     VERIFY( wide_chars[i] == wide[i] );
 }
 
index 6f9dec45d3c1eba2ca259d305d736acb71ec361c..0cb05dd930a892e994fbea3d7917c5208f9d56bd 100644 (file)
@@ -36,7 +36,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
   const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
index d9b32b0a6cb6942ce797005a4b1c008d1d21bfaf..8d6f1f3c7ae78ffdeb93d4c39e2e0d0d8875b612 100644 (file)
@@ -36,7 +36,7 @@
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = __gnu_test::try_named_locale("se_NO.UTF-8");
   const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
index f93265bd7d1a7f29d4e5f3302bed092bb17b94b7..83609561cc3824e297b6ca6b80f07fbf2428c10a 100644 (file)
@@ -172,7 +172,7 @@ std::locale::id gnu_facet::id;
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string name_no("*");
   const std::string name_c("C");
 
index 844eb7b3d24518045c4e90c34cd58e396aea8861..f3059ee05b7f41f663bae6b7e2be68ce1e6305d9 100644 (file)
@@ -46,7 +46,7 @@ typedef surf facet_type;
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // 1: Destroyed when out of scope.
   VERIFY( counter == 0 );
index 49886aa18bf0e89edc8c19664d22e66d993af383..c82c4d3c77ffa68b272e28854c97e30415784682 100644 (file)
@@ -32,7 +32,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // construct a locale object with the C facet
   const locale&        cloc = locale::classic();
@@ -45,17 +45,17 @@ void test01()
   VERIFY( has_facet<gnu_codecvt>(loc) );
 
   try 
-    { const ccodecvt& cvt01 = use_facet<ccodecvt>(cloc); }
+    { const ccodecvt& cvt01 __attribute__((unused)) = use_facet<ccodecvt>(cloc); }
   catch(...)
     { VERIFY( false ); }
 
   try
-    { const gnu_codecvt& cvt02 = use_facet<gnu_codecvt>(loc); } 
+    { const gnu_codecvt& cvt02 __attribute__((unused)) = use_facet<gnu_codecvt>(loc); } 
   catch(...)
     { VERIFY( false ); }
 
   try 
-    { const ccodecvt& cvt03 = use_facet<gnu_codecvt>(cloc); }
+    { const ccodecvt& cvt03 __attribute__((unused)) = use_facet<gnu_codecvt>(cloc); }
   catch(bad_cast& obj)
     { VERIFY( true ); }
   catch(...)
index e49756f18fd3ed5d1bad22c9b186a89e965a2b44..af51d3313d602593160ea0f915db83cc1c4cb4e1 100644 (file)
@@ -110,7 +110,7 @@ void test01()
   typedef __enc_traits                         enc_type;
   typedef codecvt<int_type, ext_type, enc_type>        unicode_codecvt;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string str1, str2;
 
   // construct a locale object with the C facet
index e450441816eb98f1163e8a8403277fde5b34e7ae..9343535a8ad5bd68bdfad588fd9a2930ded17995 100644 (file)
@@ -28,7 +28,7 @@
 // libstdc++/7811
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 #ifdef _GLIBCXX_HAVE_SETENV 
   const char* LC_ALL_orig = getenv("LC_ALL");
   if (!setenv("LC_ALL", "it_IT", 1))
index 5492a0ce723ef48ff8561a667f3e5a50c3fa5683..697b4a49c677be6056bfa6e800624db53c58977f 100644 (file)
@@ -28,7 +28,7 @@
 // More tests for locale("") == POSIX locale::name. 
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
 
 #ifdef _GLIBCXX_HAVE_SETENV
index 6b11ac1e9a109d0908d8ebd39bbea0f7b8f11190..07682e5b60a4cd8eeed0708e9e47435a95c326f4 100644 (file)
@@ -29,7 +29,7 @@ void
 test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const string name_c("C");
   const string str_unnamed("*");
   string str;
@@ -46,10 +46,6 @@ test01()
   VERIFY( has_facet<numpunct<char> >(loc_1) );
   VERIFY( has_facet<numpunct<char> >(loc_c) );
   
-  // extract facet
-  const numpunct<char>&        f_nump_1 = use_facet<numpunct<char> >(loc_1); 
-  const numpunct<char>&        f_nump_c = use_facet<numpunct<char> >(loc_c); 
-
   // attempt to re-synthesize classic locale
   locale               loc_2 = loc_1.combine<numpunct<char> >(loc_c);
   VERIFY( loc_2.name() == str_unnamed );
index ffcd3ab943a55b900498b89dc0ccd5e193d7d11e..8b4aafe14f44407c4c91c321159e94b59632d24a 100644 (file)
@@ -28,7 +28,7 @@ void
 test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const string name_c("C");
   const string name_no("*");
   string str;
index 003462441ee4d410a1ab7975199c0f5b805f7373..ce7b2695ee8e3f086845968dcbde3b85b76c17da 100644 (file)
@@ -28,7 +28,7 @@
 // libstdc++/7222
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::locale loc_c1("C");
   std::locale loc_c2("C");
index 8bd9c4ace2a986ca90133ad57d3a2478e09b5261..4524a070b7a40650899372d2b2fe39e936765c0c 100644 (file)
@@ -28,7 +28,7 @@
 // libstdc++/7222
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::locale loc_1 = __gnu_test::try_named_locale("");
   std::locale loc_2 = __gnu_test::try_named_locale("");
index 433fc1fe9ba1fd7c91b821d6bc20e7836077f481..5d4fd272f99994659feac681ddc214e1e31bb212 100644 (file)
@@ -28,7 +28,7 @@ void
 test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const locale l1("C");
   const locale l2 =
index 3d2c931ec6d81c538f1ee1c9227033d8ef0e7b23..e5524dd04c9cf103a2a115c754611bf45c779b63 100644 (file)
@@ -30,7 +30,7 @@ class gnu_codecvt: public ccodecvt { };
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   string str1, str2;
 
index 81b06ee0ecddd32d97c246d1d929ad18f6150d1e..653eaaf99d6d9687cfb7b6d6bcb306cc1b4d8ea5 100644 (file)
@@ -28,7 +28,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   const string ph("en_PH");
   const string mx("es_MX");
index 87d8193051ea57d869d42f2836d580fba8644e5f..5e3ecedee42501c6fb08a59e66811006847b0d23 100644 (file)
@@ -43,7 +43,7 @@ typedef surf facet_type;
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   string name;
   locale global_orig;
index 8fe6aa7ea3d10dd689657dc974c98e7cd26ca2c2..003da9a35d496aad3e282911fa0e81a69caee90e 100644 (file)
@@ -31,7 +31,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string str1, str2;
 
   // construct a locale object with the C facet
index ed06e10a6359e30258bf7bcb4a13b22bc0f8fb9d..aa5db2ac520f2f089bd382a70da02a89be98fc1c 100644 (file)
@@ -38,7 +38,7 @@ protected:
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   // Sanity check.
   locale loc_c = locale::classic();
index 6eb593239b13b1e8fe4d00933534a1678132198c..c1281eda3ac50da92bacb558f5c30c582d8a9366 100644 (file)
@@ -30,8 +30,8 @@ void test01()
   typedef std::locale::facet base_type1;
   typedef std::messages_base base_type2;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type1* base1 = &obj;
-  const base_type2* base2 = &obj;
+  const base_type1* base1 __attribute__((unused)) = &obj;
+  const base_type2* base2 __attribute__((unused)) = &obj;
 
   // Check for required typedefs
   typedef test_type::char_type char_type;
index 5b360b15a21d95193f2a2f83c9b93e9b2f4cd2e5..9a3a1c93ab181a2dcb663ba73414313d1127445b 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::messages<char>::catalog catalog;
   typedef std::messages<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   // This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
   const char* dir = LOCALEDIR;
 
@@ -44,9 +44,6 @@ void test01()
   VERIFY( loc_de != loc_fr );
 
   // cache the messages facets
-  const messages<char>& mssg_c = use_facet<messages<char> >(loc_c); 
-  const messages<char>& mssg_us = use_facet<messages<char> >(loc_us); 
-  const messages<char>& mssg_fr = use_facet<messages<char> >(loc_fr); 
   const messages<char>& mssg_de = use_facet<messages<char> >(loc_de); 
 
   // catalog open(const string&, const locale&) const;
index 389d3721a1bb667c973fb2988a0f32e709040c71..c9cae5053f37b8498222c5415967ac8b773656b5 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   typedef std::messages<char>::catalog catalog;
   typedef std::messages<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   // This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
   const char* dir = LOCALEDIR;
 
@@ -44,10 +44,7 @@ void test02()
   VERIFY( loc_de != loc_fr );
 
   // cache the messages facets
-  const messages<char>& mssg_c = use_facet<messages<char> >(loc_c); 
-  const messages<char>& mssg_us = use_facet<messages<char> >(loc_us); 
   const messages<char>& mssg_fr = use_facet<messages<char> >(loc_fr); 
-  const messages<char>& mssg_de = use_facet<messages<char> >(loc_de); 
 
   // catalog open(const string&, const locale&) const;
   // string_type get(catalog, int, int, const string_type& ) const; 
index d4abacc99ed220f296106dfe490c189a154710c5..8d00eb5a88284a2a71f571c773245e0973ddf077 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   typedef std::messages<char>::catalog catalog;
   typedef std::messages<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   // This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
   const char* dir = LOCALEDIR;
 
@@ -44,10 +44,8 @@ void test03()
   VERIFY( loc_de != loc_fr );
 
   // cache the messages facets
-  const messages<char>& mssg_c = use_facet<messages<char> >(loc_c); 
   const messages<char>& mssg_us = use_facet<messages<char> >(loc_us); 
   const messages<char>& mssg_fr = use_facet<messages<char> >(loc_fr); 
-  const messages<char>& mssg_de = use_facet<messages<char> >(loc_de); 
 
   // catalog open(const string&, const locale&) const;
   // string_type get(catalog, int, int, const string_type& ) const; 
index cc8860bef9dee6de6cc014f0331f9519594ebe91..3072383a9883b5013d3c248d2feee6650bf2011e 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::messages<char>::catalog catalog;
   typedef std::messages<char>::string_type string_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string str;
   // This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
   const char* dir = LOCALEDIR;
index 86fcd18b5016a08dbf37df6a687a8d095c7af17f..f3b7232f6302efc6d353633eb0abb5ff066fddeb 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::money_get<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index ed0d19e46ec6c352ebb0292a7c1ad21abdc287be..39dca1df9091dd59c50a0b9021441d672ac1f71e 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
index c4f00f7add989cb5f0121228b9851c839bbe0bc1..17825d546b226f97c45a2d63eeefbe0dda7b03d7 100644 (file)
@@ -27,7 +27,7 @@ void test01()
   using namespace std;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc_us = __gnu_test::try_named_locale("en_US");
 
index ddb2c3f5d6fb618c09eee7e2bfedd4f8114b1bcd..422a53340eb82a8bd20119b8b44c9626c4bd8349 100644 (file)
@@ -32,7 +32,7 @@ void test02()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
index 91ca66fb64cc81ed4a8d95e2f5ea8622b8fc34d6..5904ee112d878e5fa9404e65dfe9f96d397f8c84 100644 (file)
@@ -32,7 +32,7 @@ void test03()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test03()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
@@ -60,12 +54,6 @@ void test03()
   // total EPA budget FY 2002
   const long double  digits1 = 720000000000.0;
 
-  // est. cost, national missile "defense", expressed as a loss in USD 2001
-  const long double digits2 = -10000000000000.0;  
-
-  // input less than frac_digits
-  const long double digits4 = -1.0;
-  
   iterator_type end;
   istringstream iss;
   iss.imbue(loc_de);
index d3c8359b528036549d181cc75a8e736cc6e7f9c1..a80060aebe0a4d344536183860fa95b3c6007af1 100644 (file)
@@ -32,7 +32,7 @@ void test04()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,22 +47,10 @@ void test04()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
 
-  // total EPA budget FY 2002
-  const long double  digits1 = 720000000000.0;
-
-  // est. cost, national missile "defense", expressed as a loss in USD 2001
-  const long double digits2 = -10000000000000.0;  
-
   // input less than frac_digits
   const long double digits4 = -1.0;
   
index f886c887ebdc0fd1758a2d8f2518729cd8f99a62..e51d4464de504b3b70886c4ab650e4b76a75b0d4 100644 (file)
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check money_get works with other iterators besides streambuf
   // input iterators.
   typedef string::const_iterator iter_type;
   typedef money_get<char, iter_type> mon_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
   const string str = "0.01Eleanor Roosevelt";
index f9afb1e1fa4ac7b5c7f996f0db77054aadeded5f..8c03e8245ffcc18cedac164272f40512215f431b 100644 (file)
@@ -54,7 +54,7 @@ void test06()
   using namespace std;
   typedef istreambuf_iterator<char> InIt;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc(locale::classic(), new My_money_io);
 
index f275d4e59d43ef567524186fe85b9b53314bc2c7..c21a9dfad747ac2e66b3c047cfebe77fb19f44f1 100644 (file)
@@ -30,7 +30,7 @@
 void test07()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef istreambuf_iterator<char> InIt;
   InIt iend1, iend2, iend3;
index 8c811e99a635568dba075bcbeb0eeb70f0a582fd..01a93381557d9ef795cb16ff631f67d80f8bc328 100644 (file)
@@ -68,7 +68,7 @@ void test08()
   typedef istreambuf_iterator<char> InIt;
 
   bool intl = false;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   ios_base::iostate err;
 
   locale loc_a(locale::classic(), new My_money_io_a);
index a3965f79a6a1b1d10e2e049f93add944a66b47e8..0a7f90b63663696124c345e60da67c6eccfdc159 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
index 5c0036162fc598fa625e23b9b17ca3afad52045c..8649db41187890b7ce46b46c8148853ee787dcfe 100644 (file)
@@ -27,7 +27,7 @@ void test01()
   using namespace std;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc_us = __gnu_test::try_named_locale("en_US");
 
index a3959df321850ad454a424680ae374fa16fcd07e..f59cef7a9294b112ac34383035f4c2062808a5cc 100644 (file)
@@ -32,7 +32,7 @@ void test02()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
index 2883e7a4d434663504072423d39113a9a82a4fc5..d0c8b06b6f331ceb0d6d63aafca2cfd01606649c 100644 (file)
@@ -32,7 +32,7 @@ void test03()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,24 +47,12 @@ void test03()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
 
   // total EPA budget FY 2002
   const long double  digits1 = 720000000000.0;
-
-  // est. cost, national missile "defense", expressed as a loss in USD 2001
-  const long double digits2 = -10000000000000.0;  
-
-  // input less than frac_digits
-  const long double digits4 = -1.0;
   
   iterator_type end;
   wistringstream iss;
index 94c27aa7cf9443b5ab868a4cc46de501f01ef92a..8861ce46cf557b5fafaf361463e3bfc2971e4ebf 100644 (file)
@@ -32,7 +32,7 @@ void test04()
   typedef money_base::pattern pattern;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,22 +47,10 @@ void test04()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
 
-  // total EPA budget FY 2002
-  const long double  digits1 = 720000000000.0;
-
-  // est. cost, national missile "defense", expressed as a loss in USD 2001
-  const long double digits2 = -10000000000000.0;  
-
   // input less than frac_digits
   const long double digits4 = -1.0;
   
index fd0c53ef3136218e0cf3c7a8f025aa1a5a759e76..89b724c0307cce66ea0ce13ddbe1466acc055ea7 100644 (file)
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check money_get works with other iterators besides streambuf
   // input iterators.
   typedef wstring::const_iterator iter_type;
   typedef money_get<wchar_t, iter_type> mon_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
   const wstring str = L"0.01Eleanor Roosevelt";
index 0015cd92ca6034f2cd9bfb2a7515150c629a49f8..5d40fab761fefa4c574730c0502ac723ef26aec1 100644 (file)
@@ -54,7 +54,7 @@ void test06()
   using namespace std;
   typedef istreambuf_iterator<wchar_t> InIt;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc(locale::classic(), new My_money_io);
 
index bf8615f1748e79f049c0eeee94aaa5eafbcca724..c9cf0662e25ef69888e998c017295411274597b5 100644 (file)
@@ -30,7 +30,7 @@
 void test07()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef istreambuf_iterator<wchar_t> InIt;
   InIt iend1, iend2, iend3;
index ab1de4d3e100fe87b28d67504f797d633a1074ab..aeaa257378055781bf3b5099d8b74611f50d380a 100644 (file)
@@ -68,7 +68,7 @@ void test08()
   typedef istreambuf_iterator<wchar_t> InIt;
 
   bool intl = false;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   ios_base::iostate err;
 
   locale loc_a(locale::classic(), new My_money_io_a);
index e4f27c723db60b28662d3a4a58451a6acf286aba..ed6c58c54087eb11a7047b5dea84418aa12e6b20 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::money_put<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index 12192f5bcabd878143429a8fdfc8b391aa0e1e6e..2692bb4d196d90c4121f24b5f542875bfb459b29 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef money_base::pattern pattern;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
index 044ea1174bce5415a848f018cd7c60b3f21247d8..35882b64d5d1ec1686e63622718b01eb8c4a4707 100644 (file)
@@ -32,7 +32,7 @@ void test02()
   typedef money_base::pattern pattern;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
index ead1aff1b724a7f0eee2510adaff5545cd5b84b1..1a1ca33d7a94a7a37f11b190b919109cb1c3dc0f 100644 (file)
@@ -32,7 +32,7 @@ void test03()
   typedef money_base::pattern pattern;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,24 +47,12 @@ void test03()
   // cache the moneypunct facets
   typedef moneypunct<char, true> __money_true;
   typedef moneypunct<char, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
 
   // total EPA budget FY 2002
   const long double  digits1 = 720000000000.0;
-
-  // est. cost, national missile "defense", expressed as a loss in USD 2001
-  const long double digits2 = -10000000000000.0;  
-
-  // input less than frac_digits
-  const long double digits4 = -1.0;
   
   // cache the money_put facet
   ostringstream oss;
index 4d4518fb77676c26ba5a69a0b8348763f7970f23..0790ac60f4a37bf278b6883d85867787956a6b84 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check money_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef string::iterator iter_type;
   typedef money_put<char, iter_type> mon_put_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
   // woman, art, thief (stole the blues)
index 86a006d00231ac9d4fad6329b321bb2aa0e18fe4..4554d72c8d5312483dac8a337fc6890b3bebdff2 100644 (file)
@@ -45,7 +45,7 @@ struct My_money_io : public std::moneypunct<char,false>
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef ostreambuf_iterator<char> OutIt;
 
   locale loc(locale::classic(), new My_money_io);
index b663d76bbe2212161855f723a8499d58be283eb8..5177c76744a25d823027e90bfbc097c5e34fc231 100644 (file)
@@ -34,7 +34,7 @@ struct My_money_io_2 : public std::moneypunct<char,false>
 void test06()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef ostreambuf_iterator<char> OutIt;
 
   locale loc(locale::classic(), new My_money_io_2);
index 942589bb540b4b53003b6ea205864a2a8df4185c..f8f97fa691a3f1318bfe35b6e987cea7e0feb894 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef money_base::pattern pattern;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
index 2f32240bd3f6ed8a8bd0702168577c3777597cf4..f0e7ea1aabe321897e32ee7ab461424183ebdb43 100644 (file)
@@ -32,7 +32,7 @@ void test02()
   typedef money_base::pattern pattern;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
index de5f5db79d631860d2f5dbdaa6663eb1e1fcb585..cd79e54d66d5087288e704dd825bd7fc4d90605a 100644 (file)
@@ -32,7 +32,7 @@ void test03()
   typedef money_base::pattern pattern;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -47,24 +47,12 @@ void test03()
   // cache the moneypunct facets
   typedef moneypunct<wchar_t, true> __money_true;
   typedef moneypunct<wchar_t, false> __money_false;
-  const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c); 
-  const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c); 
-  const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de); 
-  const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk); 
-  const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk); 
 
   // sanity check the data is correct.
   const wstring empty;
 
   // total EPA budget FY 2002
   const long double  digits1 = 720000000000.0;
-
-  // est. cost, national missile "defense", expressed as a loss in USD 2001
-  const long double digits2 = -10000000000000.0;  
-
-  // input less than frac_digits
-  const long double digits4 = -1.0;
   
   // cache the money_put facet
   wostringstream oss;
index 397fd2ea7fe532c3943b19100d94fabf057b10c5..d288dee60abd149a4e81541e2a9ab6bd3262981c 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check money_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef wstring::iterator iter_type;
   typedef money_put<wchar_t, iter_type> mon_put_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
   // woman, art, thief (stole the blues)
index aa5a18c93d9071b849fe4ebc8a9d849f26b49465..40b4092eb5fb149207edcf5517552d68df8c2794 100644 (file)
@@ -45,7 +45,7 @@ struct My_money_io : public std::moneypunct<wchar_t,false>
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef ostreambuf_iterator<wchar_t> OutIt;
 
   locale loc(locale::classic(), new My_money_io);
index d92619c554df5d3f955c3e660aaa532a7dda15e2..255aa6e56fc11d0865062c6953a3eab45908bac5 100644 (file)
@@ -34,7 +34,7 @@ struct My_money_io_2 : public std::moneypunct<wchar_t,false>
 void test06()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef ostreambuf_iterator<wchar_t> OutIt;
 
   locale loc(locale::classic(), new My_money_io_2);
index 6ab09c61a6139660ea3458669554b3a02848fade..d74b1d69b4d94da257744f6702be016409486ce6 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef std::moneypunct<char, true> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index edfefbbf89b16dddbe804f85fbcf3fe3cebbdd71..e00a427a2becd659e9f654a6ca9a625ebed97fe7 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef std::moneypunct<char, false> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index c8d7b9949040f2a9ff89d8e138b82ab6294e581b..7c8ca599f62577fa3a1f15bc93b9c980a6f07da8 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef money_base::part part;
   typedef money_base::pattern pattern;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
index 833995ba35ab1a28622b2a652e571ae52de9b888..70e4516d0ff780b23b37e89cc673fff7fbcb9a8f 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef money_base::part part;
   typedef money_base::pattern pattern;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -42,7 +42,6 @@ void test02()
   const __money_true& monp_c_t = use_facet<__money_true>(loc_c); 
   const __money_false& monp_c_f = use_facet<__money_false>(loc_c); 
   const __money_true& monp_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monp_de_f = use_facet<__money_false>(loc_de); 
 
   // quick sanity check for data.
   char q1 = monp_c_t.decimal_point();
index 7f0d017bf1d3ff50fdd8edc822d2657aaa4c1ff8..2d26611c6465557abd61d3d888d71956bc35f500 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef money_base::part part;
   typedef money_base::pattern pattern;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
index d3bbc39da18a8b334863140510c9d43af19eb0c3..dc1d9706123d657057d1d628349e97e259d54642 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef money_base::part part;
   typedef money_base::pattern pattern;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -42,7 +42,6 @@ void test02()
   const __money_true& monp_c_t = use_facet<__money_true>(loc_c); 
   const __money_false& monp_c_f = use_facet<__money_false>(loc_c); 
   const __money_true& monp_de_t = use_facet<__money_true>(loc_de); 
-  const __money_false& monp_de_f = use_facet<__money_false>(loc_de); 
 
   // quick sanity check for data.
   wchar_t q1 = monp_c_t.decimal_point();
index ea0857a5736e8ef41810ea64eb71fc41f6b92b20..2cdef4b1abc1385ebf6a8b82c72333d7ded7a706 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef money_base::part part;
   typedef money_base::pattern pattern;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string str;
 
   locale loc_de = __gnu_test::try_named_locale("de_DE");
index 4a3ced974cf162a339690917828e2204f5f3d26c..a9081bbf5704fe324c7c6494876823b63a9fcc6c 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::num_get<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index 190f9921aefd3460a8eb2047d9246a9cca8dd222..e42e7b4ce744d438e13d4463102b1dc910c25d7f 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   using namespace std;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,20 +41,11 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); 
-  const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); 
-  const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); 
-
   // sanity check the data is correct.
   const string empty;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
-  long l;
   unsigned long ul1 = 1294967294;
   unsigned long ul2 = 0;
   unsigned long ul;
@@ -62,7 +53,6 @@ void test01()
   double d2 = 3.15e-308;
   double d;
   long double ld1 = 6.630025e+4;
-  long double ld2 = 0.0;
   long double ld;
   void* v;
   const void* cv = &ul2;
@@ -148,7 +138,6 @@ void test01()
 
 #ifdef _GLIBCXX_USE_LONG_LONG
   long long ll1 = 9223372036854775807LL;
-  long long ll2 = -9223372036854775807LL;
   long long ll;
 
   iss.str("9.223.372.036.854.775.807");
index 8d0ce69e2547c118eb47fe12cd52773a18b7ad0e..35200f8762fa85e4539022dbefef77efb28b8e1f 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   using namespace std;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,31 +41,17 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); 
-  const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); 
-  const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); 
-
   // sanity check the data is correct.
   const string empty;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
-  long l;
   unsigned long ul1 = 1294967294;
   unsigned long ul2 = 0;
   unsigned long ul;
   double d1 =  1.02345e+308;
   double d2 = 3.15e-308;
   double d;
-  long double ld1 = 6.630025e+4;
-  long double ld2 = 0.0;
-  long double ld;
-  void* v;
-  const void* cv = &ul2;
 
   // cache the num_get facet
   istringstream iss;
index 43e16c2d2c4e1bac1b3155870d0bc8e80b1b6cd5..8048dd39a7508caa08042e4102f9eaa2b35f5213 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   using namespace std;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,38 +41,18 @@ void test03()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); 
-  const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); 
-  const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); 
-
   // sanity check the data is correct.
   const string empty;
-  char c;
 
-  bool b1 = true;
-  bool b0 = false;
   long l1 = 2147483647;
   long l2 = -2147483647;
   long l;
-  unsigned long ul1 = 1294967294;
-  unsigned long ul2 = 0;
-  unsigned long ul;
-  double d1 =  1.02345e+308;
-  double d2 = 3.15e-308;
-  double d;
-  long double ld1 = 6.630025e+4;
-  long double ld2 = 0.0;
-  long double ld;
-  void* v;
-  const void* cv = &ul2;
 
   // cache the num_get facet
   istringstream iss;
   iss.imbue(loc_hk);
   const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc()); 
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = ios_base::goodbit;
 
   // HK
index aed5fcb437090591b52b34260795655a3249d8d6..f7c4cb044dc86b87b8f32f944e1e4cd38b17a012 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check num_get works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef string::const_iterator iter_type;
   typedef num_get<char, iter_type> num_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = ios_base::goodbit;
   const locale loc_c = locale::classic();
   const string str("20000106 Elizabeth Durack");
index e170931d060a086c1c9037f5a316a58d8eacf1cd..ad43c9d79cf702a0e2d8da64cf9f7172603ac9d5 100644 (file)
@@ -29,7 +29,7 @@ void test05()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   unsigned long ul;
 
index 52722d1acb899a8a4cc9210e862c54921245bf6c..ccf51d3dbd610677302ee354a37a21c7e43c5f83 100644 (file)
@@ -28,7 +28,7 @@
 void test06()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   double d = 0.0;
 
index 952651d883ca2eac1ee6490e277f08ba44cb3ae9..79fc4291c1cdc8808fa8a2737b3da092c6881d6b 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   using namespace std;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,20 +41,11 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); 
-  const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); 
-
   // sanity check the data is correct.
   const wstring empty;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
-  long l;
   unsigned long ul1 = 1294967294;
   unsigned long ul2 = 0;
   unsigned long ul;
@@ -62,7 +53,6 @@ void test01()
   double d2 = 3.15e-308;
   double d;
   long double ld1 = 6.630025e+4;
-  long double ld2 = 0.0;
   long double ld;
   void* v;
   const void* cv = &ul2;
@@ -147,7 +137,6 @@ void test01()
 
 #ifdef _GLIBCXX_USE_LONG_LONG
   long long ll1 = 9223372036854775807LL;
-  long long ll2 = -9223372036854775807LL;
   long long ll;
 
   iss.str(L"9.223.372.036.854.775.807");
index 6f52860f3bfef2dcc34215d319ab773bd891ee0a..ec1b338b1da0d795ebc70a4c08e78414008ed937 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   using namespace std;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,31 +41,17 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); 
-  const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); 
-
   // sanity check the data is correct.
   const wstring empty;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
-  long l;
   unsigned long ul1 = 1294967294;
   unsigned long ul2 = 0;
   unsigned long ul;
   double d1 =  1.02345e+308;
   double d2 = 3.15e-308;
   double d;
-  long double ld1 = 6.630025e+4;
-  long double ld2 = 0.0;
-  long double ld;
-  void* v;
-  const void* cv = &ul2;
 
   // cache the num_get facet
   wistringstream iss;
index 3a775682a2b9784f9ff9959396ec560e5b8bfa58..fbe887bee908372eb46b03b8ad5b8f2174d294c4 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   using namespace std;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,38 +41,18 @@ void test03()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); 
-  const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); 
-
   // sanity check the data is correct.
   const wstring empty;
-  char c;
 
-  bool b1 = true;
-  bool b0 = false;
   long l1 = 2147483647;
   long l2 = -2147483647;
   long l;
-  unsigned long ul1 = 1294967294;
-  unsigned long ul2 = 0;
-  unsigned long ul;
-  double d1 =  1.02345e+308;
-  double d2 = 3.15e-308;
-  double d;
-  long double ld1 = 6.630025e+4;
-  long double ld2 = 0.0;
-  long double ld;
-  void* v;
-  const void* cv = &ul2;
 
   // cache the num_get facet
   wistringstream iss;
   iss.imbue(loc_hk);
   const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc()); 
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = ios_base::goodbit;
 
   // HK
index f23aa0f1555cd0fef48e59cc43e8c2b8ec03d5e7..9b956571d02fea39da3c6ee065d555bc67057aa0 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check num_get works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef wstring::const_iterator iter_type;
   typedef num_get<wchar_t, iter_type> num_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = ios_base::goodbit;
   const locale loc_c = locale::classic();
   const wstring str(L"20000106 Elizabeth Durack");
index 09f12be587bd6972f7e6ea9b3f65c49ee44d9529..618b74ceaa0d1fbc0d27f81b5e79af019b59ec91 100644 (file)
@@ -29,7 +29,7 @@ void test05()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   unsigned long ul;
 
index e2aeb184b235ad60f417dad1545848d0f9c4b550..fac26fe173aac99a24c3ceeb0aa0516e039f46b5 100644 (file)
@@ -28,7 +28,7 @@
 void test06()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   double d = 0.0;
 
index 2dabe86d8304efde40a23846094d6bb72efe002d..b520007f740fd98ff4e58c1459f4670c7e70f6ed 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::num_put<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index cc1759129c690acb5e339af30d757e34f58cfb4c..879337a0d6252d86692ac0c78854e618bd0dbd84 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -42,22 +42,16 @@ void test01()
   VERIFY( loc_de != loc_fr );
 
   // cache the numpunct facets
-  const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); 
   const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); 
-  const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); 
 
   // sanity check the data is correct.
   const string empty;
   string result1;
   string result2;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
   unsigned long ul1 = 1294967294;
-  unsigned long ul2 = 0;
   double d1 =  1.7976931348623157e+308;
   double d2 = 2.2250738585072014e-308;
   long double ld1 = 1.7976931348623157e+308;
@@ -157,7 +151,6 @@ void test01()
 
 #ifdef _GLIBCXX_USE_LONG_LONG
   long long ll1 = 9223372036854775807LL;
-  long long ll2 = -9223372036854775807LL;
 
   oss.str(empty);
   oss.clear();
index 5f783320c5f1fa362c78b72cb87f4dd5497e2d93..6b6eb3e3f12293c17bbda3a112fbee69f79d9e02 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,28 +41,15 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); 
-  const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); 
-  const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); 
-
   // sanity check the data is correct.
   const string empty;
   string result1;
   string result2;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
   unsigned long ul1 = 1294967294;
   unsigned long ul2 = 0;
-  double d1 =  1.7976931348623157e+308;
-  double d2 = 2.2250738585072014e-308;
-  long double ld1 = 1.7976931348623157e+308;
-  long double ld2 = 2.2250738585072014e-308;
-  const void* cv = &ld1;
 
   // cache the num_put facet
   ostringstream oss;
index cae87474f298a25f8da066f0fff2d4e6b0ea7824..064e2d79dcb73cc0e155467ca7a7165f8f3fa5a8 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,28 +41,13 @@ void test03()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); 
-  const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); 
-  const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); 
-
   // sanity check the data is correct.
   const string empty;
   string result1;
   string result2;
-  char c;
 
-  bool b1 = true;
-  bool b0 = false;
   long l1 = 2147483647;
   long l2 = -2147483647;
-  unsigned long ul1 = 1294967294;
-  unsigned long ul2 = 0;
-  double d1 =  1.7976931348623157e+308;
-  double d2 = 2.2250738585072014e-308;
-  long double ld1 = 1.7976931348623157e+308;
-  long double ld2 = 2.2250738585072014e-308;
-  const void* cv = &ld1;
 
   // cache the num_put facet
   ostringstream oss;
index 7ce358311fef6ee8f8508189d1ea26e2363fcd70..e7b139b0270fe197c95faa01c963684bba9a0f85 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check num_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef string::iterator iter_type;
   typedef char_traits<char> traits;
   typedef num_put<char, iter_type> num_put_type;
-  const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   const locale loc_c = locale::classic();
   const string str("1798 Lady Elgin");
   const string str2("0 true 0xbffff74c Mary Nisbet");
index ce590ea57e81e4075d5efab920bc82c31fa530a0..467ecf9e43f48a770dc994c5f537bd9604e6fa21 100644 (file)
@@ -30,7 +30,7 @@
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // A locale that expects grouping.
   locale loc_de = __gnu_test::try_named_locale("de_DE");
index 3cc550710bb17f31153e76a55a8b611aa343b1f9..4675fc421113252f17c19b217977d385ae749580 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   ostringstream oss1, oss2;
   const num_put<char>& np1 = use_facet<num_put<char> >(oss1.getloc());
index d5586cc3adae8c51ce9b49482f82ea793faa70f8..8299be9d8ab912812906fb4c5964c2a4ad1fd630 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef num_put<char> np_t;
 
index 379a1379d5105700d02a87760870389543cf8738..86a02a6e4083bb30c1764a0f503bf5030118f69e 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -42,22 +42,16 @@ void test01()
   VERIFY( loc_de != loc_fr );
 
   // cache the numpunct facets
-  const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); 
-  const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); 
-
+  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de);
   // sanity check the data is correct.
   const wstring empty;
   wstring result1;
   wstring result2;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
   unsigned long ul1 = 1294967294;
-  unsigned long ul2 = 0;
   double d1 =  1.7976931348623157e+308;
   double d2 = 2.2250738585072014e-308;
   long double ld1 = 1.7976931348623157e+308;
@@ -157,7 +151,6 @@ void test01()
 
 #ifdef _GLIBCXX_USE_LONG_LONG
   long long ll1 = 9223372036854775807LL;
-  long long ll2 = -9223372036854775807LL;
 
   oss.str(empty);
   oss.clear();
index 30faf63f64975a0b3faec2c3fef9c5548d0d33b3..563bf96c8257de816712918141f547fafcc83e42 100644 (file)
@@ -29,7 +29,7 @@ void test02()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,28 +41,15 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); 
-  const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); 
-
   // sanity check the data is correct.
   const wstring empty;
   wstring result1;
   wstring result2;
-  char c;
 
   bool b1 = true;
   bool b0 = false;
-  long l1 = 2147483647;
-  long l2 = -2147483647;
   unsigned long ul1 = 1294967294;
   unsigned long ul2 = 0;
-  double d1 =  1.7976931348623157e+308;
-  double d2 = 2.2250738585072014e-308;
-  long double ld1 = 1.7976931348623157e+308;
-  long double ld2 = 2.2250738585072014e-308;
-  const void* cv = &ld1;
 
   // cache the num_put facet
   wostringstream oss;
index 5115355969fc2bfcd5f25239801404aa63f1e833..3c4728ce46c744a47378fe66b65cc9824c102118 100644 (file)
@@ -29,7 +29,7 @@ void test03()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,28 +41,13 @@ void test03()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the numpunct facets
-  const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); 
-  const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); 
-
   // sanity check the data is correct.
   const wstring empty;
   wstring result1;
   wstring result2;
-  char c;
 
-  bool b1 = true;
-  bool b0 = false;
   long l1 = 2147483647;
   long l2 = -2147483647;
-  unsigned long ul1 = 1294967294;
-  unsigned long ul2 = 0;
-  double d1 =  1.7976931348623157e+308;
-  double d2 = 2.2250738585072014e-308;
-  long double ld1 = 1.7976931348623157e+308;
-  long double ld2 = 2.2250738585072014e-308;
-  const void* cv = &ld1;
 
   // cache the num_put facet
   wostringstream oss;
index 1057a85f42d30ee70fd773c369c436d1ee1c4892..3fc65175492e859f2b4f33309cf3dac7d464440d 100644 (file)
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check num_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
   typedef wstring::iterator iter_type;
   typedef char_traits<wchar_t> traits;
   typedef num_put<wchar_t, iter_type> num_put_type;
-  const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   const locale loc_c = locale::classic();
   const wstring str(L"1798 Lady Elgin");
   const wstring str2(L"0 true 0xbffff74c Mary Nisbet");
index ea9e39f231b9b5425da0d7c6ce380ee3964bdfc9..51bcbff6c86f9729fc0c6f05ffc4439c7a4013f8 100644 (file)
@@ -30,7 +30,7 @@
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // A locale that expects grouping.
   locale loc_de = __gnu_test::try_named_locale("de_DE");
index 01733603cfc1a9970c0db9cb9640b851de2783b5..88ceb0d97827cac556ee1f39cfd3d162f40ba5b8 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wostringstream woss1, woss2;
   const num_put<wchar_t>& np1 = use_facet<num_put<wchar_t> >(woss1.getloc());
index 3b181456f2977065e2ca826e429c8f4c6809c0f2..d8cee64f68fd5ece95c8daeead6fccbba2c0572c 100644 (file)
@@ -27,7 +27,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef num_put<wchar_t> npw_t;
 
index f2f94273b9fb940238d89378c96ae4df289156e7..955eaef45f1cba5f8bfe3b23e8461b0dd47a3c1e 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::numpunct<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index b57ecb21fac2387fa929432a47981de3caee46d8..111ad527a742f7bb5f48c35d61a8946622ed6d07 100644 (file)
@@ -27,7 +27,7 @@ void test01()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,9 +41,6 @@ void test01()
 
   // cache the numpunct facets
   const numpunct<char>& nump_c = use_facet<numpunct<char> >(loc_c); 
-  const numpunct<char>& nump_us = use_facet<numpunct<char> >(loc_us); 
-  const numpunct<char>& nump_fr = use_facet<numpunct<char> >(loc_fr); 
-  const numpunct<char>& nump_de = use_facet<numpunct<char> >(loc_de); 
 
   // sanity check the data is correct.
   char dp1 = nump_c.decimal_point();
index 0ff21db6dce5e92981ba0ccd6751bae265481d85..cbff78e57409ff671038806747b77136ed3f6687 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -46,8 +46,6 @@ void test02()
   const numpunct<char>& nump_de = use_facet<numpunct<char> >(loc_de); 
 
   // sanity check the data is correct.
-  char dp1 = nump_c.decimal_point();
-  char th1 = nump_c.thousands_sep();
   string g1 = nump_c.grouping();
   string t1 = nump_c.truename();
   string f1 = nump_c.falsename();
index 002b0c47e377a5cae6711dc92e7bc3ae7f7217df..57a6de733e8b24c43c8bb6f4a973f6c5308c5101 100644 (file)
@@ -47,7 +47,7 @@ void test01()
 {
   using namespace std;
 
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   const string         basestr("true");
   const string         derivedstr("truest");
 
index 729e82a64bd1d820e20be37bba9e9ef3d482d781..6be2ec04f8834ad6ea71772e6a6030950a172b9a 100644 (file)
@@ -46,7 +46,7 @@ void test01()
 {
   using namespace std;
 
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   const string         empty;
   const string         basestr("true");
   const string         derivedstr("truest");
index c0cf534af7bbc6217ed4aa57d1baf8b4f6b026ac..da6a149d30732d8c4958226bd437f26f7f2e69bc 100644 (file)
@@ -36,7 +36,7 @@ namespace std
 {
   template<>
     void
-    numpunct<podchar_type>::_M_initialize_numpunct(__c_locale __cloc)
+    numpunct<podchar_type>::_M_initialize_numpunct(__c_locale)
     {
       if (!_M_data)
        _M_data = new __numpunct_cache<podchar_type>;
@@ -92,7 +92,7 @@ void test01()
   typedef basic_stringbuf<podchar_type>        stringbuf_type;
   typedef basic_ostream<podchar_type>          ostream_type;
   
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
 
   // Pre-cache sanity check.
   const locale         loc(locale::classic(), new numpunct<podchar_type>);
index 32b26eda0cdcc4563394bcc244ecacce0c35bff2..10b5dedfe0cf32fd0f017e986925a26d04bd97a7 100644 (file)
@@ -37,24 +37,24 @@ namespace std
   template<>
     bool 
     ctype<podchar_type>::
-    do_is(mask __m, char_type __c) const { return true; }
+    do_is(mask, char_type) const { return true; }
 
   template<>
     const podchar_type*
     ctype<podchar_type>::
-    do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const
+    do_is(const char_type* __lo, const char_type*, mask*) const
     { return __lo; }
 
   template<>
     const podchar_type*
     ctype<podchar_type>::
-    do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const
+    do_scan_is(mask, const char_type* __lo, const char_type*) const
     { return __lo; }
 
   template<>
     const podchar_type*
     ctype<podchar_type>::
-    do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const
+    do_scan_not(mask, const char_type* __lo, const char_type*) const
     { return __lo; }
 
   template<>
@@ -66,7 +66,7 @@ namespace std
   template<>
     const podchar_type*
     ctype<podchar_type>::
-    do_toupper(char_type* __lo, const char_type* __hi) const
+    do_toupper(char_type*, const char_type* __hi) const
     { return __hi; }
 
   template<>
@@ -78,7 +78,7 @@ namespace std
   template<>
     const podchar_type*
     ctype<podchar_type>::
-    do_tolower(char_type* __lo, const char_type* __hi) const
+    do_tolower(char_type*, const char_type* __hi) const
     { return __hi; }
 
   template<>
@@ -114,7 +114,7 @@ namespace std
     const podchar_type*
     ctype<podchar_type>::
     do_narrow(const podchar_type* __lo, const podchar_type* __hi, 
-             char __dfault, char* __dest) const
+             char, char* __dest) const
     {
       while (__lo < __hi)
        {
@@ -130,7 +130,7 @@ namespace std
 
   template<>
     void
-    numpunct<podchar_type>::_M_initialize_numpunct(__c_locale __cloc)
+    numpunct<podchar_type>::_M_initialize_numpunct(__c_locale)
     {
       if (!_M_data)
        _M_data = new __numpunct_cache<podchar_type>;
index ef1c9f0af7d0292b1114e9baba48818c69c1b4b7..5d60b6cb7e02bf59af5deeea877a5dbdb101699c 100644 (file)
@@ -27,7 +27,7 @@ void test01()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -41,9 +41,6 @@ void test01()
 
   // cache the numpunct facets
   const numpunct<wchar_t>& nump_c = use_facet<numpunct<wchar_t> >(loc_c); 
-  const numpunct<wchar_t>& nump_us = use_facet<numpunct<wchar_t> >(loc_us); 
-  const numpunct<wchar_t>& nump_fr = use_facet<numpunct<wchar_t> >(loc_fr); 
-  const numpunct<wchar_t>& nump_de = use_facet<numpunct<wchar_t> >(loc_de); 
 
   // sanity check the data is correct.
   wchar_t dp1 = nump_c.decimal_point();
index fce8fa2c6d7eb573288d6808c9a8552745d5c02a..94e4b1d341f882cefcac694a99750b8b5be5e4b9 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction
   locale loc_c = locale::classic();
@@ -46,8 +46,6 @@ void test02()
   const numpunct<wchar_t>& nump_de = use_facet<numpunct<wchar_t> >(loc_de); 
 
   // sanity check the data is correct.
-  wchar_t dp1 = nump_c.decimal_point();
-  wchar_t th1 = nump_c.thousands_sep();
   string g1 = nump_c.grouping();
   wstring t1 = nump_c.truename();
   wstring f1 = nump_c.falsename();
index 0b41e963f50ce014b9b335498a7a08f824075509..fc96d05c54f3987103da947a4121740676c205a8 100644 (file)
@@ -47,7 +47,7 @@ void test01()
 {
   using namespace std;
 
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   const wstring        basestr(L"true");
   const wstring        derivedstr(L"truest");
 
index 9a3c4872e5c2a2ff30638c9ab17734ff97b7c65a..09661c9482d5530ce7281c4a956e838ff087468b 100644 (file)
@@ -46,7 +46,7 @@ void test01()
 {
   using namespace std;
 
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   const wstring        empty;
   const wstring        basestr(L"true");
   const wstring        derivedstr(L"truest");
index a3fcaf268f43a2a6bb30b654796efe7addfe51b0..171149ec76750ba49d11bfc00363d9f44d42ce8e 100644 (file)
@@ -27,7 +27,7 @@ void test01()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string str;
 
   locale loc_de = __gnu_test::try_named_locale("de_DE");
index 4e6c9d68e628fcbc8d90acfb6d8d9e2bd8e72e5d..57e7f3019845e92265a69b19036562bf97f7c446 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc_it = __gnu_test::try_named_locale("it_IT");
 
index 04d4aa84ce0e5cfb84401e9b4ae6c239b67e4950..d6de6422c3acd90149395a47dfab01b7cf42c149 100644 (file)
@@ -30,8 +30,8 @@ void test01()
   typedef std::locale::facet base_type1;
   typedef std::time_base base_type2;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type1* base1 = &obj;
-  const base_type2* base2 = &obj;
+  const base_type1* base1 __attribute__((unused)) = &obj;
+  const base_type2* base2 __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index f4f0b88502cb4462b64da109e32d7e1fc9427861..4eb2a3149e007803ee26b370d0c93416b754eefc 100644 (file)
@@ -1,5 +1,4 @@
 // 2001-09-21 Benjamin Kosnik  <bkoz@redhat.com>
-
 // Copyright (C) 2001, 2002, 2003 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -27,7 +26,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
@@ -41,13 +40,7 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
-  const string empty;
+   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
   iterator_type end;
index c9c19dfc29ae588a40de7ec5cb8fd0d0638fb818..3916275ae7367b853d69021931921b8f4ec9603b 100644 (file)
@@ -27,7 +27,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
@@ -41,12 +41,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
index 7c54955a76ef3a9a9921ba8000f17aaac21eb429..0aa5ddcc0fad9d56fa358575ba36287dcfa1b55d 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 63d2602272a618e8bb715d9216b4e6fbf91e131a..9860b43a6151de4ca35e6cf9c591d2c7ed161a4e 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -60,11 +54,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
@@ -73,7 +63,6 @@ void test02()
   iss.imbue(loc_c);
   iss.str("04/04/71");
   iterator_type is_it01(iss);
-  tm time01;
   errorstate = good;
 
   // inspection of named locales, de_DE
index 249b5e8001f60da0b55dbfcd8f4b7c43f50c2a4d..3c786116bc31fb0ece915696d1ab5b4ca365323b 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef string::const_iterator iter_type;
   typedef time_get<char, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   istringstream iss; 
index aedf8817d8ca3157d847c8781dd0fb3d37f1001c..4affdf1796a94034462d7028da66bfe5ae0c82bd 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index aff0d1e74e73ef4f3f0f78e145483119c66d1c14..59695724138a4a40e59307ecbf60e30409e2f736 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -60,11 +54,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
@@ -73,7 +63,6 @@ void test02()
   iss.imbue(loc_c);
   iss.str(L"04/04/71");
   iterator_type is_it01(iss);
-  tm time01;
   errorstate = good;
 
   // inspection of named locales, de_DE
index b02049fcb465bf1001a7da595057d07c507da42b..6b4facc99f0eea7aca62a669b7306e7058902bee 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef wstring::const_iterator iter_type;
   typedef time_get<wchar_t, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   istringstream iss; 
index 17f52a563858be944c28f51c5b7588e073d1123d..cf948c3d0d58a664d6685bf3ce363b535120a35e 100644 (file)
@@ -33,7 +33,7 @@ void test01()
   const ios_base::iostate good = ios_base::goodbit;
   ios_base::iostate errorstate = good;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -45,14 +45,8 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_monthname(iter_type, iter_type, ios_base&, 
index f9d79a434404f092a3647aa930bac4d5ff7b9294..5f183b59fd561b7a5c11ed2c5fa2203da2c38e75 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,13 +42,7 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   const string empty;
 
index c876f5c364b9bc7d40271006654a1bd587f60368..970e431970681bda61f379eb00d781a09c609cd2 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef string::const_iterator iter_type;
   typedef time_get<char, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
   tm tm1;
 
   istringstream iss; 
index 0b86d74f996132214dd3e827796d4fd9aeeab514..47f5c48188a763230cd28f5ca98f29d08781d55f 100644 (file)
@@ -33,7 +33,7 @@ void test01()
   const ios_base::iostate good = ios_base::goodbit;
   ios_base::iostate errorstate = good;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -45,14 +45,8 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_monthname(iter_type, iter_type, ios_base&, 
index 63689eefca37945cdaa47ab21d2a8646e0cec618..af861cb7bfebbeab2d9b8c4cb45c088040e168dd 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,13 +42,7 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   const wstring empty;
 
index 5cb2b651a9c330e42d43b4373138002ad45bd38c..24007fa362133a057ea415f0724e1dd0e6104ee0 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef wstring::const_iterator iter_type;
   typedef time_get<wchar_t, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
   tm tm1;
 
   istringstream iss; 
index 1517fe2e138b56ac20f2bf70fd2089ad113ccbf6..c3b3bb1c015b6b421aae6a3030563e2960c0d6cf 100644 (file)
@@ -27,7 +27,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
@@ -41,12 +41,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -59,11 +53,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // 2
   // iter_type 
index 9b307d7535c9f5c273bb00d8b9dbc9a2d384b38e..7341274182e4568f738aca8263de6fea06e36085 100644 (file)
@@ -27,7 +27,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
@@ -41,14 +41,8 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // create an ostream-derived object, cache the time_get facet
   iterator_type end;
index 01a06cacc28808cc068a00239837dd21926f1547..d04ebdb7214936e648d060f28abf9ad9a148f58d 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef string::const_iterator iter_type;
   typedef time_get<char, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   istringstream iss; 
index 00ee21e680a8613e9f96babf088d43fbcdc04ac5..bc9b3a12734ca3fa17218da935d82b41a8513be8 100644 (file)
@@ -27,7 +27,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
@@ -41,12 +41,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -59,11 +53,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // 2
   // iter_type 
index a412cf01011c22e889e9ebdd98f38e65fce7f0dc..8c75a6fd76c697add455532209637ff0856e37b8 100644 (file)
@@ -27,7 +27,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
@@ -41,14 +41,8 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // create an ostream-derived object, cache the time_get facet
   iterator_type end;
index bb9c2e0b46fdcf2b052b02e43271265260d9ad8d..f9ebf1bd0bfd60a0b1428c4fdebd72ce750bd90c 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef wstring::const_iterator iter_type;
   typedef time_get<wchar_t, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   wistringstream iss; 
index ecbe8ecc2d89b113381992ab52737c23d63fefd7..993592158e4de94d3498ff744afee7d325840d97 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_weekday(iter_type, iter_type, ios_base&, 
index e423be6257212a512b76594cbd8b34bb4a07e006..93151dfa3242bb33dd1bf44e41f41f1b9259216d 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -60,7 +54,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // inspection of named locales, de_DE
   iss.imbue(loc_de);
index 59dde862a35e87e54eeb0987311e7b09427f806a..09a969a1f1d2c93d212713f6167bf19ab31b6a98 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef string::const_iterator iter_type;
   typedef time_get<char, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   istringstream iss; 
index dca85d24fd213c1c2ea14e283db18d16f04976ec..065b13cf78870859c2ffd89214d1f9f2cb92e1f6 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_weekday(iter_type, iter_type, ios_base&, 
index 1ca267440e7e27b18965969d19ac363f6184d534..1bf9897121439a606a24e6c583df3c15ea0abf5a 100644 (file)
@@ -30,7 +30,7 @@ void test02()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -60,7 +54,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // inspection of named locales, de_DE
   iss.imbue(loc_de);
index eab0343be37c6f8a52fc23e66aaa66ad67407f6f..83b8579f27012d6ddc7773872e795244a3497e94 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef wstring::const_iterator iter_type;
   typedef time_get<wchar_t, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   wistringstream iss; 
index d0aea858ae741a7638c24484afdc918608f2ccc8..1ae3d4ee3fcd302404e55c68b92b971fb9bb34c5 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   const string empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 1c38fcb3884e7b5aaba14541051307d0374a680b..4efb3ac6500b499e929b33959318f2d718b9f708 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef string::const_iterator iter_type;
   typedef time_get<char, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   istringstream iss; 
index f8158957272924909b8352a1293e33d28a6d18f6..5aa77c9519fbb038b6324b5d74d7832fc98bef2c 100644 (file)
@@ -30,7 +30,7 @@ void test01()
   typedef time_base::dateorder dateorder;
   typedef istreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   const wstring empty;
 
   // create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
    // create "C" time objects
-  const tm time_bday = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-                    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // iter_type 
   // get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 0f61392df09f25f40b7c166cffc10cedeafb86af..8377b463f2d540307af128ace55ae46453a86cab 100644 (file)
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_get works with other iterators besides streambuf
   // input iterators.
   typedef wstring::const_iterator iter_type;
   typedef time_get<wchar_t, iter_type> time_get_type;
   const ios_base::iostate goodbit = ios_base::goodbit;
-  const ios_base::iostate eofbit = ios_base::eofbit;
   ios_base::iostate err = goodbit;
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+  const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
   tm tm1;
 
   istringstream iss; 
index a1ce9ac60fa99eaaa9adc4dd70187f12d265acb7..0606521abe582aac4c6fcccd363bd78f92200b58 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::time_put<char> test_type;
   typedef std::locale::facet base_type;
   const test_type& obj = std::use_facet<test_type>(std::locale()); 
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
   
   // Check for required typedefs
   typedef test_type::char_type char_type;
index b547034f7a08b60fcc2b08f8479b3efdb74fa3fe..471806cea5fba5d11aea8fdee6f4c81f1846d69f 100644 (file)
@@ -29,14 +29,10 @@ void test01()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index 82d00538ed82cfc6b786feaec25edcd03aa53dc6..c637b829d61c94359168147723c1bd144ebb1f68 100644 (file)
@@ -27,7 +27,7 @@
 void test10()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
@@ -41,7 +41,6 @@ void test10()
   const string x(50, 'x'); // have to have allocated string!
   string res;
   const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
-  const char* date = "%X, %A, the second of %B, %Y";
 
   ostringstream oss; 
   oss.imbue(locale(loc_c, new time_put_type));
index eb844f1620911079e397aca908f7e954b6e63ae2..c09c11ec60802cd39d73f6978c78b98584e48879 100644 (file)
@@ -29,14 +29,10 @@ void test02()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index 522a899ef38e13e9ee81c9a1517b13f8113c2e4f..1263374250526a92544a439d630ce1a2ed6e0c93 100644 (file)
@@ -29,14 +29,10 @@ void test03()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test03()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index 8c9b1e0f4921eca4ca0eeb35aef56e6bc8827761..3a99df30979ea8c413a2a916e87285ee91cb42d8 100644 (file)
@@ -29,14 +29,10 @@ void test04()
   using namespace std;
   typedef ostreambuf_iterator<char> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
-  const char* date = "%A, the second of %B";
-  const char* date_ex = "%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test04()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index 9376987050e11a2b3381261c268a02fb4464bce9..64ca142fa093707f80b8ce621dd7d19c39c049bf 100644 (file)
@@ -30,12 +30,10 @@ void test05()
   typedef ostreambuf_iterator<char> iterator_type;
   typedef char_traits<char> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
    // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
@@ -49,12 +47,6 @@ void test05()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index e0ea595f08d3ad4646df02a0bf36303fe5ebecb8..53baf21afd4b2c25254c2c6afc6618c46b89d041 100644 (file)
@@ -30,12 +30,10 @@ void test06()
   typedef ostreambuf_iterator<char> iterator_type;
   typedef char_traits<char> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
@@ -49,12 +47,6 @@ void test06()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index 1f37a24a16f934296bce66e5647acd4b620ca42a..e8aeea2e6231c25552c034fa26f5ac8be94f0e16 100644 (file)
@@ -30,12 +30,10 @@ void test07()
   typedef ostreambuf_iterator<char> iterator_type;
   typedef char_traits<char> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
@@ -50,12 +48,6 @@ void test07()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index b047ed96547276df2e2300e0b145f71d18ff1a45..b940f2aa0c4ab98fac546d9fe92532302120d73c 100644 (file)
@@ -30,12 +30,10 @@ void test08()
   typedef ostreambuf_iterator<char> iterator_type;
   typedef char_traits<char> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    "%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
@@ -49,12 +47,6 @@ void test08()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); 
-  const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); 
-  const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); 
-  const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
index 42cfb34b0535f7e12f5aa721e561b6ddf9ae5a2f..9e43b85fc8e6d16a1f7b6390a1640944393cb0b9 100644 (file)
@@ -27,7 +27,7 @@
 void test09()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
index c6f36b732f03b6c14e3d701180f01a6afd565150..9f1b11d76aa3f09a3b0a28890c39bb812a8761eb 100644 (file)
@@ -29,14 +29,10 @@ void test01()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test01()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index 9cd5db73a5f929ac43601594a80a890cab07436d..c16555f89ee2428688978e31f872878b2e86fde9 100644 (file)
@@ -27,7 +27,7 @@
 void test10()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
@@ -41,7 +41,6 @@ void test10()
   const wstring x(50, 'x'); // have to have allocated wstring!
   wstring res;
   const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
-  const wchar_t* date = L"%X, %A, the second of %B, %Y";
 
   wostringstream oss; 
   oss.imbue(locale(loc_c, new time_put_type));
index 67ce4a344d1f1733e5b338d160c7f3a5746ad84a..62751ffc45796e1cc75e70bae8e75064ce1a313d 100644 (file)
@@ -29,14 +29,10 @@ void test02()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test02()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index c0ecf6acef3edf675bcb7f1d6a7cb6583f72c37b..06d51d96297e7a0c104162bcdf791b8b5f374cd4 100644 (file)
@@ -29,14 +29,10 @@ void test03()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
    // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test03()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index 6206ff57734c7f8a14ab0c657f13cd6985398eae..4a8b27b5adfd44ebcade48aa8bddb926f9b7ee10 100644 (file)
@@ -29,14 +29,10 @@ void test04()
   using namespace std;
   typedef ostreambuf_iterator<wchar_t> iterator_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
-  const wchar_t* date = L"%A, the second of %B";
-  const wchar_t* date_ex = L"%Ex";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
 
   // basic construction and sanity checks.
   locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test04()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index b017d420549f5e181112b0700477c6b85ac66b2f..0a65f3a4d432ce3fe64e73c408e863c9b5336cd9 100644 (file)
@@ -30,12 +30,10 @@ void test05()
   typedef ostreambuf_iterator<wchar_t> iterator_type;
   typedef char_traits<wchar_t> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
@@ -49,12 +47,6 @@ void test05()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index 8bb5b237d66be1684a9ac0eee6379bc5e20404ec..f4755bd196264d576271e6e36454cc956d0a789c 100644 (file)
@@ -30,12 +30,10 @@ void test06()
   typedef ostreambuf_iterator<wchar_t> iterator_type;
   typedef char_traits<wchar_t> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
@@ -49,12 +47,6 @@ void test06()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index 354285e35cabe3ec775b4fda210650fdcbd75613..99faf619886e69eecf4880b85e688dc2c807bbaa 100644 (file)
@@ -30,12 +30,10 @@ void test07()
   typedef ostreambuf_iterator<wchar_t> iterator_type;
   typedef char_traits<wchar_t> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
@@ -49,12 +47,6 @@ void test07()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index 6367a8edd273809cc024b498092093dcd8617420..0a7ff3c4372b73b3b6e9255300274cb5c6b8cabf 100644 (file)
@@ -30,12 +30,10 @@ void test08()
   typedef ostreambuf_iterator<wchar_t> iterator_type;
   typedef char_traits<wchar_t> traits;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  tm time1 = { 0, 0, 12, 4, 3, 71 };
-  const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
-    L"%w %W %x %X %y %Y %Z %%";
+  tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
@@ -49,12 +47,6 @@ void test08()
   VERIFY( loc_hk != loc_de );
   VERIFY( loc_de != loc_fr );
 
-  // cache the __timepunct facets, for quicker gdb inspection
-  const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c); 
-  const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de); 
-  const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk); 
-  const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr); 
-
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
index 072e4c38e02c9e770305ee39864146884dcea3d0..ca6676acf63c18aa25e4dac23a1885c46efccdfe 100644 (file)
@@ -27,7 +27,7 @@
 void test09()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Check time_put works with other iterators besides streambuf
   // output iterators. (As long as output_iterator requirements are met.)
index 5d5064de4d6e89f32517c98035eff809611182c4..9c802d322ab1527e24f38b56efced5f5e88442d6 100644 (file)
 
 bool test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // bitset()
   const size_t n1 = 5;
   std::bitset<n1> bit01;
-  for (int i = 0; i < n1; ++i)
+  for (size_t i = 0; i < n1; ++i)
     VERIFY( !bit01.test(i) );
 
   // bitset(unsigned long)
index 92f9695ab47e7b0a54ca74712fb3e1a405be5a24..929ed4bda2ccafeb368f19123a5c3598156ef7db 100644 (file)
@@ -30,7 +30,7 @@
 bool test02(void)
 {
   using std::char_traits;  using std::allocator;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::bitset<0>  z1;
   VERIFY( z1.any() == false );
index 8d21a9f5521f8c6904e01bec3616e897c4ef9375..ea3da885eb663eb6df2e4155a1c08b7621560d6e 100644 (file)
@@ -58,7 +58,7 @@ shift_arrays(size_t shift_step, size_t size) {
 template <size_t size>
   bool
   do_test() {
-    bool test = true;
+    bool test __attribute__((unused)) = true;
 
     std::bitset<size> shifted;
     std::bitset<size> correct;
@@ -89,7 +89,7 @@ template <size_t size>
 
 bool
 test01() {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   VERIFY( do_test<32>() );
   VERIFY( do_test<48>() );
index fd5c1929b13af0e0c732a57cae9a3a9752947e75..14910637482b83b8f2bcc7aac62f38bee9781b8d 100644 (file)
@@ -26,7 +26,7 @@
 bool
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::bitset<66>  b;
   b <<= 400;
index 40f4f42d8ea6d565dfffd9713a8989340ac387d1..6e945d69768ee826820797b28c2cc93a1d625bc3 100644 (file)
 void 
 test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const size_t n1 = 5;
 
   // the other 22 member functions should be in here too...
   try {
     std::bitset<n1> five_bits;
-    bool unused = five_bits.test(n1);   // should throw
+    bool unused __attribute__((unused)) = five_bits.test(n1);   // should throw
     VERIFY( false );
   }
   catch(std::out_of_range& fail) {
index 40e54efbde608c19086d60e60bb0cb166d2cc48f..3536b9dd7d34b2807916b458902f6dc67bf69c60 100644 (file)
@@ -27,7 +27,7 @@
 
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::bitset<5>      b;
   std::stringstream   ss("101");
   ss.exceptions(std::ios_base::eofbit);
index 92e94057a98b6f0bb7ce31bc003d3c8806bce064..566461b7d10174e0cc51e9638de43e0f0d97e440 100644 (file)
@@ -28,7 +28,7 @@
 
 typedef std::deque<__gnu_test::counter>   gdeque;
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // see http://gcc.gnu.org/ml/libstdc++/2001-11/msg00139.html
 void
index bc5a180fc19a51f8e72e474697311971522e3a4a..e0e7108d20b55e28e9912e2cbd0d9dc4272bdd7c 100644 (file)
@@ -36,7 +36,7 @@ using __gnu_test::destructor;
 
 typedef std::deque<counter>   gdeque;
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // 23.2.1     required types
 //
@@ -169,10 +169,10 @@ copyConstructorCheck()
   typedef copy_tracker  T;
   typedef std::deque<T>     X;
 
-  const int copyBaseSize = 17;  // arbitrary
+  const std::size_t copyBaseSize = 17;  // arbitrary
 
   X a;
-  for (int i = 0; i < copyBaseSize; ++i)
+  for (std::size_t i = 0; i < copyBaseSize; ++i)
     a.push_back(i);
   copy_tracker::reset();
 
@@ -180,7 +180,7 @@ copyConstructorCheck()
   VERIFY(!a.empty());
   VERIFY(copyBaseSize == a.size());
   VERIFY(a.begin() != a.end());
-  VERIFY(copyBaseSize == std::distance(a.begin(), a.end()));
+  VERIFY( copyBaseSize == static_cast<std::size_t>(std::distance(a.begin(), a.end())) );
 
   // run test
   X u = a;
@@ -237,8 +237,8 @@ fillConstructorCheck2()
   typedef copy_tracker  T;
   typedef std::deque<T>   X;
 
-  const int f = 23;  
-  const int l = 111;
+  const std::size_t f = 23;  
+  const std::size_t l = 111;
 
   copy_tracker::reset();
 
@@ -455,7 +455,7 @@ test_default_ctor_exception_safety()
   try
   {
     X a(7);
-    VERIFY(("no exception thrown", false));
+    VERIFY( false );
   }
   catch (...)
   {
@@ -486,7 +486,7 @@ test_copy_ctor_exception_safety()
     try
     {
       X u(a);
-      VERIFY(("no exception thrown", false));
+      VERIFY(false);
     }
     catch (...)
     {
index 5463b47f1cb119c9a80d4e90f8a866594c180144..4b7aac9ab601ec33b4f7cac86ddfd33000f8a0af 100644 (file)
@@ -26,7 +26,7 @@
 // libstdc++/6503
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::deque<int> d(2);       
   typedef std::deque<int>::iterator iter;         
@@ -59,7 +59,7 @@ void test01()
 // libstdc++/7186
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::deque<int> d(2);       
   typedef std::deque<int>::iterator iter;         
index e675760cb933a789677ee314f762b6b7ee71fe6a..609b92c82522d84fe41f29c0c9c8701cf2687a10 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // This test verifies the following.
 //
@@ -60,7 +60,7 @@ test01()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
   test01();
   return 0;
index dfa8ce2bfa0532bfe59dc540dba8aaaaac86b565..1d2f5662f02de9f9064591cb49dfee2cb268f588 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // A nontrivial type.
 template<typename T>
index 50dc68e38d37e96873fcfc15b4140a8824337022..090c7f3d66d551fb23ca94ba84536c5aa77e4844 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // A nontrivial type.
 template<typename T>
@@ -48,9 +48,9 @@ struct C {
 void
 test02()
 {
-  const int LIST_SIZE = 5;
+  const std::size_t LIST_SIZE = 5;
   const int INIT_VALUE = 7;
-  int count;
+  std::size_t count;
   std::list<int>::const_iterator i;
 
   // nontrivial value_type
index 8baa8627c58fd79add45f29d064907a705a36ca0..5115dc0abeddd3899f904eadd51aa22b736a808f 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // A nontrivial type.
 template<typename T>
@@ -41,9 +41,9 @@ struct C {
 void
 test02D()
 {
-  const int LIST_SIZE = 5;
+  const std::size_t LIST_SIZE = 5;
   const int INIT_VALUE = 7;
-  int count = 0;
+  std::size_t count = 0;
   std::list<C> list0204(LIST_SIZE, INIT_VALUE);
   std::list<C>::iterator i = list0204.begin();
   for (; i != list0204.end(); ++i, ++count)
index 30395671cbb4156d0352831e92d6806239f4b190..68b8d439cf8aa900a4ec1fc6c67622a046d8f46b 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // Range constructor
 //
@@ -35,8 +35,8 @@ void
 test03()
 {
   const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
-  const int N = sizeof(A) / sizeof(int);
-  int count;
+  const std::size_t N = sizeof(A) / sizeof(int);
+  std::size_t count;
   std::list<int>::const_iterator i;
 
   // construct from a dissimilar range
index 64f17118a4792758d7cfc945c23472a5288b3499..7bc925a64afc53242f6318c2c5b4030d193b9e42 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // Copy constructor
 //
@@ -35,7 +35,7 @@ void
 test04()
 {
   const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
-  const int N = sizeof(A) / sizeof(int);
+  const std::size_t N = sizeof(A) / sizeof(int);
   int count;
   std::list<int>::reverse_iterator i;
   std::list<int> list0401(A, A + N);
index 6742c75e1b463c947fe8398c24d27449042b5fda..9cdec8b40f73621f6f11829ed8a532a94f5aa9a9 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // Range assign
 //
@@ -36,9 +36,9 @@ test05()
 {
   const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
   const int B[] = {101, 102, 103, 104, 105};
-  const int N = sizeof(A) / sizeof(int);
-  const int M = sizeof(B) / sizeof(int);
-  int count;
+  const std::size_t N = sizeof(A) / sizeof(int);
+  const std::size_t M = sizeof(B) / sizeof(int);
+  std::size_t count;
   std::list<int>::const_iterator i;
 
   std::list<int> list0501;
index f600fbbcbdcacae26c98e72364f61995b4d17066..650c82b133fdbde0a4770836ab0d6cd8ca0c6922 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // Fill assign
 //
@@ -34,11 +34,11 @@ bool test = true;
 void
 test06()
 {
-  const int BIG_LIST_SIZE = 11;
+  const std::size_t BIG_LIST_SIZE = 11;
   const int BIG_INIT_VALUE = 7;
-  const int SMALL_LIST_SIZE = 5;
+  const std::size_t SMALL_LIST_SIZE = 5;
   const int SMALL_INIT_VALUE = 17;
-  int count;
+  std::size_t count;
   std::list<int>::const_iterator i;
 
   std::list<int> list0601;
index 17eb0c48ade8eba4e572dcb5f9b4c1028d491ee7..66b59a00d03cc694494a4fad12a34ce88b4bf9a2 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 
 // A nontrivial type.
@@ -42,9 +42,9 @@ struct C {
 void
 test06D()
 {
-  const int LIST_SIZE = 5;
+  const std::size_t LIST_SIZE = 5;
   const int INIT_VALUE = 7;
-  int count = 0;
+  std::size_t count = 0;
   std::list<C> list0604;
   VERIFY(list0604.size() == 0);
   
index 0fa066aabdfc2931a75473fbe5b193dad0d58de4..1f26213d8aed7f4e688d9f3a2002c97f8aea98e6 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // Assignment operator
 //
@@ -36,8 +36,8 @@ void
 test07()
 {
   const int A[] = {701, 702, 703, 704, 705};
-  const int N = sizeof(A) / sizeof(int);
-  int count;
+  const std::size_t N = sizeof(A) / sizeof(int);
+  std::size_t count;
   std::list<int>::iterator i;
 
   std::list<int> list0701(A, A + N);
index c5bb6d7dad0df72872895bf6e86642bf62d3fc2e..2e75dcabb31e68cd80335fd01a1d94f563f2b25a 100644 (file)
@@ -23,7 +23,7 @@
 
 typedef __gnu_test::copy_tracker  T;
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // range and fill insert/erase + clear
 // missing: o  fill insert disguised as a range insert in all its variants
index 24eff6707507f593beadfa83b8fa6d7b9efeea0f..66c5c12ccc6e41e11ac8270225945a42caf82d30 100644 (file)
@@ -23,7 +23,7 @@
 
 typedef __gnu_test::copy_tracker  T;
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // general single insert/erase + swap
 void
index ee4a93c6f0aa501a0b874aef9a9153338b08a778..dfbc46cb4063dc83dd6789d9ad625c296e56924c 100644 (file)
@@ -23,7 +23,7 @@
 
 typedef __gnu_test::copy_tracker  T;
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 
 // This test verifies the following.
@@ -79,7 +79,7 @@ test01()
   try
   {
     list0101.push_back(T(4, true));
-    VERIFY(("no exception thrown", false));
+    VERIFY(false);
   }
   catch (...)
   {
index a695b28f8bcc24f3239b58839453904a8b27efb5..663ff1c81c90f1f217c00fb1f93c4971a9d44185 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // splice(p, x) + remove + reverse
 void
@@ -30,8 +30,8 @@ test01()
   const int K = 417;
   const int A[] = {1, 2, 3, 4, 5};
   const int B[] = {K, K, K, K, K};
-  const int N = sizeof(A) / sizeof(int);
-  const int M = sizeof(B) / sizeof(int);
+  const std::size_t N = sizeof(A) / sizeof(int);
+  const std::size_t M = sizeof(B) / sizeof(int);
 
   std::list<int> list0101(A, A + N);
   std::list<int> list0102(B, B + M);
@@ -66,7 +66,7 @@ test01()
   VERIFY(p == list0101.end());
 }
 
-main(int argc, char* argv[])
+int main(void)
 {
   test01();
   return 0;
index 09dc0f1c74f53652023f88515ecdbea05a74ff30..726c4bfcab4caf5f6c0c9e421d3ff723e7ef4a12 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // splice(p, x, i) + remove_if + operator==
 void
@@ -52,7 +52,7 @@ test02()
   VERIFY(list0201 == list0204);
 }
 
-main(int argc, char* argv[])
+int main()
 {
   test02();
   return 0;
index c12286c62441ec340ae371afe818662956cb2f13..8b9c537a06430a3cef720bf69f86b4dbdb2483df 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // splice(p, x, f, l) + sort + merge + unique
 void
@@ -66,7 +66,7 @@ test03()
   VERIFY(list0301 == list0304);
 }
 
-main(int argc, char* argv[])
+int main(void)
 {
   test03();
   return 0;
index 6a0b36e38797d0b7e4036d9c5667b5bacdea36b1..5de95b9eb5e8d66c1f2eb2359a854996dcb36758 100644 (file)
@@ -21,7 +21,7 @@
 #include <list>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // A comparison predicate to order by rightmost digit.  Tracks call counts for
 // performance checks.
@@ -86,7 +86,7 @@ test04()
   VERIFY(eq.count() == (N + M - 1));
 }
 
-main(int argc, char* argv[])
+int main()
 {
   test04();
   return 0;
index 67c838f993ae72c9f19005f6fcc164b9fb257ef3..404f3c35cabff9606c1c5becb0de970e362a1dc2 100644 (file)
@@ -29,7 +29,7 @@
 // http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01375.html
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::map<int, int>   Map;
   Map             M;
   Map::iterator   hint;
index 75b604c80c24dbb86a86250d71e1f047714dea6f..f105f9b91a5733db9e04de63a4fef2fe13e31c85 100644 (file)
@@ -28,7 +28,7 @@
 // libstdc++/86: map & set iterator comparisons are not type-safe
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::map<unsigned int, int> mapByIndex;
   std::map<std::string, unsigned> mapByName;
   
index c3c23741e2e6e32fafab9c2e82f4cbc47c9970e8..0c620a18b9d699c39bf66e99c41a3ad0f7c4633a 100644 (file)
@@ -28,7 +28,7 @@
 // libstdc++/86: map & set iterator comparisons are not type-safe
 int main(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::set<unsigned int> setByIndex;
   std::set<std::string> setByName;
index acc6e45f54531ccce3f1d3116d1bcbb76cec4b40..f56c21dd5447771e968d9edf8b61484534992180 100644 (file)
@@ -26,7 +26,7 @@
 // libstdc++/6886
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::vector<bool>  bvec;
   int  i, num = 0;
   bvec v;
index af0eb93c9df123f90aa17b80d334b1c0e600b899..797a2fc0f8a4a11a898079e22f005f80ee921dd9 100644 (file)
@@ -34,7 +34,7 @@ struct B { };
 void test01()
 {
   // non POD types
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::vector< A<B> > vec01;
   typedef std::vector< A<B> >::size_type size_type;
 
index 49cfbfa30bd69e4549efa41de6a39795852a38b9..293ca5945bfb5ec6c4cb10790b0087ba4ab025fd 100644 (file)
@@ -37,7 +37,7 @@ using __gnu_test::destructor;
 void
 test_reserve()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -67,14 +67,14 @@ test_reserve()
 void
 test_reserve_exception_guarantee()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
   allocation_tracker::resetCounts();
   {
     X a(7);
-    const X::size_type old_size     = a.size();
+    const X::size_type old_size __attribute__((unused)) = a.size();
     const X::size_type old_capacity = a.capacity();
     const X::size_type new_capacity = old_capacity + 10;
     T::reset();
@@ -83,7 +83,7 @@ test_reserve_exception_guarantee()
     try
     {
       a.reserve(new_capacity);
-      VERIFY(("no exception thrown", false));
+      VERIFY(false);
     }
     catch (...)
     {
index df7e4b20b440aecb748ef0f6d2e60972ea3e4782..fe706a4b56aa208ee7f8666883562091db25aa74 100644 (file)
@@ -29,7 +29,7 @@
 // libstdc++/8230
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   {
     std::vector<int>  array;
     const std::size_t size = array.max_size();
index 53afe8f7fdb3301628ff80e20ece681d0d29a2c8..5c41e654833cd2ef3306494ddbc733d30b197f92 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
   const int B[] = {7, 7, 7, 7, 7};
   const int N = sizeof(A) / sizeof(int);
index af7556517f60caee079f36cf96211b0f4eb15a4b..12564b9ef535ce036b64073f75b7b455100997cc 100644 (file)
@@ -40,7 +40,7 @@ void
 test_default_ctor_exception_gurantee()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -52,15 +52,14 @@ test_default_ctor_exception_gurantee()
   try
   {
     X a(7);
-    VERIFY(("no exception thrown", false));
+    VERIFY(false);
   }
   catch (...)
   {
   }
 
   // assert postconditions
-  VERIFY(("memory leak detected:",
-          allocation_tracker::allocationTotal() == allocation_tracker::deallocationTotal()));
+  VERIFY( allocation_tracker::allocationTotal() == allocation_tracker::deallocationTotal() );
 
   // teardown
 }
@@ -73,7 +72,7 @@ void
 test_copy_ctor_exception_gurantee()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -87,7 +86,7 @@ test_copy_ctor_exception_gurantee()
     try
     {
       X u(a);
-      VERIFY(("no exception thrown", false));
+      VERIFY(false);
     }
     catch (...)
     {
@@ -112,7 +111,7 @@ void
 test_assignment_operator_1()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -140,7 +139,7 @@ void
 test_assignment_operator_2()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -170,7 +169,7 @@ void
 test_assignment_operator_3()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -200,7 +199,7 @@ void
 test_assignment_operator_3_exception_guarantee()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -218,7 +217,7 @@ test_assignment_operator_3_exception_guarantee()
     try
     {
       r = a;
-      VERIFY(("no exception thrown", false));
+      VERIFY(false);
     }
     catch (...)
     {
@@ -245,7 +244,7 @@ void
 test_fill_assign_1()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -273,7 +272,7 @@ void
 test_fill_assign_2()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -307,14 +306,13 @@ void
 test_fill_assign_3()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
   allocation_tracker::resetCounts();
   {
     X a(7);
-    X::size_type old_size     = a.size();
     X::size_type old_capacity = a.capacity();
     X::size_type new_size     = old_capacity + 4;
     const T t;
@@ -343,7 +341,7 @@ void
 test_fill_assign_3_exception_guarantee()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -365,7 +363,7 @@ test_fill_assign_3_exception_guarantee()
     try
     {
       a.assign(new_size, t);
-      VERIFY(("no exception thrown", false));
+      VERIFY(false);
     }
     catch (...)
     {
@@ -388,7 +386,7 @@ void
 test_fill_assign_4()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -432,13 +430,12 @@ void
 test_range_assign_2()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
   X a(7);
   X b(3);
-  X::size_type old_size = a.size();
 
   copy_tracker::reset();
   allocation_tracker::resetCounts();
@@ -463,14 +460,13 @@ void
 test_range_assign_3()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
   X a(7);
   a.reserve(a.size() + 7);
   X b(a.size() + 3);
-  X::size_type old_size = a.size();
 
   copy_tracker::reset();
   allocation_tracker::resetCounts();
@@ -496,7 +492,7 @@ void
 test_range_assign_4()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -504,7 +500,6 @@ test_range_assign_4()
   {
     X a(7);
     X b(a.capacity() + 7);
-    X::size_type old_size = a.size();
 
     copy_tracker::reset();
 
@@ -530,7 +525,7 @@ void
 test_range_assign_4_exception_guarantee()
 {
   // setup
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef copy_tracker T;
   typedef std::vector<T, tracker_alloc<T> > X;
 
@@ -538,7 +533,6 @@ test_range_assign_4_exception_guarantee()
   {
     X a(7);
     X b(a.capacity() + 7);
-    X::size_type old_size = a.size();
 
     copy_tracker::reset();
     copy_constructor::throw_on(3);
@@ -550,7 +544,7 @@ test_range_assign_4_exception_guarantee()
     try
     {
       a.assign(b.begin(), b.end());
-      VERIFY(("no exception thrown", false));
+      VERIFY(false);
     }
     catch (...)
     {
index 8171715dddb461509192a1355d30405160233e62..89026225f9ab3160ead7265df77dba1e15d782ba 100644 (file)
@@ -33,7 +33,7 @@ struct B { };
 // http://gcc.gnu.org/ml/libstdc++/2000-09/msg00002.html
 bool test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::vector< A<B> > vec01;
   std::vector< A<B> > vec02(5);
   typedef std::vector< A<B> >::size_type size_type;
@@ -41,7 +41,7 @@ bool test01()
 
   try
     { 
-      reference r01 = vec01.at(6); 
+      reference r01 __attribute__((unused)) = vec01.at(6); 
       VERIFY( false ); // Should not get here, as exception thrown.
     }
   catch(std::out_of_range& err)
index c8321b3bd0ff711ee4de542591b4dd0464874154..20fb52d317ae14ca81b5ed53e497d7567212c5b2 100644 (file)
@@ -23,7 +23,7 @@
 #include <vector>
 #include "testsuite_hooks.h"
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 template<typename T>
   struct A { };
index cc8d36d410881e6ea1ebe3006d626f57b8734847..b6d37396e02034712056d35355615b0d688b828d 100644 (file)
@@ -23,7 +23,7 @@
 #include <vector>
 #include "testsuite_hooks.h"
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 // test the assign() function
 void
@@ -32,9 +32,9 @@ test03()
   const int K = 417;
   const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
   const int B[] = {K, K, K, K, K};
-  const int N = sizeof(A) / sizeof(int);
-  const int M = sizeof(B) / sizeof(int);
-  bool test = true;
+  const std::size_t N = sizeof(A) / sizeof(int);
+  const std::size_t M = sizeof(B) / sizeof(int);
+  bool test __attribute__((unused)) = true;
 
   // assign from pointer range
   std::vector<int> v3;
index 3cc6c57ed4253fdc4ad4581757cb672ef39a78f2..5f8a9de547fae88f54d5b94ceb339471a3d3d4bb 100644 (file)
@@ -32,7 +32,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::vector<int> v;
   try
     {
index 63f64ea08e8a2c79ade9bf217d0fde15e9aa959b..678feb8b2453594c049f6cffee8abddd7e5b715a 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef back_insert_iterator<list<int> > test_iterator;
   typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
   test_iterator  r_it(l);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
index cf446f63ddb286b44119a5d1d0767e7cba67813b..32a694e3acf925343140ddef791a27dbc4d7caaf 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef front_insert_iterator<list<int> > test_iterator;
   typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
   test_iterator  r_it(l);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
index 0cb2d8782a7eb73955558ff03f051f34fe8e3967..7fca06092d8acabed22ff5bc7ec9a6c24924a337 100644 (file)
@@ -34,7 +34,7 @@ void test01()
   typedef insert_iterator<list<int> > test_iterator;
   typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
   test_iterator  r_it(l, li);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
index d278e1994b4efbe88d830e057f433fbe3e5d96a9..3f097d512bf13435f4a9bd5aee9bfff25522432c 100644 (file)
@@ -33,7 +33,7 @@ void test01()
   typedef iterator<input_iterator_tag, long, ptrdiff_t, const long*, 
                   const long&> base_iterator;
   test_iterator  r_it;
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
@@ -53,7 +53,7 @@ template class std::istream_iterator<char>;
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   string st("R.Rorty");
 
index 2f97f8973cfafec3c145ed329bf3ea81ed647b38..8683de6e463ef43978731e1296056c92f81462f4 100644 (file)
@@ -35,7 +35,7 @@ void test01()
 
   istringstream isstream("this tag");
   test_iterator  r_it(isstream);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
@@ -55,7 +55,7 @@ bool test02(void)
 
   typedef std::istreambuf_iterator<char> cistreambuf_iter;
   typedef cistreambuf_iter::streambuf_type cstreambuf_type;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char slit01[] = "playa hermosa, liberia, guanacaste";
   std::string str01(slit01);
   std::istringstream istrs00(str01);
@@ -120,7 +120,7 @@ bool test02(void)
   // istreambuf_iterator& operator++(int);
   cistreambuf_iter istrb_it27(istrs01.rdbuf());
   char c;
-  for (int i = 0; i < sizeof(slit01) - 2; ++i)
+  for (std::size_t i = 0; i < sizeof(slit01) - 2; ++i)
     {
       c = *istrb_it27++;
       VERIFY( c == slit01[i] );
@@ -128,7 +128,7 @@ bool test02(void)
 
   std::istringstream istrs02(str01);
   cistreambuf_iter istrb_it28(istrs02);
-  for (int i = 0; i < sizeof(slit01) - 2;)
+  for (std::size_t i = 0; i < sizeof(slit01) - 2;)
     {
       c = *++istrb_it28;
       VERIFY( c == slit01[++i] );
@@ -139,28 +139,28 @@ bool test02(void)
 // libstdc++/2627
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string s("free the vieques");
 
   // 1
   std::string res_postfix;
   std::istringstream iss01(s);
   std::istreambuf_iterator<char> isbufit01(iss01);
-  for (int j = 0; j < s.size(); ++j, isbufit01++)
+  for (std::size_t j = 0; j < s.size(); ++j, isbufit01++)
     res_postfix += *isbufit01;
 
   // 2
   std::string res_prefix;
   std::istringstream iss02(s);
   std::istreambuf_iterator<char> isbufit02(iss02);
-  for (int j = 0; j < s.size(); ++j, ++isbufit02)
+  for (std::size_t j = 0; j < s.size(); ++j, ++isbufit02)
     res_prefix += *isbufit02;
 
   // 3 mixed
   std::string res_mixed;
   std::istringstream iss03(s);
   std::istreambuf_iterator<char> isbufit03(iss03);
-  for (int j = 0; j < int(s.size() / 2); ++j)
+  for (std::size_t j = 0; j < (s.size() / 2); ++j)
     {
       res_mixed += *isbufit03;
       ++isbufit03;
index db8b63369a502e1a7254fca31b770c19632b4844..51360b09cdb2188f84b3d06a18afdafd890bd400 100644 (file)
@@ -589,7 +589,7 @@ test6642()
 }
 
 int
-main(int argc, char **argv)
+main()
 {
    int failures(0);
 
index 53fee23e1a1fee2fa99b73f03d62d8948f58dc3d..546685725038e2c973b69f66c025b55d68383a5a 100644 (file)
@@ -33,7 +33,7 @@ void test01()
   typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
   ostringstream osstream("this tag");
   test_iterator  r_it(osstream);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
index 6fbfe6d514409203d29d084c7bc1244fb203cf7f..3bc6bbbcf982fd8a7912f348c75ac66cbea22cbd 100644 (file)
@@ -33,7 +33,7 @@ void test01()
   typedef iterator<output_iterator_tag, void, void, void, void> base_iterator;
   ostringstream osstream("this tag");
   test_iterator  r_it(osstream);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
@@ -52,7 +52,7 @@ bool test02(void)
 {
   typedef std::ostreambuf_iterator<char> costreambuf_iter;
   typedef costreambuf_iter::streambuf_type cstreambuf_type;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char slit01[] = "playa hermosa, liberia, guanacaste";
   const char slit02[] = "bodega bay, lost coast, california";
   std::string str01(slit01);
index 1278a21e8bb362b87087a4a201f059a83377a875..2852d87bb683957528687ddbee1d3befc28d633e 100644 (file)
@@ -36,7 +36,7 @@ void test01()
                    iterator_traits<long*>::reference>
     base_iterator;
   test_iterator  r_it(&l);
-  base_iterator* base = &r_it;
+  base_iterator* base __attribute__((unused)) = &r_it;
 
   // Check for required typedefs
   typedef test_iterator::value_type value_type;
index ffb6e779db0741717e44c444c452717a3143140a..138d41cd5bc9962906d89ce499bb530630bb1ff7 100644 (file)
@@ -27,7 +27,7 @@
 // libstdc++/10783
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::vector<int> V;
   VERIFY( sizeof(V::iterator) == sizeof(V::reverse_iterator) );
index fda74d2a706273f46012c3776f4f6f9f7db34d5d..37019f84edef724e110dcac395f17da9fca1edc1 100644 (file)
@@ -21,7 +21,7 @@
 #include <algorithm>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 const int A[] = {1, 2, 3, 3, 3, 5, 8};
 const int C[] = {8, 5, 3, 3, 3, 2, 1};
@@ -172,12 +172,12 @@ test04()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test01();
-    test02();
-    test03();
-    test04();
-
-    return !test;
+  test01();
+  test02();
+  test03();
+  test04();
+  
+  return 0;
 }
index d8fbb9d2b00d1a7abf5cc92ac7df500e9d3548a3..6e699113b580ea36e7ae66e6c024242270108c9b 100644 (file)
@@ -21,7 +21,7 @@
 #include <algorithm>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
 const int N = sizeof(A) / sizeof(int);
@@ -49,10 +49,10 @@ test02()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test01();
-    test02();
+  test01();
+  test02();
 
-    return !test;
+  return 0;
 }
index e78fae8477d7bf8e5d7accb7c4a979291b25b1b3..a62a9a819b629c14df578bf2cde232cd47c3fc08 100644 (file)
@@ -22,7 +22,7 @@
 //#include <cmath>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 const int A[] = {1, 11, 12, 3, 10, 6, 17, 4, 8, 2, 5, 13, 9, 15, 14, 16, 7};
 const int B[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
@@ -123,10 +123,10 @@ test02()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test01();
-    test02();
+  test01();
+  test02();
 
-    return !test;
+  return 0;
 }
index a3a2305016563209fb1c6ef0d4be8be32590be2e..6afb28fffbc1be529a23acdf761f4263a801fc74 100644 (file)
@@ -28,5 +28,5 @@ bool operator< (const foo&, const foo&) { return true; };
 
 void bar(foo* a, foo* b, foo& x)
 {
-  foo* c = std::lower_bound(a, b, x);
+  foo* c __attribute__((unused)) = std::lower_bound(a, b, x);
 }
index ef8acfd249f465cc86f919e97a88e4f0d02d7447..bd07009c015b3697c4dc13e4ff14b2a53bb5c9f9 100644 (file)
@@ -24,7 +24,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const int& x = std::max(1, 2);
   const int& y = std::max(4, 3);
@@ -74,7 +74,7 @@ template int A<long double>::a;
 
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   VERIFY( 2 == std::min(A<int>::a, 2) );
   VERIFY( 3 == std::min(A<int>::a, 4) );
index 3424dcf80fde76c22816fbe02cecb56186391b4c..b05c203bd32632e59d450a9e0b043c5e4c71966c 100644 (file)
@@ -22,7 +22,7 @@
 #include <functional>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
 const int B[] = {2, 4, 6, 8, 10, 12, 14, 16, 1, 3, 5, 7, 9, 11, 13, 15, 17};
@@ -64,10 +64,10 @@ test02()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test01();
-    test02();
+  test01();
+  test02();
 
-    return !test;
+  return 0;
 }
index 5102a649fdc16ba6d23fe9c3ff7b1309fda8fd40..2c0487706ea82cf23729ece143407fc68838affd 100644 (file)
@@ -22,7 +22,7 @@
 #include <testsuite_hooks.h>
 #include <list>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 int A[] = {1, 2, 3, 4, 5, 6, 7};
 int B[] = {2, 3, 4, 5, 6, 7, 1};
@@ -72,9 +72,9 @@ test03()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test02();
-    test03();
-    return !test;
+  test02();
+  test03();
+  return 0;
 }
index 2fcc6384ccf58afcfb011ca860bca662cbe1d4e8..f1fa87cd42b9fc458f05bf9a247f3edc33649116 100644 (file)
@@ -21,7 +21,7 @@
 #include <algorithm>
 #include <testsuite_hooks.h>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
 const int B[] = {10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19};
@@ -159,13 +159,13 @@ test05()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test01();
-    test02();
-    test03();
-    test04();
-    test05();
-
-    return !test;
+  test01();
+  test02();
+  test03();
+  test04();
+  test05();
+  
+  return 0;
 }
index 095a7bc990e5a6fa8127fabed54c51231750455a..543f3d43fc90281654ed8ce5e12e3dfad588c2f7 100644 (file)
@@ -59,7 +59,7 @@ void isunordered() { }
 template <typename _Tp>
   void test_c99_classify()
   {
-    bool test = true;
+    bool test __attribute__((unused)) = true;
 
     typedef _Tp fp_type;
     fp_type f1 = 1.0;
index f01e4868b44d35b20d1795d5e1d910ee4c494191..60cb5d05a01b37a92f69d4e4519563d832cab526 100644 (file)
@@ -44,7 +44,7 @@ test02()
 int
 test03()
 {
-  double powtest = std::pow(2., 0);
+  double powtest __attribute__((unused)) = std::pow(2., 0);
   return 0;
 }
 
@@ -52,7 +52,7 @@ test03()
 int
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   float x[2] = {1, 2};
   float y = 3.4;
   std::modf(y, &x[0]);
index 25efa10a192aa6613119ffd0bfc05b9aeba0ca06..86a6f930f725b63235f2ca6f3065e8d676b8396b 100644 (file)
@@ -45,7 +45,7 @@ int
 test02 ()
 {
   float a = 0.0f;
-  float b = std::acos(b);
+  float b __attribute__((unused)) = std::acos(a);
   return 0;
 }
 
index f285fb70fec58cac4cd7fc379bb2188691ba9d88..b7059f7e864ba1360529f4ab83d3eb7e36433f5f 100644 (file)
@@ -38,7 +38,7 @@ template<typename R>
 int
 test_good(std::string str, R x, R y)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::complex<R> z;
   char ch;
   std::istringstream iss(str);
@@ -54,7 +54,7 @@ template<typename R>
 int
 test_fail(std::string str)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::complex<R> z;
   std::istringstream iss(str);
   iss >> z;
@@ -87,7 +87,7 @@ testall()
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   complex<float> cf01(-1.1, -333.2);
   stringstream ss;
@@ -105,7 +105,7 @@ template class std::basic_string<char, gnu_char_traits, std::allocator<char> >;
 
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Construct locale with specialized facets.
   typedef gnu_sstream::__num_put_type numput_type;
@@ -117,7 +117,6 @@ void test02()
   VERIFY( std::has_facet<numget_type>(loc_2) );
 
   gnu_sstream sstr;
-  std::basic_ios<char, gnu_char_traits>* pios = &sstr;
   sstr.imbue(loc_2);
 
 
index ebdd71a2c71aa37a5a8b2ed2cbe476361b55591b..62720c621f3dc045eb70dd2db5eb39ebc4b92369 100644 (file)
@@ -26,7 +26,7 @@
 void test01()
 {
  using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
  typedef complex<double> complex_type;
  const double cd1 = -11.451;
  const double cd2 = -442.1533;
index a02c1f5801b336812be7564dc7c515136d1ac76c..a7278edfc90347c6dc6ef95f865683ced0125597 100644 (file)
 #include <testsuite_hooks.h>
 
 bool
-construction(int start, int size, int stride)
+construction(std::size_t start, std::size_t size, std::size_t stride)
 {
   std::slice s(start, size, stride);
   return s.start() == start && s.size() == size && s.stride() == stride;
 }
 
 bool
-copy(int start, int size, int stride)
+copy(std::size_t start, std::size_t size, std::size_t stride)
 {
   std::slice s(start, size, stride);
   std::slice t = s;
@@ -40,7 +40,7 @@ copy(int start, int size, int stride)
 }
 
 bool
-assignment(int start, int size, int stride)
+assignment(std::size_t start, std::size_t size, std::size_t stride)
 {
   std::slice s(start, size, stride);
   std::slice t;
@@ -51,8 +51,9 @@ assignment(int start, int size, int stride)
 
 int main()
 {
-  bool test = true;
-  std::srand(20020717);         using std::rand;
+  bool test __attribute__((unused)) = true;
+  std::srand(20020717);         
+  using std::rand;
   VERIFY(construction(rand(), rand(), rand()));
 
   VERIFY(copy(rand(), rand(), rand()));
index a637b872b2efba5a40b06a4514ffdc56ad8939a2..2d5af920735bfe6fb381766b80d716fe963a26af 100644 (file)
@@ -34,7 +34,7 @@
 
 int main()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using std::valarray;
   using std::slice;
   valarray<int> v(1, 10), w(2, 10);
index ffc4e639c1c97fe8eeb7279a336de6a8273cbd08..9a4cf68c1d5b0cc880ec069d0a61401b3b56807c 100644 (file)
@@ -40,7 +40,7 @@ test01()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
     test01();
     return 0;
index f2348f018abe810eb030ff54f3859e257c7bd18f..37c9e0286e48278d9f59faf2a88706869a9a3e89 100644 (file)
@@ -37,7 +37,7 @@ int main()
   // 02: algo
   using std::valarray;
   valarray<double> b, c;
-  double m = std::abs(b - c).max();
+  double m __attribute__((unused)) = std::abs(b - c).max();
 
   return 0;
 }
index 84c072a4895b89e02030f129c61e1cc8e4f24a0e..16479a51241407211017fcf0207ae659e0ed2b8f 100644 (file)
@@ -24,7 +24,7 @@
 
 void test01() // check unary operators
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::valarray<int> u(1);
   u[0]=1;
 
@@ -36,7 +36,7 @@ void test01() // check unary operators
 
 void test02() // check binary operators
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::valarray<int> u(1), v(1);
   u[0]=1;
   v[0]=3;
index 54cfba150bd801ab3ad26362d2b529f92ef29f33..6cb9e6e8b3f43d18b86ba1346c04b09074e3cbc0 100644 (file)
@@ -115,7 +115,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_filebuf<gnu_char_type, gnu_char_traits> gnu_filebuf;
   
   try
index 9516cb2eccba02ecd91273a5cda98c5e045bba4a..e330430973c6f332949067bf9e58d9a7bfacdd13 100644 (file)
@@ -28,7 +28,7 @@ void test01()
   typedef std::filebuf test_type;
   typedef std::streambuf base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 5b2f484a0f9777d4d3b11256ff4b2ef2804a2514..5d87cabc1ea837100bdedfc8dd0562dc404cbf23 100644 (file)
@@ -32,7 +32,7 @@ const char name_02[] = "filebuf_members-1.txt";
 // Test member functions.
 void test_01() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char* name_03 = "filebuf_members-3"; // empty file, need to create
 
   std::filebuf fb_01; // in 
index b0ebd5817c677fbb3f332e2be3cd1acaa890e87c..0657ed8218ce58ee4c80dc44f9236df707bb01a7 100644 (file)
@@ -42,7 +42,7 @@ const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
 
 void test_02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int close_num;
 
   // read (ext)
index 3f6dfd56b3a28dff12eadf90b9ce89bc9fad4fdf..6fc4bc502088e0157f5540185f9b6b4d757d434c 100644 (file)
@@ -65,11 +65,8 @@ void test05()
   typedef std::filebuf::off_type       off_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   std::filebuf                                 f_tmp;
-  std::streamsize                      strmsz_1, strmsz_2;
-  std::streamoff                       strmof_1, strmof_2;
-  int                                  i = 0, j = 0, k = 0;
 
   fb_01.open(name_01, std::ios_base::in);
   fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
@@ -85,7 +82,7 @@ void test05()
   VERIFY( !fb_03.is_open() );
 }
 
-main() 
+int main() 
 {
   test03();
   test05();
index 2992a4225f1c0628b891dff89f7c1fd35bb49a03..6222874f9cf413f8e19ba6d803422f488093890a 100644 (file)
@@ -34,7 +34,7 @@ void test_04()
 {
   typedef std::filebuf::traits_type    traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::filebuf fb_01, fb_02;
   char buffer[] = "xxxxxxxxxx";
index cd95bc653b43d5a41535cf67448d858eb17da17e..90107cd72a904f55ef2bb26666cbc156bfa5665e 100644 (file)
@@ -40,7 +40,7 @@
 void
 test_04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_fifo1";
   signal(SIGPIPE, SIG_IGN);
   
index 02496d6a0e9d576edcb585c54f4b8fbce6afe237..cfac4a7a3847fd495338236ca875fc94bfcd875d 100644 (file)
@@ -58,7 +58,7 @@ public:
 
 void test_05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   Close_filebuf fb_01, fb_02;
   char buffer[] = "xxxxxxxxxx";
index c61530b1dff172e35fd7f812043a39ada8940324..895c0956e2347fc3c567b288b38d6b499ff456c3 100644 (file)
@@ -38,7 +38,7 @@
 void test_07()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_fifo3";
 
index c25e0021532c3effeb31b9f5d24635d3efafa560..04f4b44358e6dc26673631e30985d972d46a4d35 100644 (file)
@@ -34,7 +34,7 @@ protected:
 int main()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc = locale(locale::classic(), new Cvt);
   wfilebuf* fb = new wfilebuf;
index 434f1e2312d6e6ef6b0e07b71c920e659ef49ef1..f10ff4f8c40dcec04dbd8d131406e40054db0589 100644 (file)
@@ -27,7 +27,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
 
   locale loc;
@@ -47,7 +47,7 @@ void test02()
   VERIFY( ob.getloc() == loc );
 }
 
-main() 
+int main() 
 {
   test02();
   return 0;
index 1899278d415ab2dba2c24cdfa3858abda0e238bf..0cd5d0f27fd36eb24022209fc80743df49a076a4 100644 (file)
@@ -35,7 +35,7 @@ protected:
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc_s(locale::classic(), new state_codecvt);
   filebuf ob;
@@ -48,7 +48,7 @@ void test03()
   VERIFY( ob.getloc() == loc_s );
 }
 
-main() 
+int main() 
 {
   test03();
   return 0;
index efe8cbbeea0da44a20c9c4496d0578247dd9a45d..6cddf0190d077419df14834fa2dbd505577ab514 100644 (file)
@@ -28,7 +28,7 @@
 void test07()
 {
   using std::locale;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc;
   std::filebuf ob;
@@ -46,7 +46,7 @@ void test07()
   VERIFY( ob.getloc() == loc_de );
 }
 
-main() 
+int main() 
 {
   test07();
   return 0;
index 7fe0d4cc65b424cb86d7da41b581d091218ea118..c47a6faac5187e350e6a1b029251949d6bf8ccd7 100644 (file)
@@ -27,7 +27,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
 
   locale loc;
@@ -47,7 +47,7 @@ void test02()
   VERIFY( ob.getloc() == loc );
 }
 
-main() 
+int main() 
 {
   test02();
   return 0;
index 393732bee3653d0d94616ed69739a1bbfac81c37..067e48784b25a25b92d1622326e4ca30a94b221a 100644 (file)
@@ -35,7 +35,7 @@ protected:
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc_s(locale::classic(), new state_codecvt);
   wfilebuf ob;
@@ -48,7 +48,7 @@ void test03()
   VERIFY( ob.getloc() == loc_s );
 }
 
-main() 
+int main() 
 {
   test03();
   return 0;
index 8a76a997c9a68439d92d1857bd3f29b14e2f32f8..9cf3d5bd4d3bcb2312bfbddc7e7837397173a5d7 100644 (file)
@@ -28,7 +28,7 @@
 void test07()
 {
   using std::locale;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc;
   std::wfilebuf ob;
@@ -46,7 +46,7 @@ void test07()
   VERIFY( ob.getloc() == loc_de );
 }
 
-main() 
+int main() 
 {
   test07();
   return 0;
index d8ec0a3546e9794a1e99cd6ad68e5033d5e91e67..6f6879b127c6f11bdcd8958b3f1c626f2a6b147b 100644 (file)
@@ -65,11 +65,9 @@ void test05()
   typedef std::filebuf::off_type       off_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   std::filebuf                                 f_tmp;
-  std::streamsize                      strmsz_1, strmsz_2;
   std::streamoff                       strmof_1, strmof_2;
-  int                                  i = 0, j = 0, k = 0;
 
   // GET
   // int in_avail()
@@ -93,7 +91,7 @@ void test05()
   VERIFY( strmof_1  == 0 ); // empty file
 }
 
-main() 
+int main() 
 {
   test03();
   test05();
index 4b4c022a1c28d8852535e95d4ad1384170f89905..b4569bbb22dbe5b70346afcf8506f741b8efa339 100644 (file)
@@ -32,7 +32,7 @@ const char name_02[] = "filebuf_members-1.txt";
 // Test member functions.
 void test_01() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char* name_03 = "filebuf_members-3"; // empty file, need to create
 
   std::filebuf fb_01; // in 
index 424d4b63eb52cb9cc9a0cd4e7fc8cc484792faae..dffdc748dbc0a312b773c938d7507659041e2ab2 100644 (file)
@@ -32,7 +32,7 @@ const char name_02[] = "filebuf_members-1.txt";
 // Test member functions.
 void test_01() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   const char* name_03 = "filebuf_members-3"; // empty file, need to create
 
   std::filebuf fb_01; // in 
index cf0ffa94c87ebd5009cade0959145d21592baa4e..b50208db3639c338938f8f2836cea3fa3eb18597 100644 (file)
@@ -36,7 +36,7 @@ const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
 
 void test_03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int first_fd = ::open(name_01, O_RDONLY);
   VERIFY( first_fd != -1 );
   FILE* first_file = ::fdopen(first_fd, "r");
index c08817f7eabb293fdda59f07488425a96c2cfb41..db8f2d7bc573a7798ad2c567a735880bb995e061 100644 (file)
@@ -29,7 +29,7 @@
 // Charles Leggett <CGLeggett@lbl.gov>
 void test_05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_file5";
 
   std::fstream scratch_file;
index 99c70a9cd1e27c1e356bf6c811562bc6f70afdad..85eeededdd21f4d59dec35afa0ea57307e7e6872 100644 (file)
@@ -37,7 +37,7 @@
 // libstdc++/9507
 void test_06()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_fifo2";
 
   signal(SIGPIPE, SIG_IGN);
index fd960e455112592fd588acee7f150eb0d63c67a4..d66fb1442a8e38aecd2b46ab5e7c1e1d2f2b267a 100644 (file)
@@ -58,7 +58,7 @@ template<typename T>
 
 void test03() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string control01("11111");
   std::string test01;
 
index 9c5da4485cf65fa7c558fdd893ba6cc9783db836..661bd1d308488e96063d1087c1455122b0a16ccd 100644 (file)
@@ -36,7 +36,7 @@ public:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef OverBuf::traits_type  traits_type;
 
   OverBuf fb;
@@ -47,7 +47,7 @@ void test01()
   fb.close();
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 4984602703aab9320a2b34cf9c478ba1ff5eb3d1..f9c69f84e8674ee5a0764d8155e2ca38818cd588 100644 (file)
@@ -36,7 +36,7 @@ public:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef OverBuf::traits_type  traits_type;
 
   OverBuf fb;
@@ -46,7 +46,7 @@ void test01()
   fb.close();
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 795c58ccf3e6b04638e90a754c1cae239dbb1647..6684d5dea5bfc19afccc300ca3a51cfabf532f30 100644 (file)
@@ -41,14 +41,14 @@ public:
  
 protected:
   int_type 
-  overflow(int_type c = traits_type::eof()) 
+  overflow(int_type c __attribute__((unused)) = traits_type::eof()) 
   { return traits_type::not_eof(0); }
 };
 
 void
 test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   testbuf ob;
   std::ostream out(&ob); 
 
index 18ed29d328c428a11dd14eb4b42aa5f7e89255ef..dc163bae1a0b1c617b1b93b2f75bd3d31d588389 100644 (file)
@@ -39,7 +39,7 @@ class Cvt_to_upper : public std::codecvt<char, char, mbstate_t>
 void test10()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale c_loc = locale::classic();
   locale loc(c_loc, new Cvt_to_upper);
@@ -65,7 +65,7 @@ void test10()
   VERIFY( tmp == str );
 }
 
-main() 
+int main() 
 {
   test10();
   return 0;
index b752bce8a492c182d0912511de2c89f2dc5c0778..9904f194109c5de93831f20b6fd2ea88ab6f92c4 100644 (file)
@@ -51,7 +51,7 @@ protected:
 void test14()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   locale loc =  locale::classic();
   loc = locale(loc, new errorcvt);
@@ -65,7 +65,7 @@ void test14()
   fbuf1.close();
 }
 
-main() 
+int main() 
 {
   test14();
   return 0;
index 2c8d078f0e446434687538d698ae9ad6893bcd62..8133045afe527b0d81e83d51d47f87f359e99506 100644 (file)
@@ -37,7 +37,7 @@ public:
 void test15()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   OverBuf fb;
   fb.open(name_08, ios_base::out | ios_base::trunc);
@@ -62,7 +62,7 @@ void test15()
   fbin.close();
 }
 
-main() 
+int main() 
 {
   test15();
   return 0;
index fc96a047fdfdc8344faa4a7fab08ca9f566a7fbd..70788e31aaa319486bc6b190916c090709510225 100644 (file)
@@ -25,7 +25,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wfilebuf fb;
   locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
index 2415a2edcfbb425c7b4f9d269618d82ccf00edeb..0e6297a0adda4934195f8c5a66bffe26baddc0dc 100644 (file)
@@ -25,7 +25,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wfilebuf fb;
   locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
index fc0092df09cbbaa789c48f4a10f05456e8ed8927..9558393d4846d80e21d2eedb43a772f05ac280ca 100644 (file)
@@ -25,7 +25,7 @@
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wfilebuf fb;
   locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
index 1886f8e630f734b77f69832ba3d9daa07ae7131f..7e6010d57378fda3cead38ca43bb5efc08228d3b 100644 (file)
@@ -25,7 +25,7 @@
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wfilebuf fb;
   locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
index 07e1ddad810c8c78efe12b67de47c98328bf34c9..6bf975193015e8b739184289d04b511c85402ed3 100644 (file)
@@ -29,7 +29,7 @@ const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbuf;
   filebuf::int_type r1, r2;
@@ -48,7 +48,7 @@ void test01()
   VERIFY( r2 == filebuf::traits_type::eof() );
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index f1b30d8de1abce812f741231c5360f57a1ec9669..14cc40f01529916e7cf0bbbe26774aa0b8d9b25a 100644 (file)
@@ -36,7 +36,7 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
   // int_type sbumpc()
   // if read_cur not avail returns uflow(), else return *read_cur & increment
@@ -72,7 +72,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index f649ef87dc6e7a49c989fc55711a32729af4b892..7236e939a35c6f9eabdeaef57ab2f9180234c3f9 100644 (file)
@@ -37,7 +37,7 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
   // int_type sbumpc()
   // if read_cur not avail returns uflow(), else return *read_cur & increment
@@ -85,7 +85,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 1a43f327dca6f8e444d56c88ee64ac70e4a955bb..107af85e16f14c7ada011d479626eb77c7c54edf 100644 (file)
@@ -36,7 +36,7 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
   // int_type sbumpc()
   // if read_cur not avail returns uflow(), else return *read_cur & increment
@@ -56,7 +56,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index e06e0625efbb10c3fcf35b794ba62982e7c2345b..f57578d29f9ec6f119657068b85122ac1e13d99d 100644 (file)
@@ -36,7 +36,7 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
   // int_type sbumpc()
   // if read_cur not avail returns uflow(), else return *read_cur & increment
@@ -72,7 +72,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 54a3047ad003f9f080a701cad1f3f9b328b8ea2e..a2804584a0b88efc29d695bccf623266af71b241 100644 (file)
@@ -37,7 +37,7 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
   // int_type sbumpc()
   // if read_cur not avail returns uflow(), else return *read_cur & increment
@@ -84,7 +84,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index a650e8eab962d649c850c4597aa6e2a4a3ae9427..37048f2dc82a36b9b9f7ed61e6017d534eab5a4a 100644 (file)
@@ -36,7 +36,7 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
   // int_type sbumpc()
   // if read_cur not avail returns uflow(), else return *read_cur & increment
@@ -57,7 +57,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 8e419432ad8d4397e18b21655eb61360969d84fa..e4468b23b90163ea4a063a32b633b7a0da2b851e 100644 (file)
@@ -30,7 +30,7 @@ const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
 void test12()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbuf;
 
@@ -48,7 +48,7 @@ void test12()
   fbuf.close();  
 }
 
-main() 
+int main() 
 {
   test12();
   return 0;
index a391d22fc033c37b430a7f9836edc4b32d955f63..0d218a60aa6d21f9fe195d9aa8d018a4e632c298 100644 (file)
@@ -113,7 +113,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_filebuf<gnu_char_type, gnu_char_traits> gnu_filebuf;
   
   try
index 2da27f13dcd4dccee598d87d4aeefb57c4bef293..e5f6f99b18757afb438e32f476e63ab6ec1c9038 100644 (file)
@@ -39,9 +39,8 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
 
   int_type c1;
   int_type c2;
@@ -117,7 +116,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index a655fd81ab768ff5ff5d46c2deec661183323e83..248f819cc8f83456f49608aabb43f0341cc6b202 100644 (file)
@@ -38,9 +38,8 @@ void test05()
   typedef filebuf::pos_type    pos_type;
   typedef filebuf::off_type    off_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
 
   int_type c1;
   int_type c2;
@@ -116,7 +115,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 40c62aafe25d61ad4574fb121b869de5fde4c0d4..f83af783d3c2feafc59be4d1eeb8d522fac3be05 100644 (file)
@@ -39,9 +39,8 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
 
   int_type c1;
   int_type c2;
@@ -117,7 +116,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index a1adf32b8be7599b214e6511b8995e83b0f559e5..84a52a741006046ac0cfc946519408b732cb33cb 100644 (file)
@@ -39,9 +39,8 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
 
   int_type c1;
   int_type c2;
@@ -118,7 +117,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index fd30a33007df56bc695d0eec26192604a4dc5145..9fc418f830ebbe0f6a16ce97c58b28e70ddb2580 100644 (file)
@@ -38,9 +38,8 @@ void test05()
   typedef filebuf::pos_type    pos_type;
   typedef filebuf::off_type    off_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
 
   int_type c1;
   int_type c2;
@@ -115,7 +114,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 786fb245a16a1cdbf907295788c32366f69a1437..cae238940cd49494024ef341680a2b77f12874b3 100644 (file)
@@ -39,9 +39,8 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
 
   int_type c1;
   int_type c2;
@@ -116,7 +115,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index b0a192d2337993e4ebcd4383b004ef13815beb02..2a798dbbf16cf0e4c6ea8a0c75ec0ab934808c5a 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::filebuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index df03ad6cae2a3d95b4b41cf82943e3340fc061b5..e78abf1ad7dbaa2a43f2253c60759dffdb1af380 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::filebuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index 8749ff0bea4ca6af6c73a1db1dd115e93b7edee5..d803e5551fffe964ab3ca84e8542cd0de13ee70f 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::filebuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index f3f3cc712d484757991bed980742c4d30db05ba7..003f281658816ece0683b68e97dd490a2f6b450e 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   typedef wfilebuf::pos_type pos_type;
   typedef wfilebuf::int_type int_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name[] = "tmp_seekoff-1.tst";
   const int_type eof = wfilebuf::traits_type::eof();
 
@@ -117,7 +117,7 @@ void test01()
        }
       int_type c1 = fb.sbumpc();
       VERIFY( c1 != eof );
-      VERIFY( c1 == wstr[index % wlen] );
+      VERIFY( static_cast<wchar_t>(c1) == wstr[index % wlen] );
     }
 
   pos_type p3 = fb.pubseekoff(0, ios_base::cur);
index 9ad978bee9f0b3b12461547762576005e6f615f9..91412bcf4ca6911cd54f47488d1a107266b5dfda 100644 (file)
@@ -31,7 +31,7 @@ void test02()
 {
   using namespace std;
   typedef wfilebuf::int_type int_type;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name[] = "tmp_seekoff-2.tst";
 
   locale loc = __gnu_test::try_named_locale("se_NO.UTF-8");
index adec7b2130fa98d7e964412be7dd82839a4c69b8..e48b6704bbb65186ddf82c2bbb103ec21bedda8f 100644 (file)
@@ -79,7 +79,7 @@ protected:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   // seekoff
   wfilebuf fb;
index 02f7b67047cd685b64e1dc154ee9d09745d0c8a2..fdb817dce2afb62a5b69f744d79b26b9c59c8653 100644 (file)
@@ -113,7 +113,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_filebuf<gnu_char_type, gnu_char_traits> gnu_filebuf;
   
   try
index 3230e121ed250bb58d80845b6fdb4033e7511ac0..55345b9748a79739790ea768affa76fbaba88406 100644 (file)
@@ -39,9 +39,7 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
+  bool test __attribute__((unused)) = true;
 
   int_type c1;
   int_type c2;
@@ -97,7 +95,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index ecaa19fb2d8f34063dfa7c3ebb1bed81e974fadd..23f663cda0a4f6fbed2314673f575e1459229280 100644 (file)
@@ -38,9 +38,7 @@ void test05()
   typedef filebuf::pos_type    pos_type;
   typedef filebuf::off_type    off_type;
 
-  bool                                 test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
+  bool test __attribute__((unused)) = true;
 
   int_type c1;
   int_type c2;
@@ -97,7 +95,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index e3c9ac3f3f3d0a20219fe75764dc9bffc3e5468d..8773f6e00bb9bccf75868e028e6412cf51eeb948 100644 (file)
@@ -39,9 +39,7 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
+  bool test __attribute__((unused)) = true;
 
   int_type c1;
   int_type c2;
@@ -99,7 +97,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 2fde41aed9e5e5b36585d65fb747f35c8999fdfd..cec2cdf748f5ff4a4af8cce187d697fddf594e9d 100644 (file)
@@ -39,9 +39,7 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
+  bool test __attribute__((unused)) = true;
 
   int_type c1;
   int_type c2;
@@ -98,7 +96,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 71fb68bf3ff330e9732581ab255cea45735e4d27..c564e1bda288c740d8a640c4202878307eb76841 100644 (file)
@@ -38,9 +38,7 @@ void test05()
   typedef filebuf::pos_type    pos_type;
   typedef filebuf::off_type    off_type;
 
-  bool                                 test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
+  bool test __attribute__((unused)) = true;
 
   int_type c1;
   int_type c2;
@@ -96,7 +94,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index ee8c65f51543e44496c3ecef6600f95c1d7ac186..a919f4fc32ede567655e29ac5b27f4d64dd05088 100644 (file)
@@ -39,9 +39,7 @@ void test05()
   typedef filebuf::off_type    off_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  streamoff                    strmof_1, strmof_2;
+  bool test __attribute__((unused)) = true;
 
   int_type c1;
   int_type c2;
@@ -98,7 +96,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 70585273b011d78f49ca3c4853ce545461ec4df2..39f18de3b05ebf982d4c8e2560069ae6d117aafd 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::filebuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index d0cc3b1f80c906bca749da14abf6ca537f10c3c0..2bf1b831b00cb7a380acf05bc4cb856176bd8afd 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::filebuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index 35e5a4f0db2e91481326cbe37a4b9ea1e116cf33..9dd1ab8a0669b8df388d8a5ace5ec5dc4616ed88 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::filebuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index fc03e0b431a80d50f88f4fbccc3c33665d4479bb..37ae534eecc21ff3ed8170c56ebc9e378f65602a 100644 (file)
@@ -79,7 +79,7 @@ protected:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // seekpos
   wfilebuf fb;
index 25511d93ea636e6c4600e9e44e2976b6a9d2b84a..e0113c9594f456a5719588dc5ca35e59443774e6 100644 (file)
@@ -38,7 +38,7 @@ public:
   bool
   check_pointers()
   { 
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     test = (this->pbase() == NULL);
     test &= (this->pptr() == NULL);
     return test;
@@ -57,9 +57,7 @@ void test05()
   typedef std::filebuf::off_type       off_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
-
-  int_type c1;
+  bool test __attribute__((unused)) = true;
 
   {
     testbuf                            f_tmp;
@@ -74,7 +72,7 @@ void test05()
     testbuf                            f_tmp;
     
     f_tmp.open(name_01, ios_base::out | ios_base::in);
-    int_type c1 = f_tmp.sbumpc();
+    f_tmp.sbumpc();
     
     // setbuf
     // pubsetbuf(char_type* s, streamsize n)
@@ -83,7 +81,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 6261c999c37b02edfe1f447de975a943da7a15aa..7cca957e17f76d687393b519f9cc7d093016bf3e 100644 (file)
@@ -27,7 +27,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buf[512];
   const char* strlit = "how to tell a story and other essays: mark twain";
   const size_t strlitsize = std::strlen(strlit);
@@ -38,7 +38,7 @@ void test01()
   VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index f7a65870df4bfc66c0d17f8c5addb831d5790f63..b5512d765347ecd79783f362b72a4432bd095de0 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buf[512];
   const char* strlit = "how to tell a story and other essays: mark twain";
   const size_t strlitsize = std::strlen(strlit);
@@ -41,7 +41,7 @@ void test02()
   VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
 }
 
-main() 
+int main() 
 {
   test02();
   return 0;
index 2a1012d812e5ea89f6c2aaf14fe4ccfee3bfb474..9b7a942b206fe274142fafd2dad0c223447bb607 100644 (file)
@@ -37,7 +37,7 @@ void test05()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                     c1, c2, c3;
 
   // int_type sgetc()
@@ -64,7 +64,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index ca92295456ee178e68c3a1b785b589f92a93772b..0395682dec361fb86620c7f98c053d50dd0a332b 100644 (file)
@@ -38,7 +38,7 @@ void test05()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                     c1, c2, c3;
 
   // int_type sgetc()
@@ -79,7 +79,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index cdd9bf4705160a90845dc6882a72bf1a28baaab4..a663de2409cab2e0d326a0adad2451743316a841 100644 (file)
@@ -37,8 +37,8 @@ void test05()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sgetc()
   // if read_cur not avail, return uflow(), else return *read_cur  
@@ -62,7 +62,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 3c539de18402cf11d3b61434e602207ce64ef047..bb08c18636d2b3b300a05dc9b8b1c1bfe27640e8 100644 (file)
@@ -37,7 +37,7 @@ void test05()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                     c1, c2, c3;
 
   // int_type sgetc()
@@ -64,7 +64,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 09b6e8a7f0af79b775503a32c18924300212797f..1e4bb4ea091953d73a228471079cbf4c44ab6a04 100644 (file)
@@ -38,7 +38,7 @@ void test05()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                     c1, c2, c3;
 
   // int_type sgetc()
@@ -78,7 +78,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 1db40febda2bb6470e0bc5bd3b2af8e0948740cb..0357a0ba4faeff3c1c5534ba155a09b55b9d7a6b 100644 (file)
@@ -37,8 +37,8 @@ void test05()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sgetc()
   // if read_cur not avail, return uflow(), else return *read_cur  
@@ -63,7 +63,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 523bdeac34b76558476ee66b8c5952ad6a7bfa1f..8f6d83c05979eb8d7abb455e0aed40dd6481b360 100644 (file)
@@ -37,13 +37,13 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
+  streamsize                   strmsz_1, strmsz_2;
   char carray1[13] = "";
   char carray2[8192] = "";
   char buffer[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c1, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -79,7 +79,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 9942a822b264e18960b707f809e4b4041d514bbc..dd2ea4736f4143ccd4a2fdd956097678a609a763 100644 (file)
@@ -38,13 +38,13 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
+  streamsize                   strmsz_1, strmsz_2;
   char carray1[13] = "";
   char carray2[8192] = "";
   char buffer[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c1, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -92,7 +92,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 1039c397303c7d619a358bd85f9e7385dee69698..9865b7745e7c1aa88155cf319b1ddfc8c9b97079 100644 (file)
@@ -37,12 +37,11 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
-  char carray1[13] = "";
+  streamsize                   strmsz_1, strmsz_2;
   char carray2[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c2, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -71,7 +70,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 451e6dcfee3364f28906ee1eebfd72e1feb6e85c..e77cfee94d77e4c56181ba519fa972b6fa8376f0 100644 (file)
@@ -37,13 +37,12 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
-  int                                  i = 0, j = 0, k = 0;
+  streamsize                   strmsz_1, strmsz_2;
   char carray1[13] = "";
   char carray2[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c1, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -76,7 +75,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index a3fd754e36dcd9d67437146ba5826b96868bfc1b..90f00879132ac5ba5f158e0e454410551ddb09f0 100644 (file)
@@ -38,13 +38,12 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
-  int                                  i = 0, j = 0, k = 0;
+  streamsize                   strmsz_1, strmsz_2;
   char carray1[13] = "";
   char carray2[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c1, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -88,7 +87,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index c0e6be074433a9c764061ed9bb9be613ca5533f1..e94de1c9378c39bedff9cbea726e233b41a79ecc 100644 (file)
@@ -37,13 +37,11 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
-  int                                  i = 0, j = 0, k = 0;
-  char carray1[13] = "";
+  streamsize                   strmsz_1, strmsz_2;
   char carray2[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c2, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -72,7 +70,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index d3e41805938dae96a424f3bf798712b9220b927e..517d35e64ee5120aa3f5017496da9009961168f1 100644 (file)
@@ -29,7 +29,7 @@ void test06()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buffer[] = "xxxxxxxxxx";
   typedef filebuf::int_type    int_type;
   filebuf fbuf01;
@@ -39,7 +39,7 @@ void test06()
   VERIFY( buffer[0] == '/' );
 }
 
-main() 
+int main() 
 {
   test06();
   return 0;
index 3c740216876e8fe5d17378aab3b3e404a1a785e1..057f72de32cfb231c0c402e3d7c47a92a4974f0e 100644 (file)
@@ -33,7 +33,7 @@
 void test_01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_fifo1";
 
   const int count = 10000;
index 3a6aa302cce4a7edd7a383c181822de0e2b795d3..1e62cf2389e366c8b2b7d07ddb0b0ea7f56097d5 100644 (file)
@@ -25,7 +25,7 @@
 void test_02()
 {
   using namespace std;
-  bool test = true;  
+  bool test __attribute__((unused)) = true;  
   const char* name = "tmp_file1";
   const char* strlit = "0123456789";
   
index d2d9d3b1c55df675658b26cc6d1030335b7b651d..1d22aa5c693fc0df5de3b8afff5acc1139d74427 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -77,7 +77,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 973d89b41f32230361865519fe7eb3f511e90b01..93764d9d7ece01e6c5cbf1ba859db24b884d483a 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c3;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -76,7 +76,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index fd7124a14481357072dc8db3db56a38429ebd9b3..6d26eac49cf9b3f167a942540f3b2c63f76558cf 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c2;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -59,7 +59,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index fc89dd5e644a8616adb5e60efadfee9bb3fd391d..e30a2c6416e0284a186ca670a99eb4cb4aac595d 100644 (file)
@@ -36,8 +36,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -75,7 +75,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 8c2c0e868e5ca2d126fce70f07f797fac4023774..151b6367b14b4ed94bf64c7588b0bf8a698b5c10 100644 (file)
@@ -37,8 +37,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c3;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -74,7 +74,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 816c3f85406b3cfaf8fb79b87a24626edfe2810c..9627d2ac665ee839ed10499fd42caeb65c91c904 100644 (file)
@@ -36,8 +36,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c2;
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -56,7 +56,7 @@ void test05()
  }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 1d216e8ec207e4b3c45b43b0dcba7bcfa14c1e1c..35665f55e3b70a63e779e2b69a0459578cfcd10b 100644 (file)
@@ -37,7 +37,7 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                     c1, c2, c3;
 
   // int_type sputbackc(char_type c)
@@ -85,7 +85,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index d867e5b87a273d9df3eb8db6050a160d9cc9ce50..27c50b22a98e3d1b7d90a85faffe8be1b1b1963a 100644 (file)
@@ -38,7 +38,7 @@ void test01()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
   int_type                     c1, c2, c3;
 
@@ -95,7 +95,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 5b5dbb557c1a5142851c5062945afcd8fea694a0..1f20f19901dfdede9aa037bde4d7b019a4803aa3 100644 (file)
@@ -37,8 +37,8 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputbackc(char_type c)
   // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
@@ -63,7 +63,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index a9267cf003439849612955697ca30ba0499da2c7..52900e84eb3fc696d6d472681df3b96734177e6f 100644 (file)
@@ -37,7 +37,7 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                     c1, c2, c3;
 
   // int_type sputbackc(char_type c)
@@ -85,7 +85,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index e7166106d59ef1f38167e4409672fd0e2049bb53..0174a928e89df43d3dc5fb4c7cb657a0b44d1c69 100644 (file)
@@ -38,7 +38,7 @@ void test01()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
   int_type                     c1, c2, c3;
 
@@ -94,7 +94,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 2ff9a6c5aad480381480947144c7b69985652816..ce6de8ec07681964983a929f160880db7325a422 100644 (file)
@@ -37,8 +37,8 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputbackc(char_type c)
   // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
@@ -64,7 +64,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index b5e470f332a5da13de443a993ea9ed01bb320778..5ad5aeea235ca366bf7194c90497b2c5f5b25ade 100644 (file)
@@ -31,7 +31,7 @@ const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
 void test09()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbuf;
   fbuf.open(name_01, ios_base::in);
@@ -41,7 +41,7 @@ void test09()
   VERIFY( r == filebuf::traits_type::eof() );
 }
 
-main() 
+int main() 
 {
   test09();
   return 0;
index 31b176bcbf6aa46523cf9904142e09012745bb2e..e331e69b07d39c2f6082f8a68bffb38a257559d0 100644 (file)
@@ -37,10 +37,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c3;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -58,7 +56,7 @@ void test05()
    }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 275def1839732d13238f45ad75765c46d6446d64..94b4c624ae5c72e70512c6edff0ce09c998bcdd0 100644 (file)
@@ -38,10 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -65,7 +63,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 09086b07d60f005870aa77071562e87ab454f22c..6219b34062e57978e43395da43b407861b359ca1 100644 (file)
@@ -37,10 +37,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -64,7 +62,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 680e058a9049ff0763443d517a8672d4471ab676..70ef74bf1c0af94fabf3ae60b1ac6d4c54501cf7 100644 (file)
@@ -37,10 +37,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c3;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -59,7 +57,7 @@ void test05()
    }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index abbdea55fbd6e007448f60e29a5c7a87f00e8ca3..069982adae9d9468233b27eb6232a4d6d3645797 100644 (file)
@@ -38,10 +38,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -64,7 +62,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 78e2b4eb3d6fa786fc91cd8b52572e5f72c02724..d0a24ddb60debbbeec448b23e147e6b818390718 100644 (file)
@@ -37,10 +37,8 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
-  int                                  i = 0, j = 0, k = 0;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sputc(char_type c)
   // if out_cur not avail, return overflow(traits_type::to_int_type(c)) 
@@ -65,7 +63,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 1d100dd3ede01cae9cfb24d800cf3a9c111e38a1..85941c81b2d940e12803c14dbc585267e2044328 100644 (file)
@@ -46,7 +46,7 @@ public:
 // libstdc++/9701 (partial)
 void test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   bool over_expected;
 
@@ -64,7 +64,7 @@ void test11()
   dfbuf_01.close();
 }
 
-main() 
+int main() 
 {
   test11();
   return 0;
index 4888f23bb162e09777e1731de58d18e79bc03363..c5a860db60debe0f5be14baf54ca51ba91ea4e67 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
+  bool test __attribute__((unused)) = true;
+  streamsize                   strmsz_1;
 
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
@@ -56,7 +56,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 7f32662d315cce6e35ec8ca4d2b019a0ef32a86a..84eb9f81cc1f68056c75e043b165e468230ee9b7 100644 (file)
@@ -39,7 +39,7 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
 
   // streamsize sputn(const char_typs* s, streamsize n)
@@ -62,7 +62,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index d17db7abf3b1c2f6f00ef7a2894c57438ae9713f..3753a4be2622f972673d8eeca59e69aeaf5bac39 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
+  bool test __attribute__((unused)) = true;
+  streamsize                   strmsz_1;
 
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
@@ -58,7 +58,7 @@ void test05()
    }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index a9f188cf410ee61e2ace36a8cf4196edbc9e65d2..a2a2322dd865466a3b443fefddd3d6f4e4859e65 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
+  bool test __attribute__((unused)) = true;
+  streamsize                   strmsz_1;
 
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
@@ -57,7 +57,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 2dc0204c94e5d5e2b5276d38ab023a8acb566a65..fce28d32ce37e49ab6445bf64f00a9ed52ecd9e1 100644 (file)
@@ -39,7 +39,7 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
 
   // streamsize sputn(const char_typs* s, streamsize n)
@@ -61,7 +61,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index 26046b17a3500a2fecf2cc8f68494da2fa22ac31..9a4fa156b4242c4e0b1c03f8253bb8984fdcb4bb 100644 (file)
@@ -38,8 +38,8 @@ void test05()
   typedef filebuf::traits_type         traits_type;
   typedef size_t                       size_type;
 
-  bool                                         test = true;
-  streamsize                   strmsz_1, strmsz_2;
+  bool test __attribute__((unused)) = true;
+  streamsize                   strmsz_1;
 
   // streamsize sputn(const char_typs* s, streamsize n)
   // write up to n chars to out_cur from s, returning number assigned
@@ -59,7 +59,7 @@ void test05()
    }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index fb93139862015176239188aa7363b39eb3dac4cb..4fd774ee4a1af6080a25b0505072d3847db11302 100644 (file)
@@ -23,7 +23,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbuf01;
   int len = 35;
index b675d79d0bb87bf80c31494025ec0e085b9682ca..7335ca79992645a28a4002c03c1237d809940eda 100644 (file)
@@ -50,7 +50,7 @@ public:
 // libstdc++/9701 (partial)
 void test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   bool over_expected;
 
@@ -68,7 +68,7 @@ void test11()
   dfbuf_02.close();
 }
 
-main() 
+int main() 
 {
   test11();
   return 0;
index 7e3b9c0762198d48bd12478e98eb472a8cfb5cc2..873efa1c27ff25958e3e06745bab35ebf6cc3ecd 100644 (file)
@@ -37,7 +37,7 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                             c1, c2, c3;
 
   // int_type sungetc()
@@ -64,7 +64,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 5cbaf1b8db224edaf3c3b8fcd80c407d924d9597..fb45945119b7021e1dad6457f5ea06487c322b59 100644 (file)
@@ -38,7 +38,7 @@ void test01()
   typedef filebuf::traits_type         traits_type;
   typedef size_t               size_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
   int_type                     c1, c2, c3;
 
@@ -76,7 +76,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index daefb70b997555c3bc4db5faceb50a11bd11912c..8c8737d601e23c6dc4e4a1d5b4492d8b30f77b40 100644 (file)
@@ -37,8 +37,8 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sungetc()
   // if in_cur not avail, return pbackfail(), else decrement and
@@ -63,7 +63,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index d35a3f2ae8b0aa4c881830ca6271ff177ff04d22..d0bbb5b21dbf8b1e121b0ee2cd35951f44f8ebe1 100644 (file)
@@ -37,7 +37,7 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
   int_type                             c1, c2, c3;
 
   // int_type sungetc()
@@ -65,7 +65,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index b45ba2676bfafe58eca4d17536519817657e3b29..72f90ed08a448df2fe1368a4487c52ed1aaa19d7 100644 (file)
@@ -38,7 +38,7 @@ void test01()
   typedef filebuf::traits_type         traits_type;
   typedef size_t               size_type;
 
-  bool                                 test = true;
+  bool test __attribute__((unused)) = true;
   streamsize                   strmsz_1, strmsz_2;
   int_type                     c1, c2, c3;
 
@@ -75,7 +75,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index f08df15e7b839b6543787a25e37fde6872d4e7c0..73718d9fa457d1a5b97f373b63f4ea88ce1bf435 100644 (file)
@@ -37,8 +37,8 @@ void test01()
   typedef std::filebuf::int_type       int_type;
   typedef filebuf::traits_type                 traits_type;
 
-  bool                                         test = true;
-  int_type                     c1, c2, c3;
+  bool test __attribute__((unused)) = true;
+  int_type                     c1, c2;
 
   // int_type sungetc()
   // if in_cur not avail, return pbackfail(), else decrement and
@@ -64,7 +64,7 @@ void test01()
   }
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 02feef5a6e8c8fd4848aad063312c8565038cf7b..a3071b787bd387dc8a78e5e2648ddfefaf03c4de 100644 (file)
@@ -80,7 +80,7 @@ public:
 // libstdc++/1057
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string text = "abcdefghijklmn";
   
   // 01
index a0411e2fff301b5cb059bc8ceaa6604120e482ed..9448c8490c7fbc323286bbc2f06f6828a544b5d4 100644 (file)
@@ -51,7 +51,7 @@ protected:
 void test13()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc =  locale::classic();
   loc = locale(loc, new errorcvt);
@@ -65,7 +65,7 @@ void test13()
   fbuf1.close();
 }
 
-main() 
+int main() 
 {
   test13();
   return 0;
index 40e51371c9c9c0fb01d78963d554cda25e14f089..60d5d38d78d3bfcb9fb5e4e9fa377367387b5c22 100644 (file)
@@ -47,7 +47,7 @@ protected:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "filebuf_virtuals-1.txt";
 
   string str;
index 695ca8221b52c3393efdfc2d9572dbc81e7a5918..156421092dd00976cbdc334c5a510f35d20c3baf 100644 (file)
@@ -48,7 +48,7 @@ public:
 void test16()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_fifo1";
   
@@ -97,7 +97,7 @@ void test16()
   fb.close();
 }
 
-main() 
+int main() 
 {
   test16();
   return 0;
index 8032a42f6c8472b08c849d9583ffb3ca5d9a472f..da498f2112c3c92894a4f88d9170ca0e144259d2 100644 (file)
@@ -25,7 +25,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
 
   filebuf fb_out, fb_in_out;
index 0e4c077bc21470420ec2479ce37dd79c3186324c..768cba16172da78e83f9c8459b825377e3cdc431 100644 (file)
@@ -62,7 +62,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "filebuf_virtuals-1.txt";
   locale loc (locale::classic(), new Cvt_to_upper);    
 
index d55b89c90ac12d2be52a291ae9dfabe0c938580e..8afb2b6621af7d14b2ba67ed681017d2bb2517e7 100644 (file)
@@ -29,7 +29,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name[] = "tmp_underflow-1.tst";
 
   const char cstr[] =
@@ -99,7 +99,7 @@ void test01()
   streamsize n = fb.sgetn(wbuf, wlen + 1);
   fb.close();
 
-  VERIFY( n == wlen );
+  VERIFY( n == static_cast<streamsize>(wlen) );
   VERIFY( !wmemcmp(wbuf, wstr, wlen) );
 }
 
index d0753650d120d2eb7da661b57f12aef5be4c5b58..ba59cb0d7c7b6bee278ff4f4cb3294fa0a2bdad8 100644 (file)
@@ -26,7 +26,7 @@ const char name_01[] = "tmp_11389-1";
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbout;
   fbout.open(name_01, ios_base::out);
index 1717f2a5aeb7d6e144995cddc1d786340686dd88..3917ca5a84627d2dd434c3fe1e2de974ace5ddf1 100644 (file)
@@ -26,7 +26,7 @@ const char name_02[] = "tmp_11389-2";
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbout;
   fbout.open(name_02, ios_base::out);
index c23cb56f26b458b78f3dc6abaf72a43951bc7a38..dcf164bb37df3349683911f22309dfb2ab43b094 100644 (file)
@@ -26,7 +26,7 @@ const char name_03[] = "tmp_11389-3";
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbout;
   fbout.open(name_03, ios_base::out);
index ec2f0f892455a250f9b92c3eaa32892ff26e8c2d..5b4ebe4f6efa499ea9a03a580ccf6f8d92ef5c5d 100644 (file)
@@ -26,7 +26,7 @@ const char name_04[] = "tmp_11389-4";
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   filebuf fbout;
   fbout.open(name_04, ios_base::out);
index 77616ed5d91e9edfa01b1d4e8b8a6fa81415bc49..5f255b2dc22428c7843fe733174e92ce4386b7ff 100644 (file)
@@ -29,7 +29,7 @@
 void test02()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name[] = "tmp_underflow-2.tst";
 
   const char cstr[] =
@@ -100,7 +100,7 @@ void test02()
   streamsize n = fb.sgetn(wbuf, wlen + 1);
   fb.close();
 
-  VERIFY( n == wlen );
+  VERIFY( n == static_cast<streamsize>(wlen) );
   VERIFY( !wmemcmp(wbuf, wstr, wlen) );
 }
 
index 169d3ebfa25f7b495d94177584c9cd250ac03453..8812f1e38280d8fe0fa53c34de0bfd6752ba1ec1 100644 (file)
@@ -29,7 +29,7 @@
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char name[] = "tmp_underflow-3.tst";
 
   const char cstr[] =
@@ -101,7 +101,7 @@ void test03()
   for (int i = 0; i < loops; ++i)
     {
       streamsize n = fb.sgetn(wbuf, wlen);
-      VERIFY( n == wlen );
+      VERIFY( n == static_cast<streamsize>(wlen) );
       VERIFY( !wmemcmp(wbuf, wstr, wlen) );
     }
 
index 00fb3774489b12a69686f25e43b6494e43eb51af..75301590050327efc9d80c4141d1ef1836d4d948 100644 (file)
@@ -27,7 +27,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
 
   locale loc (__gnu_test::try_named_locale("se_NO.UTF-8"));
@@ -41,7 +41,7 @@ void test01()
   fb_out.close();
 
   fb_in_out.open("tmp_underflow.tst", ios::in | ios::out);
-  while (fb_in_out.sbumpc() != filebuf::traits_type::eof());
+  while (fb_in_out.sbumpc() != wfilebuf::traits_type::eof());
 
   VERIFY( fb_in_out.sputc(L'x') == L'x' );
   fb_in_out.close();
index f8636b0cc303c785ab6cbbad1016211270f564c0..5d8e25e5325e6f5ce74e59871c3aadc5c4e54604 100644 (file)
@@ -29,7 +29,7 @@
 void test05()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_underflow-5";
 
   wfilebuf fb;
index 8a5797053fb8f0bdd6e7702c79feba8858e79558..3059724b44e67772c74877505717ab7a07a4771b 100644 (file)
@@ -162,7 +162,7 @@ protected:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc;
   loc = locale(loc, new checksumcvt<wchar_t>);
index 5bd831378d7d657446f9942b3fe7aa0ab582df3a..f1fd8ef412c537a97ce2a33144bacd96c81dc31c 100644 (file)
@@ -27,7 +27,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_9520";
 
   FILE* file = fopen(name, "w");
index 4f78ed0d19395a8b6cf0da7d5b1d97dc1ef4dd5a..c71e0e86b94c4034a0f151c6176ec09d81d7e825 100644 (file)
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_fstream<gnu_char_type, gnu_char_traits> gnu_fstr;
 
   try
index a7f46d61d8a30207beff6c3554f212f33ae60654..cf838faab05c813aa9052e50791355b6663f37c7 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::fstream test_type;
   typedef std::iostream base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 136252b8efb3c948f67f12f9a25be98fa13e4631..b5606c0169fd311ac54fc1bc9de117a9bf36cdb8 100644 (file)
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index dd38b252c656b57761155da29c070693fe42e33b..7ffd7b3b9af3d86f5cffc04a58b0c95c0ca67f1c 100644 (file)
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_ifstream<gnu_char_type, gnu_char_traits> gnu_ifstr;
 
   try
index 08827c3aec6ffd7d2504b33fbbe031b4c0977df6..3c6efe85d5f8389fc25eee9efddc9580227232af 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::ifstream test_type;
   typedef std::istream base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index e211d0cc64371cf4b333778b91da92b5dfb6ef95..43ef6ccf91c6aaff0bc2c1cbbb9bed87a945a0bc 100644 (file)
@@ -29,7 +29,7 @@ const char name_01[] = "ifstream_members-1.tst";
 // http://gcc.gnu.org/ml/libstdc++/2000-07/msg00004.html
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const int more_than_max_open_files = 8200;
   
   for (int i = 0; ++i < more_than_max_open_files;)
index 5a8b6f8b3a4f5297724f9c0a57898f796d8b7099..dcb89a6dfa2bf10b1b6edcf9c4b0daec0aa59d80 100644 (file)
@@ -29,7 +29,7 @@ const char name_01[] = "ifstream_members-1.tst";
 // http://gcc.gnu.org/ml/libstdc++/2000-06/msg00136.html
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::ifstream ifs1;
   ifs1.close();
   
index 947a77dce2be3004b38ba0fcbe8467bd99cd4edf..c07bea1cd3e46e12a28d27ebcdfecbda1598c7df 100644 (file)
@@ -38,9 +38,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index fd3742bf8abc55e36edbf6c9727d288729656a85..f724788deb40c8edb246643e5fa4d9595dd31769 100644 (file)
@@ -118,7 +118,7 @@ class gnu_ios: public std::basic_ios<gnu_char_type, gnu_char_traits>
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   try
     { gnu_ios obj; }
index b527499dcb405eb2869b86f6ba987ce99c2430ee..517799e861bea2860a8d88e831298bb412a11023 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   
   std::stringbuf buf;
   const test_type& obj = test_type(&buf);
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 6629371ed039f5747fde1397e33d718d3ffd2f94..71b0e17057786d2bfe37bd39c5d039b6eb2d5ff3 100644 (file)
@@ -36,7 +36,7 @@
 // 27.4.4.3 basic_ios iostate flags function
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::ios_base::fmtflags fmtflags;
   typedef std::ios_base::iostate iostate;
@@ -44,11 +44,7 @@ void test01()
 
   iostate iostate02, iostate03;
   const iostate iostate01 = std::ios_base::badbit | std::ios_base::eofbit;
-  const iostate iostate04 = std::ios_base::badbit;
-
   std::ios ios_01(NULL);
-  std::ios::char_type ct01;
-  std::ios::char_type ct02('x');;
 
   // bool fail() const
   VERIFY( ios_01.fail() );
index 2c8993afd7e3a78d09f6d606dd1875ca25d56cf3..b3e0624a5debd5626b9f835bb6b0a2fb0ce3d489 100644 (file)
@@ -35,7 +35,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str_01("jade cove, big sur");
   std::string str_05;
   std::stringbuf strb_01;
@@ -43,7 +43,7 @@ void test01()
   std::stringbuf strb_03(str_01, std::ios_base::out);
   const std::ios_base::fmtflags flag01 = std::ios_base::skipws | 
                                         std::ios_base::dec;
-  std::ios_base::fmtflags flag02, flag03;
+  std::ios_base::fmtflags flag02;
   const std::locale glocale = std::locale();
 
   // explicit basic_ios(streambuf* sb)
index 84808f8b14fd79dcdf983364ea736315325354c9..6cf94cbc79c397a7ff6750bd0c75f17a3687b23c 100644 (file)
@@ -39,7 +39,7 @@ class gnu_ios: public std::basic_ios<char> { };
 
 void test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // 01: Doesn't call basic_ios::init, which uses ctype<char_type>..
   // This should be unambiguously correct.
index a0f7afa42870dc7e2b51ca17c43496967ffd5ab7..0db96304d0fbdcb3eac6047635cfa144523b3b2b 100644 (file)
@@ -125,7 +125,7 @@ namespace std
 
 void test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // 02: Calls basic_ios::init, which may call ctype<char_type>...
   try
index 191cbb60830741b73ba761b4337bfb50e9a2c298..edc407fd55ac445cf5731c2ec7249478770cd82a 100644 (file)
 // 27.4.4.3 basic_ios iostate flags function
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::ios_base::fmtflags fmtflags;
   typedef std::ios_base::iostate iostate;
   using std::ios_base;
 
-  iostate iostate02, iostate03;
-  const iostate iostate01 = std::ios_base::badbit | std::ios_base::eofbit;
-  const iostate iostate04 = std::ios_base::badbit;
-
   // basic_ios& copyfmt(const basic_ios& rhs)
   {
     std::ios ios_01(NULL);
index 3286411eb628dbe5963a381ab7209d3ccbe2c24a..638bd46e141e5333ee75a02bbde4ca069ef963c9 100644 (file)
@@ -36,7 +36,7 @@
 // copyfmt and locales.
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
 
index f593b90259d89467391e1e1c55166b077b3ae36e..4c3352fba80ae83051aa71c72413c48d2dbb60be 100644 (file)
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::ios_base::fmtflags fmtflags;
   typedef std::ios_base::iostate iostate;
   using std::ios_base;
 
-  iostate iostate02, iostate03;
-  const iostate iostate01 = std::ios_base::badbit | std::ios_base::eofbit;
-  const iostate iostate04 = std::ios_base::badbit;
-
   // iostate exceptions() const
+  iostate iostate02;
   {
     std::ios ios_01(NULL);
     VERIFY( ios_01.exceptions() == std::ios_base::goodbit );
index a95bd99c4dc74f541bd51fb7b634238a06b5dc15..81779bae62f1db2ba99c6f594a9a160fbf2188da 100644 (file)
 
 void test01()
 {
-  bool test = true;
-
-  std::ios_base::fmtflags flag02, flag03;
-  const std::ios_base::fmtflags flag01 = std::ios_base::skipws 
-                                         | std::ios_base::dec;
+  bool test __attribute__((unused)) = true;
   const std::locale c_loc = std::locale::classic();
 
   std::ios ios_01(NULL);
index 004a363063de54c4538e0a69efb7b22c09f35592..2c539cf0de0820ad49b5a80e9858d3a16f1aa18c 100644 (file)
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_iostream<gnu_char_type, gnu_char_traits> gnu_iostr;
 
   try
index dbcf83037461ce6dab42e4106c65fecdf43df313..0c47e675162daeb374cdd45b4e3c6405b85da466 100644 (file)
@@ -32,8 +32,8 @@ void test01()
 
   std::stringbuf buf;
   const test_type& obj = test_type(&buf);
-  const base_type1* base1 = &obj;
-  const base_type2* base2 = &obj;
+  const base_type1* base1 __attribute__((unused)) = &obj;
+  const base_type2* base2 __attribute__((unused)) = &obj;
 }
 
 int main()
index 8bd7b8a72268b5cb742591c04c934e39917b87ef..d9f8570bbdbf1f34ef48db6a6acca9825f9a6708 100644 (file)
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_istream<gnu_char_type, gnu_char_traits> gnu_istr;
 
   try
index 4282fef84b2eb96fb2abf15d674d1f23312cdda2..fe7a394691a3cf76281b4e5eb3a9dd802d3220f0 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   
   std::stringbuf buf;
   const test_type& obj = test_type(&buf);
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 055c4fb02c52fdcf4deb4da887532d99498060ea..315b651c93c3f4731bc76216a9bfe068afb61e13 100644 (file)
@@ -40,7 +40,7 @@ struct buf: std::streambuf
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   buf b;
   std::istream strm (&b);
index 9c3b3605cb893c9c5352dd88973ff396480300bb..ef4e6ada684b36a4b461057442086dad1b844650 100644 (file)
@@ -46,11 +46,10 @@ std::stringstream ss_01(str_01);
 // minimal sanity check
 bool test01() {
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Integral Types:
   bool                         b1  = false;
-  bool                         b2  = false;
   short                s1  = 0;
   int                  i1  = 0;
   long                 l1  = 0;
@@ -117,7 +116,7 @@ bool test01() {
 
   ss_01 << po;
   ss_01 >> pi;
-  std::printf ("%x %x\n", pi, po);
+  std::printf ("%p %p\n", pi, po);
   VERIFY( po == pi );
   return test;
 }
index 94136d2e1687cee648e3467c2d53e440636e1b63..7a5e44502618c39b50396bd1c18231ede5f5c262 100644 (file)
@@ -46,7 +46,7 @@ std::stringstream ss_01(str_01);
 // elaborated test for ints
 bool test02() {
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01("20000AB");
   std::stringbuf strb_01(str_01, std::ios_base::in);
   std::istream is(&strb_01);
index 65306c4d6e349a7fdf7f2b101652848bb5a7921b..9b467d3748783b878154b6f7cc43446943f8084e 100644 (file)
@@ -49,7 +49,7 @@ bool test03()
   std::istream istr(&sbuf);
   std::ostream ostr(&sbuf);
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   long l01;
   ostr <<  "12220101";
   istr >>  l01; // _M_in_end set completely incorrectly here.
index 206c81e506b7b9860083f4d93b4343603e443ca0..5c615aaebb686fcb77c8e40a2d6f088b56828334 100644 (file)
@@ -48,8 +48,8 @@ std::stringstream ss_01(str_01);
 void test06()
 {
   // default locale, grouping is turned off
-  bool test = true;
-  unsigned int h4, h3, h2;
+  bool test __attribute__((unused)) = true;
+  unsigned int h4;
   char c;
   std::string s("205,199,144");
   std::istringstream is(s);
index 6167471ba49ce6174676caf2c83e60307d56e8a5..5efff5744a6745a2a566f57172f1d77c7adc24d0 100644 (file)
@@ -56,7 +56,7 @@ namespace std {
 void test07()
 {
   // manufactured locale, grouping is turned on
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   unsigned int h4 = 0, h3 = 0, h2 = 0;
   float f1 = 0.0;
   const std::string s1("205,199 23,445.25 1,024,365 123,22,24");
index 2a2c3cc1ff7a0c866373b3ca33671d267f3aee08..276fd913dfc6c10ca67ece126a138274de48fe57 100644 (file)
@@ -56,9 +56,8 @@ namespace std {
 void test08()
 {
   // manufactured locale, grouping is turned on
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   unsigned int h4 = 0, h3 = 0, h2 = 0;
-  float f1 = 0.0;
   const std::string s1("1,22 205,19 22,123,22");
   const std::string s2("1,220 2050,19 202,123,22");
 
index 67d98d53de8e625822b30fa2ebecfceae0d41518..23e68a7629b84366441a5e572aa56ac70b8d0d40 100644 (file)
@@ -45,7 +45,7 @@ std::stringstream ss_01(str_01);
  
 bool test09()
 {
-   bool test = true;
+   bool test __attribute__((unused)) = true;
 
    std::string st("2.456e3-+0.567e-2");
    std::stringbuf sb(st);
index de7bbf9ada883af634033c9f2ab03dc721fd57e4..5df68d5845de5a582cfb940855ca2ba67b995574 100644 (file)
@@ -48,7 +48,7 @@ bool test10() {
   std::stringbuf isbuf_01(str_01);
   std::istream is_01(&isbuf_01);
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   int n = 365;
   is_01 >> n;
index 309875dfc54afadeb40e52e27ff847fd0a7b9842..fc7d25e6ae27b4a889fb007561d93c8b06aa22a7 100644 (file)
@@ -48,7 +48,7 @@ std::stringstream ss_01(str_01);
 // libstdc++/90
 bool test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* cstrlit = "0x2a";
 
   // sanity check via 'C' library call
index 4d7a7fe68256edb7d7433ba2fe66dbd7846f6059..93952bc9e3707cb5932158d49d6eb40a5825af9c 100644 (file)
@@ -50,7 +50,7 @@ std::stringstream ss_01(str_01);
 template<typename T>
 bool test12_aux(bool integer_type)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   int digits_overflow;
   if (integer_type)
@@ -62,7 +62,7 @@ bool test12_aux(bool integer_type)
   
   std::string st;
   std::string part = "1234567890123456789012345678901234567890";
-  for (int i = 0; i < digits_overflow / part.size() + 1; ++i)
+  for (std::size_t i = 0; i < digits_overflow / part.size() + 1; ++i)
     st += part;
   std::stringbuf sb(st);
   std::istream is(&sb);
@@ -74,7 +74,7 @@ bool test12_aux(bool integer_type)
 
 bool test12()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   VERIFY(test12_aux<short>(true));
   VERIFY(test12_aux<int>(true));
   VERIFY(test12_aux<long>(true));
index 935d456f448a0deda233cfd2a13615f53aebb3b6..22896df79f376d4b8e93d30a21a9e1ab11d8bb24 100644 (file)
@@ -47,8 +47,7 @@ std::stringstream ss_01(str_01);
 void test13()
 {
   using namespace std;
-  bool test = true;
-  const char* l1 = "12345678901234567890123456789012345678901234567890123456";
+  bool test __attribute__((unused)) = true;
   const char* l2 = "1.2345678901234567890123456789012345678901234567890123456"
                    "  "
                    "1246.9";
index 5a87fb98582766e890c964b137ba510b6c514ded..20476a96e541a18686fd36273e814bf3eec88f01 100644 (file)
@@ -38,7 +38,7 @@ struct buf: std::streambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   buf b;
   std::istream is(&b);
   is.exceptions(std::ios::badbit);
index 0a235bbe819bda62a3814574f480706518e97e8c..f17fd0595935a839d68787f8f1cf92a32ac609e3 100644 (file)
@@ -26,7 +26,7 @@
 
 void test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str_01;
   const std::string str_02("coltrane playing 'softly as a morning sunrise'");
   const std::string str_03("coltrane");
index ec25ebcaa4d36a82e71383c58d994c7315e4ab7d..0e7e364b819ecbb4a75131d370bf7e72c02ccb13 100644 (file)
@@ -28,7 +28,7 @@
 // operator>>(basic_istream&, _CharT*)
 void test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01("Consoli ");
 
   std::stringbuf isbuf_01(str_01, std::ios_base::in);
index d48072cd329d134e9841672ed03deaa2a40f817b..f1469217efca694520a9e611c6153255e3e32030 100644 (file)
@@ -28,7 +28,7 @@ void test02()
 {
   typedef std::ios::traits_type ctraits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str_01;
   const std::string str_02("or coltrane playing tunji with jimmy garrison");
   const std::string str_03("coltrane");
index 1ab02a1990e9b95f51c0b3e984dc63fa0ed0946a..5e0ca5583eafcdb1d2f375c2cbe7330e265e5f45 100644 (file)
@@ -26,7 +26,7 @@
 
 void test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str_01;
   const std::string str_02("coltrane playing 'softly as a morning sunrise'");
   const std::string str_03("coltrane");
@@ -44,7 +44,6 @@ void test01()
   int n = 20;
   char array1[n];
   typedef std::ios::traits_type ctraits_type;
-  ctraits_type::int_type i1, i2;
 
   // testing with width() control enabled.
   is_02.width(8);
index ba2e8d3c5f4d09aa4c485bccc392499c0993f100..1900236c1f30fdafbb2dfebb999eddc623e963e7 100644 (file)
@@ -39,7 +39,7 @@ struct buf: std::streambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   buf b;
   std::istream is(&b);
   is.exceptions(std::ios::badbit);
@@ -55,7 +55,7 @@ void testthrow(T arg)
       }
   catch(...) 
     {
-      VERIFY( false );
+      VERIFY( test = false );
     }    
 }
 
index 157084167f54fb3055cd0a2ce26c1eddef630461..bb4f3efe225e2c82e29b8829d3bd9da43a166188 100644 (file)
@@ -45,9 +45,11 @@ void test02()
   // 1
   basic_string<pod_char, char_traits<pod_char> > str;
   sstr >> str;
+
   // 2
-  pod_char*  chr;
+  pod_char*  chr = NULL;
   sstr >> chr;
+
   // 3
   sstr >> ws;
 }
index c2afc80348cabbc067cb7eb4801646aac35ce611..01426e75259ad2e933f4196a582b2433953ece76 100644 (file)
@@ -32,7 +32,7 @@ void test01()
 {
   typedef std::ios::traits_type ctraits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01;
   const std::string str_02("art taylor kickin it on DAKAR");
   std::string strtmp;
index 3492a1e11588c08a75225747a6972a36c91794d0..2fd1cd03bc4e7aa18b69b46afdd4a05f9c23bb81 100644 (file)
@@ -30,7 +30,7 @@
 // filebufs.
 void test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::ios::traits_type ctraits_type;
   const char name_01[] = "istream_extractor_other-1.txt"; //read 
   const char name_02[] = "istream_extractor_other-2.txt"; //write
index 9182033937d37cc1b77560e245e7ad6820fe222f..1e1953231971002f1f8797659eb29f51442f1df2 100644 (file)
@@ -30,7 +30,7 @@
 void test03() 
 {
   using namespace std;  
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // template<_CharT, _Traits>
   //  basic_istream& operator>>(ios_base& (*pf) (ios_base&))
@@ -38,7 +38,6 @@ void test03()
     int i = 0;
     std::istringstream iss(" 43");
     iss >> std::noskipws >> i;
-    std::ios::iostate i3 = iss.rdstate();
     VERIFY ( !iss ); //should set failbit
   }
 
index 6251a381575f749291aa0cbd1c06b81eba6969f8..f8110dbf0eef64d4b3762fa3d110a6ebe0fd91cc 100644 (file)
@@ -57,7 +57,7 @@ private:
 
 void test09()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   std::istringstream stream("Bad Moon Rising");
   Outbuf buf;
index 3c9266b498b23965957e2b8f37ad4a479fec2822..591aac680cb7c19f2f92d38a96da333eeb6631f0 100644 (file)
@@ -96,7 +96,7 @@ const char Inbuf_2::buf[] = "Atteivlis";
 
 void test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   Inbuf_2 inbuf1;
   std::istream is(&inbuf1);
index 50ba27c15f84030b2917633340684165ac7626f8..a5ced0342ef4d229f948687911a6d67fee4cdc5e 100644 (file)
@@ -38,7 +38,7 @@ struct buf: std::streambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   buf b;
   std::istream is(&b);
   is.exceptions(std::ios::badbit);
index 446b6d9c94ce96ec380841ac9407344801f217f5..4cc8f35952b72fcd6a5fedaab892b614df61d3f6 100644 (file)
@@ -33,7 +33,7 @@ test03()
 {
   typedef std::char_traits<char>       traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char str_lit01[] = 
   "   sun*ra \n\t\t\t   & his arkestra, featuring john gilmore: \n"
   "                         "
@@ -49,10 +49,9 @@ test03()
   std::istream is_00(NULL);
   std::istream is_04(&sbuf_04);
   std::istream is_05(&sbuf_05);
-  std::ios_base::iostate state1, state2, statefail, stateeof;
+  std::ios_base::iostate statefail, stateeof;
   statefail = std::ios_base::failbit;
   stateeof = std::ios_base::eofbit;
-  std::streamsize count1, count2;
   char carray1[400] = "";
 
   // int_type get()
index fa351444fb47f0001d9ef6ddc1dc6d6460789ad2..8317e1aee81f13429dbc68112f88d342e5772314 100644 (file)
@@ -34,7 +34,7 @@
 void
 test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* tfn = "istream_unformatted-1.txt";
   std::ifstream infile;
   infile.open(tfn);
index 6df68c78460d62c0d30292a5b35ffbdfbb6a3fa2..ccde173c62be8071aaf2ffd2f0385ef11d90b0cd 100644 (file)
@@ -33,7 +33,7 @@ test02()
 {
   typedef std::char_traits<char>       traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char str_lit01[] = "\t\t\t    sun*ra \n"
   "                            "
   "and his myth science arkestra present\n"
@@ -51,7 +51,6 @@ test02()
   std::ios_base::iostate state1, state2, statefail, stateeof;
   statefail = std::ios_base::failbit;
   stateeof = std::ios_base::eofbit;
-  std::streamsize count1, count2;
   char carray1[400] = "";
 
   // istream& getline(char* s, streamsize n, char delim)
index 53b14a985f52cef23f2fbf7f16fbb4368763c220..543d7cbba47c660a99ef6c6e94538a175bf773eb 100644 (file)
@@ -49,7 +49,7 @@ test05()
 "aaaaaaaaaaaaa\n"
 "aaaaaaaaaaaaaa\n";
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::streamsize it = 5;
   std::streamsize br = 0;
   char tmp[it];
@@ -89,7 +89,7 @@ test05()
          //
          // -> strlen(__s) < n - 1 
          // -> delimiter was seen -> gcount() > strlen(__s)
-          VERIFY(ifs.gcount() == std::strlen(tmp) + 1);
+          VERIFY(ifs.gcount() == static_cast<std::streamsize>(std::strlen(tmp) + 1) );
           continue;
         }
     }
index f4627ef7e2913eba1500a63385637d66914df505..0d640de02b8fedc9b721a393c6c81c89d05eb98c 100644 (file)
@@ -36,7 +36,7 @@ test06()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const streamsize it = 5;
   char tmp[it];
   const char* str_lit = "abcd\n";
index cc6a9a564dc5b9cfaa96a500fa702838fb24f46e..c0a753e26d779107a6a66aaf73b16096cd7929c0 100644 (file)
@@ -33,7 +33,7 @@ test01()
 {
   typedef std::ios::traits_type traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01;
   const std::string str_02("soul eyes: john coltrane quartet");
   std::string strtmp;
index 8e79620aafeae72e7a7dfb507e1ea1c5a7a26804..38c40cea24bacf0da364f505f17cbd3b3038e584 100644 (file)
@@ -33,7 +33,7 @@ void
 test08()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   stringstream ss("abcd" "\xFF" "1234ina donna coolbrith");  
   char c;
index 87ac36ab65938e38cfd01a8c69a40223b19080d3..6e0c9151e69370d4c803b84e4b0fa8ac9bff4bf4 100644 (file)
@@ -33,12 +33,11 @@ void
 test10()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef string string_type;
   typedef stringbuf stringbuf_type;
   typedef istream istream_type;
 
-  int res = 0;
   streamsize n;
   string_type  input("abcdefg\n");
   stringbuf_type sbuf(input);
index 53317ede0dbc732a19c53ca15b24a6a9e837d4ee..be4b0700d102906123921559a96cf3e4f4697f6b 100644 (file)
@@ -33,7 +33,7 @@ test01()
 {
   typedef std::ios::traits_type traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01;
   const std::string str_02("soul eyes: john coltrane quartet");
   std::string strtmp;
index 4fbd5cc8499ed96b59f2d4ff6a6ac9b2eac52e6c..e060ff2716defae3e3f16a26fd092d030ad96322 100644 (file)
@@ -31,7 +31,7 @@
 // fstreams
 void test04(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
   const char str_lit01[] = "istream_seeks-1.txt";
   std::ifstream if01(str_lit01, std::ios_base::in | std::ios_base::out);
index 0213e3dfac0626ed6dbd60883ed0dae635b10fac..47fcd0136f2337c0c38f4c3b2f8de2fdaa8ea580 100644 (file)
@@ -32,7 +32,7 @@ test01()
 {
   typedef std::ios::traits_type traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01;
   const std::string str_02("soul eyes: john coltrane quartet");
   std::string strtmp;
@@ -48,8 +48,6 @@ test01()
   statefail = std::ios_base::failbit;
   stateeof = std::ios_base::eofbit;
 
-  char carray[60] = "";
-
   // istream& putback(char c)
   is_04.ignore(30);
   is_04.clear();
@@ -72,7 +70,7 @@ test01()
   // int sync()
   is_00.ignore(10);
   int count1 = is_00.gcount();
-  int i = is_00.sync();
+  is_00.sync();
   int count2 = is_00.gcount();
   VERIFY (count1 == count2 );     // DR 60
 }
index e79e4a206c0680447715dd925e572ce34b2ab896..0ece0a5d596e82e6301581a15ae2de1650f3658a 100644 (file)
@@ -33,7 +33,7 @@ test01()
 {
   typedef std::ios::traits_type traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string str_01;
   const std::string str_02("soul eyes: john coltrane quartet");
   std::string strtmp;
index 4133e1a8588a37f8571f5458b4ec020d0ccc6e07..6779c2b7d324a87a8ce5ee41497ec6c5c6867858 100644 (file)
@@ -33,7 +33,7 @@
 void
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const std::string str_00("Red_Garland_Qunitet-Soul_Junction");
   std::string strtmp;
@@ -41,14 +41,14 @@ test04()
 
   std::stringbuf isbuf_00(str_00, std::ios_base::in);
   std::istream is_00(&isbuf_00);
-  std::ios_base::iostate state1, state2, statefail, stateeof;
+  std::ios_base::iostate state1, statefail, stateeof;
   statefail = std::ios_base::failbit;
   stateeof = std::ios_base::eofbit;
 
   state1 = stateeof | statefail;
   VERIFY( is_00.gcount() == 0 );
   is_00.read(c_array, str_00.size() + 1);
-  VERIFY( is_00.gcount() == str_00.size() );
+  VERIFY( is_00.gcount() == static_cast<std::streamsize>(str_00.size()) );
   VERIFY( is_00.rdstate() == state1 );
 
   is_00.read(c_array, str_00.size());
index 3c418e943b07311cda2b30f6fd8caf25a52ae427..b66f730ed01137a58d7562f77bef4ebc9fef1029 100644 (file)
@@ -33,7 +33,7 @@ void
 test09()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   istringstream iss("Juana Briones");
   char tab[13];
index f0109b0a661a1953f5f4e762b634a20b24cc41c6..6a42fd32cfb0789e9cc71a1d623f47c126760863 100644 (file)
@@ -32,7 +32,7 @@
 void test12()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   streamsize sum = 0;
   istringstream iss("shamma shamma");
       
index 6d87a2959a3e9de3ab73ae161a38fea303fe19a9..bf25632f967372b494f47ed0d7bc2750697bab19 100644 (file)
@@ -32,7 +32,7 @@
 void test13()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   streamsize sum = 0;
   ifstream ifs("istream_unformatted-1.tst");
       
index fdb412ca1255894e4f025afaa0f8321feacc1c69..67596719dc3545abf9fe5d3022b846f69d8368d1 100644 (file)
@@ -34,7 +34,7 @@ class mybuf : public std::basic_streambuf<char>
 
 void test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   char arr[10];
   mybuf sbuf;
index 04078dbafeb884de07d3a1f2464d2cecdc1db72a..e20854c3f82bb4e28d9ed6bacbbc7be4a68cdf01 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   istringstream ist("the lamb lies down on broadway");
   ios::pos_type pos = ist.tellg();
index 4c4b25c57b457161e7a614c1097589ece24bf524..af2b81668b5e0fdac7515707bf362453d021f5c4 100644 (file)
@@ -35,7 +35,7 @@ void write_rewind(std::iostream& stream)
 {
   for (int j = 0; j < times; j++) 
     {
-      bool test = true;
+      bool test __attribute__((unused)) = true;
       std::streampos begin = stream.tellg();
       
       for (int i = 0; i < times; ++i)
@@ -49,7 +49,7 @@ void write_rewind(std::iostream& stream)
 
 void check_contents(std::iostream& stream)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   stream.clear();
   stream.seekg(0, std::ios::beg);
index ab35ddba34fa26b466bcf705550cdcbb0af8ac7d..6a8f5d72c0d00df61d44cdb2d429f398688a61d5 100644 (file)
@@ -35,7 +35,7 @@ void write_rewind(std::iostream& stream)
 {
   for (int j = 0; j < times; j++) 
     {
-      bool test = true;
+      bool test __attribute__((unused)) = true;
       std::streampos begin = stream.tellg();
       
       for (int i = 0; i < times; ++i)
@@ -49,7 +49,7 @@ void write_rewind(std::iostream& stream)
 
 void check_contents(std::iostream& stream)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   stream.clear();
   stream.seekg(0, std::ios::beg);
index 823e237930aa0f8829d4b1a6d3be309cfcb6a151..273855a0b64a874bda1bd908ba117884ba2d5fde 100644 (file)
@@ -32,7 +32,7 @@
 void test06(void)
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string num1("555");
 
   // seekg
index aeed5325134ffed7d7bd1ddf0dbaee3d88c7828e..233773193ee620dd3991fbb10a52e701ee67bf02 100644 (file)
@@ -32,7 +32,7 @@
 void test06(void)
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string num1("555");
 
   // seekg
index 27dca74fa5d04cdd4f1f546b74c1f128023b9f72..00df7cfac89b613d6e1b5d62c0a9ea9c7c5535c6 100644 (file)
@@ -33,7 +33,7 @@ void test04(void)
 {
   typedef std::istream::off_type off_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
   std::ios_base::iostate state01, state02;
   const char str_lit01[] = "istream_seeks-1.txt";
index cf1455fa0d4c7250999b8f59c291604f3173c843..286d3a23ecad13442b6163a8dbb529976bb8a6f7 100644 (file)
@@ -33,7 +33,7 @@ void test05(void)
 {
   typedef std::istream::off_type off_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
   std::ios_base::iostate state01, state02;
   const char str_lit01[] = "istream_seeks-1.tst";
index 1bc58ad20e7ed52336f825952aeb90225e9ce419..61db9001211bb715d512244778abdbcd011990ab 100644 (file)
@@ -35,7 +35,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* lit01 = "stereolab on the bolsinga tip";
   const std::string str01(lit01);
 
index 1e42d18ed83ab920efff6d42c35ab9159bc8caa1..4a25cd5a5204e034767d33c552601a91e14c14ac 100644 (file)
@@ -39,7 +39,7 @@ test02()
 {
   using namespace std;
   istringstream in("80.21 56.89 12.3");
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int i = 0;
   double x;
 
index 9f9e06a03d1e2f4c34057ac18cada95187434361..527f3920aa843440b166ebd00b4fb4eb33446c25 100644 (file)
@@ -37,7 +37,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::stringbuf strbuf01;
   std::istream strm1(&strbuf01);
index 27e1e3667ffb79d360a638d8978d98253579f715..e9e302bf7ee6e7228517109ca0c299af8b2cf81f 100644 (file)
@@ -125,7 +125,7 @@ namespace std
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // input streams
   basic_ifstream<unsigned char> ifs_uc;
index 4e928fad62b37b6cd2bfa8fba869df858401efbd..77bf598ec89fa00662fbc2a24d82323045b5c2ef 100644 (file)
@@ -125,7 +125,7 @@ namespace std
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // input streams
   basic_istringstream<unsigned char> iss_uc;
index 6ec4d69f3fcb4c298ea4e88d004bb035d8995233..d213d040a11ed55a41841e6cbb29b59d24d42f0d 100644 (file)
@@ -33,7 +33,7 @@ void test01()
   using namespace std;
   typedef ios::pos_type pos_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char str_lit01[] = "istream_seeks-1.tst";
 
   // in
index b9af611c0447b09efcbf0ede397c84feafe599d6..1afd1a0745ce73a93378bce18f07c5b093420011 100644 (file)
@@ -28,7 +28,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   istringstream ist("three sides live");
   ist.ignore(4);
index 771d25bfe9a9bcc8f337ca95cb269fe05bc1a208..2cb9ea7fe937f2679df8e9715f6b6b03800a1054 100644 (file)
@@ -32,7 +32,7 @@
 void test06(void)
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string num1("555");
 
   // tellg
index d9d2f02dbb9397bfe46d1d2efcb6bd02b0e369ea..dffa89872df2ba9198a4198af506f28ffa4d99d7 100644 (file)
@@ -33,7 +33,7 @@ void test04(void)
 {
   typedef std::istream::off_type off_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
   std::ios_base::iostate state01, state02;
   const char str_lit01[] = "istream_seeks-1.txt";
index abc99f8bd6b6212d1c37a854cd5bf82e3b9c6b8e..4d9e3a9d880187b45e24fcb033a3e88f18238276 100644 (file)
@@ -33,7 +33,7 @@ void test05(void)
 {
   typedef std::istream::off_type off_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
   std::ios_base::iostate state01, state02;
   const char str_lit01[] = "istream_seeks-1.tst";
index 3761e948617e84a2a5ab5b6f6f2a844775f657da..00f5798ef5a3be3a9d6a0b26eced8cd1b7dd7b44 100644 (file)
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str02(str_lit01);
   std::string str04;
   std::string str05;
-  std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
+  std::ios_base::iostate flag3, flag4, flag5;
 
   // template<_CharT, _Traits>
   //  basic_istream<_CharT, _Traits>& ws(basic_istream<_Char, _Traits>& is)
index 0b051e972001d044cd4595dcea35bd3c14d89344..8bdbfc6f655ed16d18b1ee6589830572c2ad6730 100644 (file)
@@ -59,7 +59,7 @@ struct gnu_char_traits
   typedef gnu_char_type        char_type;
   typedef long                 int_type;
   typedef long                 pos_type;
-  typedef unsigned long        off_type;
+  typedef long         off_type;
   typedef long                 state_type;
   
   static void 
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_istringstream<gnu_char_type, gnu_char_traits> gnu_isstr;
 
   try
index 764dd1404f42b0ad74ce03f6b94e5e6d656b0dbe..4d212dac749906a112324e867e7e912fcde4a182 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::istringstream test_type;
   typedef std::istream base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 59b601eef0388e854292eb9d7959eddc9a3c6068..7e30ccd342932ccf17e0170a4ea30218946c339f 100644 (file)
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index 32acd5b183cc2641a25f35f537a196f8578b5760..509386e2a11ad589195883ee0c1e358fde302ded 100644 (file)
@@ -25,7 +25,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::istringstream is01;
   const std::string str00; 
   const std::string str01 = "123";
index 3bba780a4c6b0b6b79655063ece3073262bcca9e..3cba2191ced6fa2ee2b18ef86b71baaa2ab197ed 100644 (file)
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_ofstream<gnu_char_type, gnu_char_traits> gnu_ofstr;
 
   try
index 9d58396d1930c4df9a17f871b4447558403cc885..47d7c928f89089cfa5daeb2df77eeed02cc16761 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::ofstream test_type;
   typedef std::ostream base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 14e217ec9c07b47239e9351cfd741b347e59c94c..accf3e51c1f7aad9f1e1b3b942c56d445944e9e9 100644 (file)
@@ -29,7 +29,7 @@ const char name_02[] = "ofstream_members-1.txt";
 // http://gcc.gnu.org/ml/libstdc++/2000-07/msg00004.html
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const int more_than_max_open_files = 8200;
   
   for(int i = 0; ++i < more_than_max_open_files;)
index f97eec10454d6a42a1ec36520c60ee42c637801d..5bb02d4eb3ca6e27c1793ec4ff148957cbff9535 100644 (file)
@@ -30,7 +30,7 @@ const char name_02[] = "ofstream_members-1.txt";
 // http://gcc.gnu.org/ml/libstdc++/2000-06/msg00136.html
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::ofstream ofs1;
   ofs1.close();
   
index 7e897efdfafdd23ff4ced7a14834a21918f7edf5..9ca7b900dd669944c898c83b831ce5b69a920e3c 100644 (file)
@@ -37,9 +37,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index 09eb94c8b1b9f07f589d86c0dc64aebba7bbc70f..7ec77fb16c5e9d6a4932062a8dc54a082189e06a 100644 (file)
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_ostream<gnu_char_type, gnu_char_traits> gnu_ostr;
 
   try
index b1b669c942f436ec300b353cf71d68fd81142ed6..c945539a3b7606a053db9c1aaf3de2f1da852d95 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   
   std::stringbuf buf;
   const test_type& obj = test_type(&buf);
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 7a4f26396d81a6d49dc3d24de5343647b95aa5fe..309d6f09ba1a473558fe66d96a70e44729058015 100644 (file)
@@ -30,7 +30,7 @@ class Buf : public std::streambuf
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   Buf buf;
   ostream stream(&buf);
index 8e69c421dd1f49d0366b9d191437c651483be10e..6c866ff83bae2415a3f8c6b990746bb48a333de4 100644 (file)
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str02(str_lit01);
   std::string str04;
   std::string str05;
-  std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
 
   std::ostringstream oss01(str01);
   std::ostringstream oss02;
-  std::ostringstream::int_type i01, i02;
   typedef std::ostringstream::traits_type traits_type;
 
   // template<_CharT, _Traits>
index a3c11791737d22cd6fd79ee88d33cb94c4dad329..3725fd8f00ed33aaf0a57bf24d3b45d1afd707e4 100644 (file)
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str02(str_lit01);
   std::string str04;
   std::string str05;
-  std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
 
   std::ostringstream oss01(str01);
   std::ostringstream oss02;
-  std::ostringstream::int_type i01, i02;
   typedef std::ostringstream::traits_type traits_type;
 
   // template<_CharT, _Traits>
index 34de949e4bb22b26032826c7fe69ada91e8a7b62..fb5f8ccaaff97b61f04a60d98a2aa4154b19a639 100644 (file)
@@ -32,12 +32,12 @@ void test02()
   using namespace std;
   typedef ostringstream::int_type int_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   ostringstream osst_01;
   const string str_00("herbie_hancock");
   int_type len1 = str_00.size();
   osst_01 << str_00;
-  VERIFY( osst_01.str().size() == len1 );
+  VERIFY( static_cast<int_type>(osst_01.str().size()) == len1 );
 
   osst_01 << ends;
 
index 3e3726cd398684f1531e4dadc793b1b51d39d89f..a1746fbc797fa85bfe85f83ddf15dd05a98bd343 100644 (file)
@@ -36,7 +36,7 @@ struct buf: std::streambuf
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   buf b;
   std::ostream strm (&b);
index 3d9098f53d17dca4f760957fc23c635bd00e3630..2b05fd8f1f798d34ca4eb0c09d48ae653bcecfd3 100644 (file)
 
 void test01(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str02(str_lit01);
   std::string str04;
   std::string str05;
-  std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
 
   std::ostringstream oss01(str01);
   std::ostringstream oss02;
-  std::ostringstream::int_type i01, i02;
   typedef std::ostringstream::traits_type traits_type;
 
   // template<_CharT, _Traits>
index f49f60405f8dc903307b5ec3242d2be32f71e40d..8b8da8a1e80af6a3300bb8fe2f93e87fef0535a9 100644 (file)
@@ -150,8 +150,8 @@ void apply_formatting(const _TestCase & tc, basic_ostream<_CharT> & os)
 void
 test01()
 {
-  bool test = true;
-  for (int j=0; j<sizeof(testcases)/sizeof(testcases[0]); j++)
+  bool test __attribute__((unused)) = true;
+  for (std::size_t j = 0; j<sizeof(testcases)/sizeof(testcases[0]); j++)
     {
       _TestCase & tc = testcases[j];
 #ifdef TEST_NUMPUT_VERBOSE
index 2cf4021108fd0bdda63070aeb06deda8f3fc962f..c1d41ca35acc60aaf4af2c2dc3f449dc3af51862 100644 (file)
@@ -32,7 +32,7 @@ using namespace std;
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // Make sure we can output a long float in fixed format
   // without seg-faulting (libstdc++/4402)
index d26463b525d5f869ccf7d5dc3c4b728d76509732..fed2696cc1bf0b7f745744a543ff023aebc235aa 100644 (file)
@@ -32,7 +32,7 @@ test03_check(T n)
   stringbuf strbuf;
   ostream o(&strbuf);
   const char *expect;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   if (numeric_limits<T>::digits + 1 == 16)
     expect = "177777 ffff";
index 445f884a6aedb1d9ada15be505645b878126fa88..304fc40c11f3b6cf63df2bbc54b157c70857d1f2 100644 (file)
@@ -31,7 +31,7 @@ test04()
 {
   stringbuf strbuf1, strbuf2;
   ostream o1(&strbuf1), o2(&strbuf2);
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   o1 << hex << showbase << setw(6) << internal << 0xff;
   VERIFY( strbuf1.str() == "0x  ff" );
index 67eeecc2b6e62522fcb4189b052eb6b54449ebb1..1d17b205717b39192ba4f5d468d3091fbcf291f8 100644 (file)
@@ -31,7 +31,7 @@ using namespace std;
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   // make sure we can output a very long float
   long double val = 1.2345678901234567890123456789e+1000L;
   int prec = numeric_limits<long double>::digits10;
index 647f8714629265fac64fcd614277f4535b84ab39..ce521e235d47b0d105ee22a592c01748e8b8ea58 100644 (file)
@@ -30,7 +30,7 @@ using namespace std;
 void
 test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   double pi = 3.14159265358979323846;
   ostringstream ostr;
   ostr.precision(20);
index d3f0499c3bb6afe6fb404ace3633f185e2f2fd51..36b67f2a0baf07fa18737d7645dca8022387122d 100644 (file)
@@ -31,7 +31,7 @@ using namespace std;
 int
 test06()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int prec = numeric_limits<double>::digits10 + 2;
   double oval = numeric_limits<double>::min();
 
index caf716061d9cbc7cba98a9f47930ab08655ddd90..a63710d695652490aa527c2947625e65f9e7fbe2 100644 (file)
@@ -38,7 +38,7 @@ struct buf: std::streambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   buf b;
   std::ostream os(&b);
   os.exceptions(std::ios::badbit);
index 484e66b8c1539cfd46cd4ff94dc5b4b46794351c..0f8848b4008994ae9d7f0468106891c45783358d 100644 (file)
@@ -151,8 +151,8 @@ void apply_formatting(const _TestCase & tc, basic_ostream<_CharT> & os)
 void
 test01()
 {
-  bool test = true;
-  for (int j=0; j<sizeof(testcases)/sizeof(testcases[0]); j++)
+  bool test __attribute__((unused)) = true;
+  for (std::size_t j = 0; j<sizeof(testcases)/sizeof(testcases[0]); j++)
     {
       _TestCase & tc = testcases[j];
 #ifdef TEST_NUMPUT_VERBOSE
index d9158f534f0ebbb38131003f5a698810b148f36d..856b955f2ef43659550d347176aadfb25d611380 100644 (file)
@@ -29,7 +29,7 @@
 void
 test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::ostringstream oss_01;
 
index f208723de8a2573c312eb09fa8e898e66d5f4d4c..e2f9861b9ea3fbd51cf8cac97d61c954e2f99c43 100644 (file)
@@ -29,7 +29,7 @@
 void
 test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::ostringstream oss_01;
 
index 204089df14fa732d668205e23f37425b5a0ee7be..4c8de7c625f2851423f05afcf3153fdc77dfbae3 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::ostringstream oss_01;
 
index 9ffc492586ecc67f5227947a265ce0db5aeac0a7..1fdbe376ae2be601e7f59b72b69e27645fdeb214 100644 (file)
@@ -31,7 +31,7 @@
 void
 test02(void) 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string tmp;
   
   std::string str01 = "";
index 5b95862b2b974bf47849e0f3886f6b152da2d148..fedab18c0533350a40268400558d8a46eca48e2d 100644 (file)
@@ -30,7 +30,7 @@
 // right
 void test03(void) 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string tmp;
 
   std::string str01 = "";
index 52d92ecb2eb70ce0732462ef8ae1aa81e40222d9..e10380c8331ad237c38b4b5e48bdeb754928b948 100644 (file)
@@ -30,7 +30,7 @@
 void
 test04() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str_01;
   const std::string str_02("coltrane playing 'softly as a morning sunrise'");
   const std::string str_03("coltrane");
@@ -40,7 +40,7 @@ test04()
   std::ostringstream oss_01(std::ios_base::out);
   std::ostringstream oss_02(str_01, std::ios_base::out);
 
-  std::ios_base::iostate state1, state2, statefail;
+  std::ios_base::iostate statefail;
   statefail = std::ios_base::failbit;
 
   // template<_CharT, _Traits>
index c68f227bfc277c3e0cb232d98b3e61c4f289aaf6..a4e14534457e2b5735ab3f25aa798c34ce587f66 100644 (file)
@@ -30,7 +30,7 @@
 void
 test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str05, str10;
 
   typedef std::ostream::pos_type       pos_type;
index a73329c819ce9da0cb788cd21ea428db51d6ac1c..72393d7356b1bc429a909ec4e1aced8163c51217 100644 (file)
@@ -30,7 +30,7 @@
 // http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00326.html
 void test06()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char carray01[] = "mos def & talib kweli are black star";
 
   // normal
index 244ee75291962135a657a46b30a705af134ce8e1..c4dc96cf19abb0e9503c42f4f926b2fcfb5c5312 100644 (file)
@@ -28,7 +28,7 @@
 
 void test08()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char* pt = NULL;
 
   // 1
index f1e24f35bd23c5d0bf764818f8dbba9e1e36b4e3..2e932753fdb12c0e612db9a91af78d41a0756279 100644 (file)
@@ -38,7 +38,7 @@ struct buf: std::streambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   buf b;
   std::ostream os(&b);
   os.exceptions(std::ios::badbit);
index bd4d1840fd73e03cf2fd904be3384c0cb7e27ee8..0c38d4ea5d74ec7bc6b69341a6f2499e96d602fe 100644 (file)
@@ -29,7 +29,7 @@
 void
 test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wostringstream oss_01;
 
index 4be5d86feb98303719f9aef3bcc0bdae7df1cf18..f93fe260c35df4afe5c6a1e07aa38e6ccb2993eb 100644 (file)
@@ -29,7 +29,7 @@
 void
 test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wostringstream oss_01;
 
index 34695a4314fd626e3d625ed61e67e41485cdb4f7..76d20ceb1b32a193b01e4673849a13b3c3dd7836 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wostringstream oss_01;
 
index 6344dd4d5a0303cbc7c40dc12e83ff209e27742a..722ec06e8ae65acbd4fe3e858fc70c05312e7299 100644 (file)
@@ -52,7 +52,7 @@ protected:
 void test07()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* buffer = "SFPL 5th floor, outside carrol, the Asian side";
 
index bf4480db26e2f4ef084cd2360f9f07a2352046bc..8b2c9d8c185846db69e0ba5900d4ca36e857846f 100644 (file)
@@ -28,7 +28,7 @@
 
 void test08()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char* pt = NULL;
 
   // 2
index 3fa9e68fe56e3eb141d82078b386a65942fa366f..00fef8ac37ae3790b079075f185e20b7cfeec433 100644 (file)
@@ -39,7 +39,7 @@ void
 test02() 
 {
   typedef std::ios_base::iostate iostate;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // basic_ostream<_CharT, _Traits>::operator<<(__streambuf_type* __sb)
   // filebuf-> NULL 
index 89dca57cd54c32e575ba7b3477285dcf2b6566d8..5f054fb8cd75ff4a6a0b93328f2a96105a9f6d12 100644 (file)
@@ -31,7 +31,7 @@
 void test04()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   istringstream istr("inside betty carter");
   ostringstream ostr;
   ostr << istr.rdbuf() << endl;
index 1ba200aaca710e05301e79c83970ae7bbb810ce2..949448e83722f253981f7cf93d8482a90913a868 100644 (file)
@@ -101,7 +101,7 @@ private:
 
 void test(const std::string& str, std::streambuf& buf)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::ostringstream out;
   std::istream in(&buf);
index fcacbcb648375f7648e289e862b34f81a92dff33..d495e01bf15079435a97008544df00619dae7e88 100644 (file)
@@ -56,7 +56,7 @@ private:
 
 void test10()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::stringbuf sbuf("Bad Moon Rising", std::ios::in);
   Outbuf buf;
index 61ec1a71eaff6a2e218fbbbb49b32c9609051723..5824caa7dd1fb131bbe929b7211fe0b9a4d4c1bf 100644 (file)
@@ -96,7 +96,7 @@ const char Inbuf_2::buf[] = "Atteivlis";
 
 void test12()
 { 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   Outbuf_2 outbuf2;
   std::ostream os (&outbuf2);
index 42ad89cbd1d560f145792ded6b5903381ba3bc1a..6b02aeb19039dd7973789bbf9ec35c708c3d96e4 100644 (file)
@@ -38,7 +38,7 @@ struct buf: std::streambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   buf b;
   std::ostream os(&b);
   os.exceptions(std::ios::badbit);
index cba75f250fa5f08bd73800740504a07bf109836b..40cfdb726156607bff7971c88ae08465e8608374 100644 (file)
@@ -37,7 +37,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::stringbuf strbuf01;
   std::ostream strm1(&strbuf01);
index 4e7562cfd1232353c595e73068c82b835ceee913..72ba932efe668862d460bd30d87db6418a52883b 100644 (file)
@@ -50,7 +50,7 @@ struct buf: std::streambuf
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   buf b(0);
   std::ostream strm(&b);
index 2c8f6c674635bd15c07e44e2b15997b8f13b0e1e..e3af42e3b6284080f1fb5099061cb9208ec2bce6 100644 (file)
@@ -125,7 +125,7 @@ namespace std
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // output streams
   basic_ofstream<unsigned char> ofs_uc;
index 141548ad10a9e224f86779a689912d4d52709aaf..fe1a9473c2c36ede078cbd068ac3ae56b2ef061f 100644 (file)
@@ -125,7 +125,7 @@ namespace std
 void test03()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // output streams
   basic_ostringstream<unsigned char> oss_uc;
index 05884fc123dd235c0c269fd48e423197d930b64a..5c8caced6f3e44122ed0acb26b9a0c085f4ff932 100644 (file)
@@ -31,7 +31,7 @@ void test01()
   using namespace std;
   typedef ios::pos_type pos_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char str_lit01[] = "ostream_seeks-1.txt";
 
   // out
index e278daec21af1ecea7c867d4305cda0a1a7d6adf..f82df5d4bb03a614c02c33ad232d06da4a9555ac 100644 (file)
@@ -27,7 +27,7 @@ void test01()
   using namespace std;
   typedef std::stringbuf::pos_type        pos_type;
   typedef std::stringbuf::off_type        off_type;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // tellp
   ostringstream ost;
index f7e96885ea3f8b495d9a952c2d98d0ec00dace42..8593d6e6f6034ea2862efd13b91435787d815a55 100644 (file)
@@ -59,7 +59,7 @@ struct gnu_char_traits
   typedef gnu_char_type        char_type;
   typedef long                 int_type;
   typedef long                 pos_type;
-  typedef unsigned long        off_type;
+  typedef long         off_type;
   typedef long                 state_type;
   
   static void 
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_ostringstream<gnu_char_type, gnu_char_traits> gnu_osstr;
 
   try
index 48c56383e4c6aed02449232b1484900e09d98a47..aafd2bcd6cd5e22746d944d5d7d81e4485461b73 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::ostringstream test_type;
   typedef std::ostream base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 3edad1a508009342057bcb850c072938472f88ef..37b5da2326765e1e6b2b5d38965c383603883b42 100644 (file)
@@ -27,7 +27,7 @@
 void
 test03()
 {
-  bool test = false;
+  bool test __attribute__((unused)) = false;
 
   // Empty string sanity check.
   std::string str01;
index 8019bba06f292e1790698ed5d88102a91d21449b..826ee5ac26b8c963a61714a66f6f7979f6e23df8 100644 (file)
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index 7a3b758ae7290dee2f0b86ecc62f6126be9ddd26..db3f57860b122fed76b0574a1a81a97217837383 100644 (file)
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::ostringstream os01;
   const std::string str00; 
   const std::string str01 = "123";
   std::string str02;
-  const int i01 = 123;
-  int a,b;
 
-  std::ios_base::iostate state1, state2, statefail, stateeof;
+  std::ios_base::iostate statefail, stateeof;
   statefail = std::ios_base::failbit;
   stateeof = std::ios_base::eofbit;
 
index 310b298152b39079da6ff745619584dbf642ebf4..b9564ec9dc00f56a6a2c520ffe1c13fea34f2ced 100644 (file)
@@ -33,7 +33,7 @@ public:
 void
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   derived_oss yy;
   yy << "buena vista social club\n";
   VERIFY( yy.str() == std::string("buena vista social club\n") );
index c599985d43f299974a9428aa3e05ee173e4db64c..318ff033ef7997cc489cd0c627d86a52577d9410 100644 (file)
@@ -118,7 +118,7 @@ class gnu_sbuf: public std::basic_streambuf<gnu_char_type, gnu_char_traits>
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   try
     { gnu_sbuf obj; }
index c48ecbcc43d570aa345280b4c4335b54ab310068..9400a599bfcdb20eb1fb1899865e66bcf025967e 100644 (file)
@@ -46,7 +46,7 @@ public:
   bool
   check_pointers()
   { 
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     VERIFY( this->eback() == NULL );
     VERIFY( this->gptr() == NULL );
     VERIFY( this->egptr() == NULL );
@@ -92,8 +92,7 @@ void test01()
   typedef testbuf::traits_type traits_type;
   typedef testbuf::int_type int_type;
 
-  bool test = true;
-  char* lit01 = "chicago underground trio/possible cube on delmark";
+  bool test __attribute__((unused)) = true;
   testbuf buf01;
 
   // 27.5.2.1 basic_streambuf ctors
index 7dbfdc755624ed21e7944af90f468ff23d88ed52..17d94af7001e493701d6cfb5fb9755e5accb8e8c 100644 (file)
@@ -47,7 +47,7 @@ public:
 void test08()
 {
   using std::locale;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc;
   testbuf ob;
index 4f98839d907217fb3c467568b3df8cdc50d8aa44..5dc68c62b9a8be2035037a7383a41ea43ac2a514 100644 (file)
@@ -35,7 +35,7 @@ public:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_file1";
 
   Derived_fbuf df2;
index 2a3a4be1a25a34b96dfa64e4daa2a159e696351b..d2a42effc6b95eee6ea630e26b6262677e210882 100644 (file)
@@ -46,7 +46,7 @@ public:
   bool
   check_pointers()
   { 
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     VERIFY( this->eback() == NULL );
     VERIFY( this->gptr() == NULL );
     VERIFY( this->egptr() == NULL );
@@ -92,8 +92,9 @@ void test01()
   typedef testbuf::traits_type traits_type;
   typedef testbuf::int_type int_type;
 
-  bool test = true;
-  char* lit01 = "chicago underground trio/possible cube on delmark";
+  bool test __attribute__((unused)) = true;
+  char lit01[52];
+  strcpy(lit01, "chicago underground trio/possible cube on delmark");
   testbuf buf01;
 
   // pbackfail
index dcee654b213e1c907fa40ca384ebaab9944c67a8..a62155292511184451d52c03e81f7104e7653be5 100644 (file)
@@ -60,7 +60,7 @@ template<typename T>
 
 void test03() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string control01("11111");
   std::string test01;
 
index 1b6cf0cf332f8d0ad611b0faec9faea36f4097bb..145e4eb3ec66e4af2ddc2c6b472fcb53045c86ab 100644 (file)
@@ -43,14 +43,14 @@ public:
  
 protected:
   int_type 
-  overflow(int_type c = traits_type::eof()) 
+  overflow(int_type c __attribute__((unused)) = traits_type::eof()) 
   { return traits_type::not_eof(0); }
 };
 
 void
 test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   testbuf ob;
   std::ostream out(&ob); 
 
index d2833831e725fa7e4191464b24cdb2ac1879081f..72a67de7135efe2d21ccb6ecc62f2a8f6b6032a7 100644 (file)
@@ -46,7 +46,7 @@ public:
   bool
   check_pointers()
   { 
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     VERIFY( this->eback() == NULL );
     VERIFY( this->gptr() == NULL );
     VERIFY( this->egptr() == NULL );
@@ -92,8 +92,9 @@ void test01()
   typedef testbuf::traits_type traits_type;
   typedef testbuf::int_type int_type;
 
-  bool test = true;
-  char* lit01 = "chicago underground trio/possible cube on delmark";
+  bool test __attribute__((unused)) = true;
+  char lit01[52];
+  strcpy(lit01, "chicago underground trio/possible cube on delmark");
   testbuf buf01;
 
   // 27.5.2.3.1 get area
index f1392dc631da7a9732aeb71c0308a2b1d8a790de..f4c67c8389cacfb5b29b09bc70b695c62dca9b7f 100644 (file)
@@ -46,7 +46,7 @@ public:
   bool
   check_pointers()
   { 
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     VERIFY( this->eback() == NULL );
     VERIFY( this->gptr() == NULL );
     VERIFY( this->egptr() == NULL );
@@ -92,8 +92,13 @@ void test02()
   typedef testbuf::traits_type traits_type;
   typedef testbuf::int_type int_type;
 
-  bool test = true;
-  char* lit01 = "chicago underground trio/possible cube on delmark";
+  bool test __attribute__((unused)) = true;
+
+  const char* lit00 = "chicago underground trio/possible cube on delmark";
+  size_t i01 = traits_type::length(lit00);
+  char lit01[i01];
+  strcpy(lit01, lit00);
+
   testbuf buf01;
 
   // 27.5.2.1 basic_streambuf ctors
@@ -104,7 +109,7 @@ void test02()
   VERIFY( buf01.getloc() == std::locale() );
 
   // 27.5.2.2.5 Put area
-  size_t i01 = traits_type::length(lit01);
+
   char carray01[i01];
   std::memset(carray01, 0, i01);
   
index b90e3d508588da5b2a98ba1215449a7b92aa08ef..e9c6e2aa6a6b8a2ec470ee3946052f6daee16091 100644 (file)
@@ -29,7 +29,7 @@ class MyTraits : public std::char_traits<char>
 public:
   static bool eq(char c1, char c2)
   {
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     VERIFY( c1 != 'X' );
     VERIFY( c2 != 'X' );
     return std::char_traits<char>::eq(c1, c2);
@@ -52,13 +52,13 @@ public:
 // libstdc++/9538
 void test08()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   MyBuf mb;
   mb.sputbackc('a');  
 }
 
-main() 
+int main() 
 {
   test08();
   return 0;
index 0feabcd08cd85b287618545cfc492b4db4f20922..7859b3f3029ac0595820f87d26fd379282654595 100644 (file)
@@ -46,7 +46,7 @@ public:
   bool
   check_pointers()
   { 
-    bool test = true;
+    bool test __attribute__((unused)) = true;
     VERIFY( this->eback() == NULL );
     VERIFY( this->gptr() == NULL );
     VERIFY( this->egptr() == NULL );
@@ -92,14 +92,15 @@ void test01()
   typedef testbuf::traits_type traits_type;
   typedef testbuf::int_type int_type;
 
-  bool test = true;
-  char* lit01 = "chicago underground trio/possible cube on delmark";
+  bool test __attribute__((unused)) = true;
   testbuf buf01;
-  int i01 = 3;
 
   // sputn/xsputn
-  char* lit02 = "isotope 217: the unstable molecule on thrill jockey";
-  int i02 = std::strlen(lit02);
+  const char* lit01 = "isotope 217: the unstable molecule on thrill jockey";
+  const int i02 = std::strlen(lit01);
+  char lit02[i02];
+  std::strcpy(lit02, lit01);
+
   char carray[i02 + 1];
   std::memset(carray, 0, i02 + 1);
 
index 8e2d3c0aef7e63a382716392dd379144680742ad..5c75185774b53556852476c220fc546f6ce8f55b 100644 (file)
@@ -76,7 +76,7 @@ public:
 // libstdc++/1057
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string text = "abcdefghijklmn";
   
   // 01
index 14275c2e64ad09e89c498fcc0fe94c6d20a81c89..39a5e90e3be2d245497b052051bdd21ef23e7adf 100644 (file)
@@ -57,7 +57,7 @@ struct gnu_char_traits
   typedef gnu_char_type        char_type;
   typedef long                 int_type;
   typedef long                 pos_type;
-  typedef unsigned long        off_type;
+  typedef long         off_type;
   typedef long                 state_type;
   
   static void 
@@ -115,7 +115,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_stringbuf<gnu_char_type, gnu_char_traits> gnu_ssbuf;
   
   try
index 4f308b98cb7832a8461732bf4adf7e0a8a3e54bd..b09e94d1a9feb1c30dbc3002e9a0aec1319e25e8 100644 (file)
@@ -28,7 +28,7 @@ void test01()
   typedef std::stringbuf test_type;
   typedef std::streambuf base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 549e59ef8417f60375149b48335cbdbecde2d6ab..552888fba7f19ff331a614f0c176d95217f34d6d 100644 (file)
@@ -27,7 +27,7 @@
 void test03()
 {
   using std::locale;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   locale loc =  std::locale::classic();
   std::stringbuf ob;
index 928f9457cb4801e694c957d7ea96a400618af5d2..e8e8dc9972e5cfca23cf7bcddf63603d795d76a9 100644 (file)
@@ -32,10 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
@@ -47,8 +46,8 @@ void test04()
   strmof_1 = strb_01.in_avail();
   strmof_2 = strb_02.in_avail();
   VERIFY( strmof_1 != strmof_2 );
-  VERIFY( strmof_1 == str_01.length() );
-  VERIFY( strmof_2 == str_02.length() );
+  VERIFY( strmof_1 == static_cast<std::streamoff>(str_01.length()) );
+  VERIFY( strmof_2 == static_cast<std::streamoff>(str_02.length()) );
   strmof_1 = strb_03.in_avail(); 
   // zero cuz write-only, or eof()? zero, from showmany
   VERIFY( strmof_1 == 0 ); 
index 90845d0ad47bdcb7a41c53500b3ee58c2d568761..38b72b51e6eba3ada3d086c45ec83e5ce4f1e993 100644 (file)
@@ -60,7 +60,7 @@ template<typename T>
 
 void test03() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string control01("11111");
   std::string test01;
 
index a8e3a287464aad0b580b7039657adba72eb36ee6..ad79cfcac65541bbabbf05efb8d6284bddc07af6 100644 (file)
@@ -41,14 +41,14 @@ public:
  
 protected:
   int_type 
-  overflow(int_type c = traits_type::eof()) 
+  overflow(int_type c __attribute__((unused)) = traits_type::eof()) 
   { return traits_type::not_eof(0); }
 };
 
 void
 test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   testbuf ob;
   std::ostream out(&ob); 
 
index abdd4def261f74d56f01ec63a634e200b27ea2a8..f9646cade91fbc597674355d91b2a076a472cbb3 100644 (file)
@@ -35,7 +35,7 @@ public:
 void test15()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   OverBuf sb;
 
@@ -56,7 +56,7 @@ void test15()
   VERIFY( c == stringbuf::traits_type::eof() );
 }
 
-main() 
+int main() 
 {
   test15();
   return 0;
index f075f9db759fe03eaf0f2778eaa8b703e8a63bf4..df5173ae2b286b7b0ffe76e4868ff07d7b6f148b 100644 (file)
@@ -32,10 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
index df6fa264d0e486f33ba2a6ff71c3b31a90e432e0..d49016af882297789186ebe70d1a1a3f27f8a7c5 100644 (file)
@@ -28,7 +28,7 @@
 void test12()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   stringbuf sbuf;
   sbuf.sputn("crazy bees!", 11);
@@ -43,7 +43,7 @@ void test12()
   VERIFY( c == 'a' );
 }
 
-main() 
+int main() 
 {
   test12();
   return 0;
index 579206ff160d0c034f4834960f08deda35a04222..aa32edde22dd7b4128dba1e0eee5c53598389fe2 100644 (file)
@@ -32,11 +32,10 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
   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;
   typedef std::stringbuf::pos_type pos_type;
@@ -45,8 +44,6 @@ void test04()
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
   int_type c3 = strb_01.sbumpc();
-  int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
 
   // PUT
   strb_03.str(str_01); //reset
@@ -108,7 +105,7 @@ void test04()
   strb_01.pubseekoff(0, std::ios_base::end);
   strb_01.sputc('<');
   str_tmp = strb_01.str();
-  VERIFY( str_tmp.size() == strmsz_1 + strmsz_2 + 1 );
+  VERIFY(static_cast<std::streamsize>(str_tmp.size()) == strmsz_1 + strmsz_2 + 1);
   // IN
   // OUT
 }
index 869cd46f56a1af2cf02436145ae3782328582e61..984e6303183c43fb1b835074cc6b2e688cc99e93 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::stringbuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index 12143c5add725c13fd01f2f9767e4a3cb8546769..9ed89f9da3edaaace61e80ccdbe58f7d210f4771 100644 (file)
@@ -32,11 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
   typedef std::stringbuf::pos_type pos_type;
@@ -45,8 +43,6 @@ void test04()
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
   int_type c3 = strb_01.sbumpc();
-  int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
 
   pos_type pt_1(off_type(-1));
   pos_type pt_2(off_type(0));
index c3c6a8ad6839df5e9a38147d795187a5c57a2597..7a8389a8b9bcab35a47fed3390e731d1cf46fabe 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02(std::stringbuf& in, bool pass)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef streambuf::pos_type pos_type;
   typedef streambuf::off_type off_type;
index 46cbcedf5475b3062f4e21cf295d6452a04a7e21..0e952d755c443f9c42f7d58893beab5975351e11 100644 (file)
@@ -23,7 +23,7 @@
 
 void test01() 
 {
-  bool         test = true;
+  bool test __attribute__((unused)) = true;
   using namespace std;
   typedef stringbuf::pos_type pos_type;
   typedef stringbuf::off_type off_type;
index e79da0eda3aed0e01af49a45e4c773734619dc56..cfed7cb319f9c342caef2a5215fe437ca63ad673 100644 (file)
@@ -32,22 +32,14 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
   typedef std::stringbuf::pos_type pos_type;
   typedef std::stringbuf::off_type off_type;
 
-  int_type c1 = strb_01.sbumpc();
-  int_type c2 = strb_02.sbumpc();
-  int_type c3 = strb_01.sbumpc();
-  int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
-
   // PUT
   strb_03.str(str_01); //reset
   
index 0eade15314a0c898d6ad567474873ff5a53b03d1..145141e8d67e47675a0033d75b78a5911ddea17c 100644 (file)
@@ -27,7 +27,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buf[512];
   const char* strlit = "how to tell a story and other essays: mark twain";
   const size_t strlitsize = std::strlen(strlit);
@@ -38,7 +38,7 @@ void test01()
   VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
 }
 
-main() 
+int main() 
 {
   test01();
   return 0;
index 6a8d0b462e454650588696f479eb301f26392467..02782c526cb9067287404672175610522c8000a2 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buf[512];
   const char* strlit = "how to tell a story and other essays: mark twain";
   const size_t strlitsize = std::strlen(strlit);
@@ -38,7 +38,7 @@ void test02()
   VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
 }
 
-main() 
+int main() 
 {
   test02();
   return 0;
index c34109df6b1ae3047bc0b581f37747145804a3c7..274cd6159e3607f416e0dfdab31ce49f702025e9 100644 (file)
@@ -32,10 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
@@ -47,8 +46,6 @@ void test04()
   strmof_2 = strb_02.in_avail();
   strmof_1 = strb_03.in_avail(); 
 
-  int_type c1 = strb_01.sbumpc();
-  int_type c2 = strb_02.sbumpc();
   int_type c3 = strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
   int_type c5 = strb_03.sbumpc();
index 420a318c86b5ab1339e6116de6407758df7e5d20..c68ad1424b5272874888e02d41fe71b2f216ec35 100644 (file)
@@ -32,7 +32,7 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
   std::streamsize              strmsz_1, strmsz_2;
@@ -49,7 +49,7 @@ void test04()
 
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
-  int_type c3 = strb_01.sbumpc();
+  strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
   int_type c5 = strb_03.sbumpc();
 
@@ -57,9 +57,9 @@ void test04()
   // if read_cur not avail, return uflow(), else return *read_cur  
   int_type c6 = strb_01.sgetc();
   int_type c7 = strb_02.sgetc();
-  int_type c8 = strb_01.sgetc();
-  int_type c9 = strb_02.sgetc();
-  c5 = strb_03.sgetc();
+  strb_01.sgetc();
+  strb_02.sgetc();
+   c5 = strb_03.sgetc();
 
   // int_type snextc()
   // calls sbumpc and if sbumpc != eof, return sgetc
@@ -74,8 +74,9 @@ void test04()
   strmsz_1 = strb_01.in_avail();
   strmsz_2 = strb_02.in_avail();
   test = strmsz_1 != strmsz_2;
-  VERIFY( strmsz_1 != str_01.length() );
-  VERIFY( strmsz_2 != str_02.length() ); //because now we've moved into string
+  VERIFY( strmsz_1 != static_cast<std::streamsize>(str_01.length()) );
+  // because now we've moved into string
+  VERIFY( strmsz_2 != static_cast<std::streamsize>(str_02.length()) ); 
   char carray1[11] = "";
   strmsz_1 = strb_01.sgetn(carray1, 10);
   char carray2[20] = "";
index 63e3515c8026a31d1db8f838a566008b308a9a12..c94342143a0128d66c408087a571f94332856d73 100644 (file)
@@ -32,10 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
@@ -47,10 +46,10 @@ void test04()
   strmof_2 = strb_02.in_avail();
   strmof_1 = strb_03.in_avail(); 
 
-  int_type c1 = strb_01.sbumpc();
-  int_type c2 = strb_02.sbumpc();
-  int_type c3 = strb_01.sbumpc();
-  int_type c4 = strb_02.sbumpc();
+  strb_01.sbumpc();
+  strb_02.sbumpc();
+  strb_01.sbumpc();
+  strb_02.sbumpc();
   int_type c5 = strb_03.sbumpc();
 
   // int_type sgetc()
index ef7c68f72c05fe3002bdf00712dab002d8aa6f54..853339e23c12356d5412941258dd0ee53a8d4419 100644 (file)
@@ -32,11 +32,10 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp, str_tmp2;
   std::stringbuf               strb_tmp;
   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;
   typedef std::stringbuf::pos_type pos_type;
@@ -46,7 +45,6 @@ void test04()
   int_type c2 = strb_02.sbumpc();
   int_type c3 = strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
 
   // PUT
   strb_03.str(str_01); //reset
index e7dcaa1dbb92423f750bf52e127c17a57bed123f..6a05d89b10dd868c6060977173b8ddd957839ca1 100644 (file)
 void test09()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   stringbuf sbuf;
   stringbuf::int_type r = sbuf.sputbackc('a');
   VERIFY( r == stringbuf::traits_type::eof() );
 }
 
-main() 
+int main() 
 {
   test09();
   return 0;
index 8e4864248405c8f3c5012fb569f95089d358db0b..5fc08f2ba9b1df0eddaf08c891b5ea878b51da7d 100644 (file)
@@ -32,11 +32,9 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
-  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;
   typedef std::stringbuf::pos_type pos_type;
@@ -45,8 +43,6 @@ void test04()
   int_type c1 = strb_01.sbumpc();
   int_type c2 = strb_02.sbumpc();
   int_type c3 = strb_01.sbumpc();
-  int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
 
   // PUT
   // int_type sputc(char_type c)
index 6d4019295d2b1e35bc7a41b777509d3f37ca796e..38f7ed92c4892120e00286849eb596df3f850a47 100644 (file)
@@ -48,7 +48,7 @@ public:
 // libstdc++/9404
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   bool over_expected;
 
index 525014c2a02bdb2a5515c8496607003c0df15879..801ae7f44bd74f02eb31f89c8bc8b54d997de5d2 100644 (file)
@@ -32,22 +32,15 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
   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;
   typedef std::stringbuf::pos_type pos_type;
   typedef std::stringbuf::off_type off_type;
 
-  int_type c1 = strb_01.sbumpc();
-  int_type c2 = strb_02.sbumpc();
-  int_type c3 = strb_01.sbumpc();
-  int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
-
   // PUT
   strb_03.str(str_01); //reset
   std::string::size_type sz1 = strb_03.str().length();
index 3cb743cc69994f953f7b2895fe4b411ee9bcab96..fe26854c68330e3855f960f045c2f05b09f49578 100644 (file)
@@ -48,7 +48,7 @@ public:
 // libstdc++/9404
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   bool over_expected;
   Derived_stringbuf dsbuf_01;
index 8de264b08e8fc6638bcdb3a7cea8efcfc8a0eec5..2f9a5cf176f1c6459642ebbca776d375f5e8ef07 100644 (file)
@@ -32,7 +32,7 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test member functions
 void test03() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   //stringbuf::str()
   VERIFY( strb_01.str() == str_01 );
@@ -47,7 +47,7 @@ void test03()
   VERIFY( d1 ); // non-zero
   VERIFY( !d2 ); // zero, cuz ios_base::out
   VERIFY( d1 != d2 ); //these should be the same
-  VERIFY( str_01.length() == d1 );  
+  VERIFY( static_cast<std::streamsize>(str_01.length()) == d1 );  
   VERIFY( strb_01.str() == strb_03.str() ); //ditto
 
   // stringbuf::str(string&) and stringbuf::stringbuf(string&), where the
@@ -58,9 +58,9 @@ void test03()
   std::stringbuf strb_nulls (str_nulls);
   strb_normal.str(str_nulls);  // tried using 'strb_01' rather than declaring
                                // another variable, but then test04 broke!
-  VERIFY( strb_nulls.in_avail() == str_nulls.size()  );
-  VERIFY( strb_nulls.str().size() == 20              );
-  VERIFY( strb_normal.in_avail() == str_nulls.size() );
+  VERIFY( strb_nulls.in_avail() == static_cast<std::streamsize>(str_nulls.size())  );
+  VERIFY( strb_nulls.str().size() == 20 );
+  VERIFY( strb_normal.in_avail() == static_cast<std::streamsize>(str_nulls.size()) );
 }
 
 int main()
index feabe74e1aebda4e3294b8cd58f46bbf4ef315c3..f6dda2f19a272a381f4be8790552959d62b1c3bd 100644 (file)
@@ -27,7 +27,7 @@
 // which didn't notice the grow.
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::stringbuf strb_01;
   strb_01.sputc('s');
index 7fa42a6d1fd668bfcf96b076080275a4d6d8fbda..038c9a7d884cdb59fa3db832eab990f702c40849 100644 (file)
@@ -24,7 +24,7 @@
 
 void test06()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::ostringstream os ("foo", std::ios_base::app);
   os << "bar";
index d43fd89345a72d9c56dc4a91de7a3d0b8b2c3dd4..82e613d504dfc28f9bfcd6d43322f27c336a2f6e 100644 (file)
@@ -25,7 +25,7 @@
 // libstdc++/3955 -- ios_base::app overwrites from the beginning
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::ostringstream os ("foo");
   os << "bar";
index c7bb35240bd11558f3ab6858806c33eea5b64a3e..a90885a1c6ceebee143f11fbad308f54a8bf71c8 100644 (file)
@@ -32,11 +32,10 @@ std::stringbuf strb_03(str_03, std::ios_base::out);
 // test overloaded virtual functions
 void test04() 
 {
-  bool                         test = true;
+  bool test __attribute__((unused)) = true;
   std::string          str_tmp;
   std::stringbuf               strb_tmp;
   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;
   typedef std::stringbuf::pos_type pos_type;
@@ -46,7 +45,6 @@ void test04()
   int_type c2 = strb_02.sbumpc();
   int_type c3 = strb_01.sbumpc();
   int_type c4 = strb_02.sbumpc();
-  int_type c5 = strb_03.sbumpc();
 
   // PUT
   strb_03.str(str_01); //reset
index 85717200d88aaaf098151620bbaf0a0876194d58..f33e39aa5f2b80cdfbabec466a93cacb25653c93 100644 (file)
@@ -76,7 +76,7 @@ public:
 // libstdc++/1057
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string text = "abcdefghijklmn";
   
   // 01
index 036d7e59bdb84e1a9ed6edb01ab10e10c5951aa3..896c35c6104b6ec59e45aedaa541aa14b85111d7 100644 (file)
@@ -59,7 +59,7 @@ struct gnu_char_traits
   typedef gnu_char_type        char_type;
   typedef long                 int_type;
   typedef long                 pos_type;
-  typedef unsigned long        off_type;
+  typedef long         off_type;
   typedef long                 state_type;
   
   static void 
@@ -117,7 +117,7 @@ struct gnu_char_traits
 
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   typedef std::basic_stringstream<gnu_char_type, gnu_char_traits> gnu_sstr;
 
   try
index dcd5dc3dc64263543e8d53b2344145fe50402dc3..6189c2677847ec342992f32322eec1e468faeed1 100644 (file)
@@ -29,7 +29,7 @@ void test01()
   typedef std::stringstream test_type;
   typedef std::iostream base_type;
   const test_type& obj = test_type();
-  const base_type* base = &obj;
+  const base_type* base __attribute__((unused)) = &obj;
 }
 
 int main()
index 5e4fe022e753545f0bcb6a704d09d2ec59f7f0cf..9a0b6685560af66a60cc32dea579e87d4bfba682 100644 (file)
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index 79b1e9cb35ee7ab14827844b1652238b32861dce..45c78cdafacc3cd7636c4d52ed017f1e2fba42d1 100644 (file)
@@ -25,7 +25,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::stringstream is01;
   const std::string str00; 
   const std::string str01 = "123";
index 04f2746bcdee7f0735a5cf960c8efc69f5a15943..397de5f1b862a1e7e1601b6450454778387000c9 100644 (file)
@@ -34,9 +34,8 @@ active_buffer(std::ios& stream)
 // libstdc++/2832
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* strlit01 = "fuck war";
-  const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
   const std::string str00;
   const std::string str01(strlit01);
   std::string str02;
index 47901a6e49808641b28daff985d902bb7857b4e9..2d24f6b792215fc757bc705673da5536ab42e271 100644 (file)
@@ -26,7 +26,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   //
   // 1: Automatic formatting of a compound string
index 7d77fc2c63cdb59d33a56cc29ad96523200151ee..8dfe9b5d53b988b8ed78372a0a29d3b41cba37d6 100644 (file)
@@ -26,7 +26,7 @@
 // libstdc++/8466
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* strlit00 = "orvieto";
   const std::string str00 = strlit00;
index 3a8fef7722f6dd95f32119bad61731b12a05037a..dc25b78fa5d37b72d27468e123ef44b5805843bf 100644 (file)
@@ -35,7 +35,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::mbstate_t state_type;
   state_type state01 = state_type();
@@ -44,12 +44,6 @@ void test01()
   std::streampos pos01(0);
   std::streampos pos02(0);
 
-  std::streamoff off01;
-  std::streamoff off02;
-  
-  std::streamsize size01;
-  std::streamsize size02;
-
   // 27.4.3.1 fpos members
   // void state(state_type s);
   // state_type state();
index 46c64b8bef5a6eec95a76c77fc5bf73bb170bd75..32699b97e57ec4a1477fecf2d24e2ad5dd3001c9 100644 (file)
 // 27.4.3.2 fpos requirements/invariants
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::mbstate_t state_type;
-  state_type state01;
-  state_type state02;
 
   std::streamoff off01;
   std::streamoff off02 = 997;
-  
-  int i01 = 0;
   int i02 = 999;
 
   // p(i), p = i
index 777de9e7ad0797a3cf8f9a864fd4239f6e5f0beb..4b79950fa8cc4425f56058c68a97f6bb7ec011c1 100644 (file)
 
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   typedef std::mbstate_t state_type;
-  state_type state01;
-  state_type state02;
-
   std::streamoff off01;
-  std::streamoff off02 = 997;
   
-  int i01 = 0;
-  int i02 = 999;
-
   // casts to const streamoff
   // (yes, I know this is weak code)
   const std::streampos pos01 = 0;
index 09cfee4affd05f1605e2bea9af80138a4f05b8df..001d8fab825f454f674ae1e08365d77220a5e59a 100644 (file)
@@ -28,20 +28,20 @@ const std::string str01("the nubians of plutonia");
 std::string str02;
 
 void 
-callb01(std::ios_base::event e,  std::ios_base& b, int i)
+callb01(std::ios_base::event,  std::ios_base&, int)
 { str02 += "the nubians"; }
 
 void 
-callb02(std::ios_base::event e,  std::ios_base& b, int i)
+callb02(std::ios_base::event,  std::ios_base&, int)
 { str02 += " of "; }
 
 void 
-callb03(std::ios_base::event e,  std::ios_base& b, int i)
+callb03(std::ios_base::event,  std::ios_base&, int)
 { str02 += "plutonia"; }
 
 void test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::locale loc("C");
   std::stringbuf       strbuf01;
   std::ios             ios01(&strbuf01);
index bc6a356edd30a58de7d52b60df76f87c97906157..0dcae30c218a6ef8e738d2b2bbaf7533735b8da4 100644 (file)
@@ -33,7 +33,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const std::string strue("true");
   const std::string sfalse("false");
   std::string str01;
@@ -42,7 +42,7 @@ test02()
   std::locale loc_c = std::locale::classic();
   std::ostringstream ostr01;
   ostr01.imbue(loc_c);
-  std::ios_base::fmtflags ff = ostr01.flags(std::ios_base::boolalpha);
+  ostr01.flags(std::ios_base::boolalpha);
 
   ostr01 << true;
   str02 = ostr01.str();
index ee27d44788c184e3a60e5c5d4dc407988a1004bc..ce5303111acf8d471361609ef87a941f49d792c5 100644 (file)
 // http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00413.html
 void test01() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   using namespace std;
 
-  long x1 = ios::xalloc();
-  long x2 = ios::xalloc();
-  long x3 = ios::xalloc();
+  ios::xalloc();
+  ios::xalloc();
+  ios::xalloc();
   long x4 = ios::xalloc();
 
   ostringstream out("the element of crime, lars von trier");
index 7df7eb965b482f4d89a01fc5fc4efff3eb365f1d..960669e4804e1be9dc43d370752f953f2e28c9c3 100644 (file)
@@ -33,7 +33,7 @@
 // libstdc++/3129
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int max = std::numeric_limits<int>::max() - 1;
   std::stringbuf        strbuf;
   std::ios              ios(&strbuf);
index b645b4a98fd2ad1a9a8ec3182c176868d23d00a3..0976192fc9f79995dc2c03d205d73786679b85d2 100644 (file)
@@ -33,7 +33,7 @@
 
 void test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   std::stringbuf       strbuf01;
   std::ios             ios01(&strbuf01);
index b3901d8f7b85fd07b5affbb48b54466edaa63553..ce69fc26d64daa49587015bddfe1ddf2a40d4cd3 100644 (file)
@@ -54,7 +54,7 @@ std::string MyNP::do_falsename() const
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char lit[] = "1 0\ntrue false\n:  true:\n:true  :\n: false:\n:  1:"
                     "\n:1  :\n:  0:\nyea nay\n:   yea:\n:yea   :\n:   nay:\n";
   std::ostringstream oss;
index 12b52aa013476769ca0696168204332468397784..cf2253c0d61e203d7d80265c68afc3ab980894aa 100644 (file)
@@ -32,7 +32,7 @@
 
 void test02()
 {
-  bool                 test = true;
+  bool test __attribute__((unused)) = true;
   const std::string    str_blank;
   std::string  str_tmp;
   std::stringbuf       strbuf;
index 10336f50f1cef45616b970ab3d861b95d083ef39..f16eb1a9c6c8c8d1120031b384b59ad02712da25 100644 (file)
@@ -44,7 +44,7 @@ char   MyNP::do_thousands_sep() const { return ' '; }
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char lit[] = "0123 456\n: 01 234 567:\n:0123 456   :\n"
                      ":    012 345:\n:     01 234:\n:0726 746 425:\n"
index 71822372fc83d8e085b9cd0755f183cae5837bea..d2d6b82dd09c3bc492f3e792fcaad94673a165a1 100644 (file)
@@ -26,7 +26,7 @@ void
 test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   string s("john coltrane, a love supreme");
   istringstream  iss(s);
index b7ee2b4b6f53a888057ba9745ee6bdcbd47b588a..be6c22deb05d4250b2e4dea13cef8fb37882d0db 100644 (file)
@@ -35,7 +35,7 @@ void
 test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   string x ("   this is text");
   istringstream  sin (x);
   ostringstream  sout;
index 6ab05e861f13088d45202b6b32c7e137f209632c..78e58cf9bf019de19d6fb1dd822f3e2dcdf0dbc9 100644 (file)
@@ -75,7 +75,7 @@
 // Make sure all the standard streams are defined.
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   char array1[20];
   typedef std::ios::traits_type ctraits_type;
index 4990a58857dda59db4469cc044a29156c090098c..57188ca10d33738f0eb655325de7d62667ad0452 100644 (file)
@@ -26,7 +26,7 @@ void test10()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "filebuf_virtuals-1.txt";
 
   FILE* ret = freopen(name, "r", stdin);
index ad190d0f2b5c0745c36e794d9a2956defabe63da..a65eff54b510fb0838f01a22867588d4c56e923d 100644 (file)
@@ -46,7 +46,7 @@ gnu_filebuf buf(initial);
 // libstdc++/3045, in a vague way.
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int k1;
 
   // 1 normal
index aa15e936363c5124b4deaace41be4f3a0561bdcd..da93e83e1271a58e5843c55df0ec46d32b5267bd 100644 (file)
@@ -69,7 +69,7 @@ int use_standard_streams()
 
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int i = static_ob.i;
 
   VERIFY( std::cin.iword(i) == i + 1 );
index af3aa8c0b479f8bbf592110f0b52f85d698fb786..df86b33c26a7e7b170a13034b6ac5c208eb8814f 100644 (file)
@@ -37,7 +37,7 @@ protected:
 
 void test06()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   try
     {
index ce6133bc39b3df61171ab8c338c863a1e731149a..e29b2082152d90996a4179f5f129dae6167e097d 100644 (file)
@@ -24,7 +24,7 @@
 // libstdc++/6548
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::cout << "Enter 'test':";
   std::string s;
   std::getline(std::cin, s, '\n');
index 9802f092a1fac91796052cc8b3c1efb05fd8f321..f6d8dd8638bbe1fb382ad460dce15fd122fd730a 100644 (file)
@@ -24,7 +24,7 @@
 // Interactive tests: each one (run alone) must terminate upon a single '\n'.
 void test08()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   char buff[2048];
   std::cout << "Enter name: ";
   std::cin.getline(buff, 2048);
index e25a8c3e765fa7826335424cc7aa5d5ff092923e..efe4e65bec4594ec80ba078c6819d0890612d577 100644 (file)
@@ -22,7 +22,7 @@
 
 void test09()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::cout << "Enter favorite beach: ";
   std::cin.ignore(2048, '\n');
 }
index 3e3e7232f032e64cc65f075fa510ca5646d4edaa..21a7b49c47962524ce39f5f6c2f3d51f67b08d07 100644 (file)
@@ -36,7 +36,7 @@
 void test07()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_fifo4";
 
index 977af9a4429183e30fa7b37f19b16b03768870a5..a3dc9805a451c36fd3a065652dd5fa0e9f0a72de 100644 (file)
@@ -24,7 +24,7 @@
 // libstdc++/7744
 void test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::ios::sync_with_stdio(false);
 
   std::cout << "Type in the characters 'abc' and press <ENTER>: ";
index 28a06a10ad3959ad920f607e4f1f3d18dac256ee..7f39c313228774c3a247f33c945b9cc56315ef96 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   // 27.3 - Standard iostream objects p 2
   // The objects are not destroyed during program execution.
index faa05e65ebfeaadc3915599bd77ec8b004bd259e..32424133d408bbb6246f2c044f04fa6e56f00973 100644 (file)
@@ -26,7 +26,7 @@ void test09()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_09";
 
   FILE* fout = fopen(name, "w");
index c4890cc5d19efc08f6f931db5b633f2e3072c132..61855064277b2f6d456b89707f6d222f1ef40ddd 100644 (file)
@@ -37,7 +37,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_fifo5";
 
index 6b617463608b5a91e86d022865742a94c95ccc50..f88ab64d6216f540bce136ef6d083b777f46dc0a 100644 (file)
@@ -26,7 +26,7 @@ void test02()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   int c1 = fgetc(stdin);
   int c2 = cin.rdbuf()->sputbackc(c1);
index c766cd6fa5b990a6b55b3272a836fe7a7f97aa62..61b654833ab9b6db5f7fec7a1b55e015bae9e453 100644 (file)
@@ -78,7 +78,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wchar_t array2[20];
   typedef std::wios::traits_type wtraits_type;
index f797380836f466af732a450b4ac4f163aa71d88e..3c576530b315157f9374274723d7425c399b905e 100644 (file)
@@ -27,7 +27,7 @@ void test10()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_10";
 
   locale loc(__gnu_test::try_named_locale("se_NO.UTF-8"));
index d538612a60d1930ce0b983674d8d5858eb3de50c..576b6107882fcf4723aa19117a2eeee7a014c506 100644 (file)
@@ -27,7 +27,7 @@ void test11()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_11";
 
   locale loc(__gnu_test::try_named_locale("se_NO.UTF-8"));
index 50e4e78cd8c783373d402adb93abb40310767f64..c5c70450ba7863fe405092b3aa4a56c30f683864 100644 (file)
@@ -32,7 +32,7 @@ void test12()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_12";
 
   locale loc(__gnu_test::try_named_locale("se_NO.UTF-8"));
index b974b4afb858120bf165d476617c1aa9dfc4758b..b4f735101d708e90267e619543de5a16d4e9ebb7 100644 (file)
@@ -32,7 +32,7 @@ void test13()
 {
   using namespace std;
   
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_13";
 
   locale loc(__gnu_test::try_named_locale("se_NO.UTF-8"));
@@ -104,7 +104,7 @@ void test13()
   wchar_t wbuf[wlen + 10];
   wcin.read(wbuf, wlen + 10);
   streamsize n = wcin.gcount();
-  VERIFY( n == wlen );
+  VERIFY( n == static_cast<streamsize>(wlen) );
   VERIFY( !wmemcmp(wbuf, wstr, wlen) );
   VERIFY( wcin.eof() );
   VERIFY( wcin.fail() );
index acc45b25b77f254aa3b52d4b6e8d85d0a96d74b3..9f266f26bd0d33957d8fe9ef59f3b6ed3f57ff9c 100644 (file)
@@ -46,7 +46,7 @@ gnu_filebuf buf(initial);
 // libstdc++/3045, in a vague way.
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int k1;
 
   // 1 normal
index 267bc792acd299c9f2f664176316a86abad10ae8..318598f5e9d96b6401d3c78908e3903c03cd272f 100644 (file)
@@ -69,7 +69,7 @@ int use_standard_streams()
 
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   int i = static_ob.i;
 
   VERIFY( std::wcin.iword(i) == i + 1 );
index 0466b67547712bbdc5b3efeb2b880f14818c360e..8bec16fd77eed2c2e67667c9021afc324cf0e8fa 100644 (file)
@@ -24,7 +24,7 @@
 // libstdc++/6548
 void test07()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wcout << L"Enter 'test':";
   std::wstring s;
   std::getline(std::wcin, s, L'\n');
index 4db05d1e06fd7fe126f6bc538f47b35cc71d1ca6..7417f883d107df94c577e831b429d99764fcf684 100644 (file)
@@ -24,7 +24,7 @@
 // Interactive tests: each one (run alone) must terminate upon a single '\n'.
 void test08()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   wchar_t buff[2048];
   std::wcout << "Enter name: ";
   std::wcin.getline(buff, 2048);
index 778c58f07b45590e6c9908302cca381b39ffb24c..13cd6a5d423fa2bd2f1328f582eb82fd3015f578 100644 (file)
@@ -22,7 +22,7 @@
 
 void test09()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::wcout << L"Enter favorite beach: ";
   std::wcin.ignore(2048, '\n');
 }
index fcdeaba2ff5a2402a34613d14a010c3145438249..004687af01f920e315dd50b53dee8513d2060bea 100644 (file)
@@ -33,7 +33,7 @@
 void test07()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_fifo4";
 
index e4ca3b95d46ba833681e5580a8513ca92e12f4fe..0bcb122cd3704b06d1cca7d24e5b18c369394fb6 100644 (file)
@@ -24,7 +24,7 @@
 // libstdc++/7744
 void test11()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::ios::sync_with_stdio(false);
 
   std::wcout << "Type in the characters 'abc' and press <ENTER>: ";
index 346d0fc81d41616983211b25b58bc999c4b9dbdc..b1427f3cf52ce39e73cef3160ee64001ee4f6aae 100644 (file)
@@ -25,7 +25,7 @@
 
 void test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   // 27.3 - Standard iostream objects p 2
   // The objects are not destroyed during program execution.
index 79d087840c521414115e86693cfa0b517d12c272..6d41e9b5e5e1d3f1691c289711cd00e6ff710c52 100644 (file)
@@ -26,7 +26,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "tmp_9520";
 
   FILE* file = fopen(name, "w");
index 0d8d6283521c5c74fc1503df26557a67fabda00b..9c9d082546d5f7bbef671db87f77152547c6f162 100644 (file)
@@ -34,7 +34,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_fifo5";
 
index 351a91b6f0357fa6ffa316e2c39c17182bc36fc8..40e2151565fe662e151d41272478f517e57524b8 100644 (file)
@@ -27,7 +27,7 @@ void test02()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   wint_t c1 = fgetwc(stdin);
   wint_t c2 = wcin.rdbuf()->sputbackc(c1);
index 27c7ff7f7cdb4fb4223092683e990bf9ea3c5c8f..15d6c513f16ccd411873557eacaa79a533527f7c 100644 (file)
@@ -27,7 +27,7 @@
 // on stdout.
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::wcout << L"Hello, ";
   VERIFY( std::fwide(stdout, 0) >= 0 );
index c64e20b78fbdfc399dd576b215c12bfe92a7025b..6e0cb502220b17134b969113d6f5e9e6485f3d5f 100644 (file)
@@ -27,7 +27,7 @@ void test01()
   std::streamoff soff;
 
   // No signed/unsigned warnings.
-  long l = ssize;
+  long l __attribute__((unused)) = ssize;
 
   // Wrapped in pos_type is EOF.
   soff = -1;
index 107041041f7be6f9ab7642397ba7d90506b54535..906201c8967a7b0726cf234abe18685f3d5db350 100644 (file)
 
 // { dg-options "-Wno-deprecated" }
 
-int test01()
+void test01()
 {
    std::strstream s;
    for (unsigned i=0 ; i!= 1000 ; ++i)
       s << i << std::endl;
    s << std::ends;
-   return 0;
 }
 
 
-int test02()
+void test02()
 {
   std::ostrstream buf;
   buf << std::ends;
index 34188c47328a07b3658b4603bade80f9f1545ed6..85205d53a7bb6f7508533cda2d7404475ab97541 100644 (file)
@@ -64,7 +64,7 @@ operator delete(void *v) throw()
 template<typename Alloc, bool uses_global_new_and_delete>
 void check_allocator()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   new_called = false;
   delete_called = false;
   requested = 0;
index 55b740f3ee8e0aa46ab04cb056334d3743a9ee2b..9911968c02726cdf0c105cec464a18f6fb88e029 100644 (file)
@@ -68,7 +68,7 @@ const int Size = 5;
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   for (int i = 0; i < 10; i++)
   {
index 068bdcd2e7636b73a0c6bf60c0e9002f9f437ca4..de0020dd626f41f660ac38adb3cb8ed596f23810 100644 (file)
@@ -26,7 +26,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const int werte[] = { 1, 25, 9, 16, -36};
   const int anzahl = sizeof(werte) / sizeof(int);
   __gnu_cxx::hash_set<int> intTable(werte, werte + anzahl);
index 0a6934830d716917c5eeff26f245aaa437470ad4..d18afde8a0c47cadf581ca3b4de1043fa74b3ebf 100644 (file)
@@ -41,7 +41,7 @@ int main()
   typedef character<value_type, int_type>      char_type;
   typedef std::char_traits<char_type>          traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // 1 char_type <-> value_type conversions
   value_type uc1 = 'c';
@@ -70,8 +70,8 @@ int main()
   str += c7;
   str += c8;
   str += c9;
-  string_type::size_type len = str.size();
-  const char_type* arr = str.c_str();
+  string_type::size_type len __attribute__((unused)) = str.size();
+  const char_type* arr __attribute__((unused)) = str.c_str();
 
   return 0;
 }
index a46f2399b4274cb63368578d190d9f948224195c..1ef57eecb21aadd9f6f6fb0644652047e3afe0ba 100644 (file)
@@ -30,7 +30,7 @@
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   const char* name = "tmp_file1";
   FILE* file = fopen(name, "w");
index 095829621fbb242fa4f2b6df1181280e112a5d93..5134cadfbe9c9b2119c846785d4da0682988f824 100644 (file)
@@ -25,7 +25,7 @@ void test01()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* c_lit = "black pearl jasmine tea";
   int size = strlen(c_lit);
   const char* name = "stdiobuf-1.txt";
@@ -59,7 +59,7 @@ void test01()
 // libstdc++/12048
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
@@ -77,7 +77,7 @@ void test02()
 // libstdc++/12048
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
@@ -95,7 +95,7 @@ void test03()
 // libstdc++/12048
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
@@ -113,7 +113,7 @@ void test04()
 // libstdc++/12048
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
index 25276a2d67774324afe0ce75ef1c494b95b3d48e..96831c3c2f4a200a1ffdd829cfad61da4067a951 100644 (file)
@@ -24,8 +24,9 @@
 void test01()
 {
   using namespace std;
+  typedef char_traits<wchar_t> traits_type;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* c_lit = "black pearl jasmine tea";
   const wchar_t* w_lit = L"black pearl jasmine tea";
   int size = strlen(c_lit);
@@ -38,13 +39,13 @@ void test01()
   FILE* fin = fopen(name, "r");
   __gnu_cxx::stdio_sync_filebuf<wchar_t> wsbuf(fin);
 
-  VERIFY( wsbuf.sgetc() == w_lit[0] );
-  VERIFY( getwc(fin) == w_lit[0] );
-  VERIFY( wsbuf.sgetc() == w_lit[1] );
-  VERIFY( wsbuf.sbumpc() == w_lit[1] );
+  VERIFY( traits_type::to_char_type(wsbuf.sgetc()) == w_lit[0] );
+  VERIFY( traits_type::to_char_type(getwc(fin)) == w_lit[0] );
+  VERIFY( traits_type::to_char_type(wsbuf.sgetc()) == w_lit[1] );
+  VERIFY( traits_type::to_char_type(wsbuf.sbumpc()) == w_lit[1] );
   VERIFY( ungetwc(L'Z', fin) == L'Z' );
   VERIFY( wsbuf.sbumpc() == L'Z' );
-  VERIFY( getwc(fin) == w_lit[2] );
+  VERIFY( traits_type::to_char_type(getwc(fin)) == w_lit[2] );
   VERIFY( wsbuf.sputbackc(L'X') == L'X' );
   VERIFY( getwc(fin) == L'X' );
 
@@ -52,7 +53,7 @@ void test01()
   wmemset(buf, 0xdeadbeef, 5);
   VERIFY( wsbuf.sgetn(buf, 5) == 5 );
   VERIFY( !wmemcmp(buf, w_lit + 3, 5) );
-  VERIFY( getwc(fin) == w_lit[8] );
+  VERIFY( traits_type::to_char_type(getwc(fin)) == w_lit[8] );
 
   fclose(fin);
 }
@@ -60,7 +61,7 @@ void test01()
 // libstdc++/12048
 void test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
@@ -78,7 +79,7 @@ void test02()
 // libstdc++/12048
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
@@ -96,7 +97,7 @@ void test03()
 // libstdc++/12048
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
@@ -114,7 +115,7 @@ void test04()
 // libstdc++/12048
 void test05()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   const char* name = "cin_unget-1.txt";
 
   std::FILE* file = std::fopen(name, "r");
index b2f5255414306e0323ac0a325e1810b3066d59c7..0e675d00ffb783af54bcf9e8eeda870c7cb9f7ff 100644 (file)
@@ -26,7 +26,7 @@ static void create_and_fill(const unsigned int n)
 {
   typedef std::map<int, int>  Map;
   Map                         m;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   for (unsigned int i = 0; i < n; ++i)
     m[i] = i;
index 698433582cf7770fa7e63153a5ec9e0f9b700ef1..e68850979ee29ad56dd2096fb912d7db4e487bbf 100644 (file)
@@ -337,7 +337,7 @@ namespace std
       typedef __gnu_test::pod_char     char_type;
       typedef __gnu_test::pod_int      int_type;
       typedef long                     pos_type;
-      typedef unsigned long            off_type;
+      typedef long                     off_type;
       typedef __gnu_test::state        state_type;
       
       static void 
index 1283a75119a09ef7b663b0ed5c5c781c7a6e4fae..92a5f312842b77a28c8d91acc2118217088f08cb 100644 (file)
@@ -100,7 +100,7 @@ consume (void* t)
 }
 
 int
-main (int argc, char** argv)
+main ()
 {
   pthread_t prod[thread_pairs];
   pthread_t cons[thread_pairs];
index cc556046d4d60a76acf74ca2ef64c04e21115adc..262796e0ba7947df133c26530b655ecc834e74d2 100644 (file)
@@ -50,7 +50,7 @@ struct tt_t
 void*
 thread_function (void* arg)
 {
-  int myid = *(int*) arg;
+  int myid __attribute__((unused)) = *(int*) arg;
   for (int i = 0; i < LOOPS; i++)
     {
       vector<tt_t> myvect1;
@@ -88,7 +88,7 @@ thread_function (void* arg)
 }
 
 int
-main (int argc, char *argv[])
+main ()
 {
   int worker;
   pthread_t threads[NTHREADS];
index d88f77e77e1d1bae3a5b77edf4f9df3a45cdd191..c72acb539851024e09622d8d85ab27ba197952ba 100644 (file)
@@ -37,8 +37,8 @@ const int loops = 100000;
 
 const char* my_default = "Hallo Welt!";
 
-const int upper_limit = 2500;
-const int lower_limit = 1000;
+const std::size_t upper_limit = 2500;
+const std::size_t lower_limit = 1000;
 
 typedef char charT;
 
index 716ba00ccab96393c324ae3ecea82ab60c56d7aa..36acd461e8733c274235e1d810b416c0840f82aa 100644 (file)
@@ -36,7 +36,7 @@ const int max_loop_count = 10000;
 
 __gnu_cxx::crope foo4;
 
-void* thread_main (void *)
+void* thread_main(void *) 
 {
   // To see a problem with gcc 3.3 and before, set a break point here.
   // Single step through c_str implementation, call sched_yield after
@@ -48,13 +48,16 @@ void* thread_main (void *)
 
   // Please note that the memory leak in the rope implementation with
   // this test case, existed before and after fixing this bug...
-
+  bool test __attribute__((unused)) = true;
   VERIFY( !std::strcmp (data4, "barbazbonglehellohellohello") );
+  return 0;
 }
 
 int
 main()
 {
+  bool test __attribute__((unused)) = true;
+
   pthread_t tid[max_thread_count];
 
 #if defined(__sun) && defined(__svr4__)