2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Sep 2003 20:03:30 +0000 (20:03 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Sep 2003 20:03:30 +0000 (20:03 +0000)
* include/bits/locale_facets.tcc: Tweak to avoid warnings.
* testsuite/testsuite_hooks.h: Same.
* testsuite/*/*.cc: Same.

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

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 9caf65a..224cc60 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 e76ac84..f0e4112 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 bfd869e..a8d19cf 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 4e2610d..1cbb630 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 260e929..9e82930 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 eab1c75..69f83f0 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 383cc0a..a7be009 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 f86f423..377bd60 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 ae8852a..3085763 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 03f8294..1b97d64 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 8d65e02..dc2eefe 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 63d9412..a96cdf5 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 267795a..30595f0 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 8c40ab7..4170a9d 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 d70b63f..110d4b2 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 6dd45e3..a12d3b6 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 451ef19..085937f 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 7d59a8a..c79e540 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 602b2fe..e83a82e 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 496a6e5..8fd48e5 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 f6002f9..194e09d 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 879d3c1..1aa8a67 100644 (file)
@@ -27,7 +27,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
 
index 9783c45..9635b1b 100644 (file)
@@ -28,7 +28,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
   
index cfc3554..0c08fe7 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
  
index 458204c..7064d1f 100644 (file)
@@ -28,7 +28,7 @@
 void
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
   
index fc9b5a2..0d46ebe 100644 (file)
@@ -29,7 +29,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
  
index 0a50ee7..c37e01f 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 6072898..649c541 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 731a918..b885974 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 18af608..f10a255 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 08aa229..e611567 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 8f673c8..996f8ad 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 d6458a9..85c82ba 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 6f40dda..fc86271 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 fe2f321..020eff6 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 4b2f401..0aecd99 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 b1a5b6d..45715fd 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 9eaf4ce..c7b6422 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 46b7287..882e22c 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 87dab12..9140ff7 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 d02dc9c..a426f29 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 f594df7..556039e 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 d2b5831..34c1772 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 1c7ee5b..fec27bb 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 3c39bc5..11f5921 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 e2455e6..a8e86fb 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 0ef50cc..defd087 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 0f2236c..485ef4f 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 9c3e2f0..6874f83 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 15d0ee2..24b7333 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 6ed224b..11d14e5 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 4635dac..a0f0466 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 c874229..6964e01 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 919c871..e1c5402 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 d39bbe2..4438453 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 f439df9..2e6fdfd 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 8b1468b..a1a5389 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 ba92251..fb27217 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 b53ca27..1fbc3d0 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 416a1df..7ba1cec 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 195ef9d..b074ff2 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 07e3ce6..02a2de8 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 bdc848e..4d55566 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 fb201c2..6755af3 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 4671800..e77dbc1 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 fd84443..ba4f84c 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 6d5c69c..9a88091 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 1fa1fb0..33699eb 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 0a3775c..1971e95 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 d43d818..24aef6f 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 726dacc..d83a17c 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 dec24cf..b7337b2 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 bc3351d..c60985e 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 1dec0cb..98b42f9 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 d92450d..86ac5db 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 d4c632b..4971324 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 7731edd..08efb96 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 a04d13d..81cde7b 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 fcb924a..14a2942 100644 (file)
@@ -29,7 +29,7 @@
 void
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string str01 = "geogaddi";
   std::string str02;
 
index 8c112c5..4e1837f 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 19ee154..8d2209d 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 da9678a..2ee3814 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 2ff6ef2..b50af79 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 94baa82..d11dec8 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 f54cfb9..1f8d4d9 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 ddc791b..42913dc 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 d186199..1f0f5a3 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 3517d4d..9c3bec9 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 bfb1f91..46077a8 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 2f813b9..af012b9 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 a94da0d..7c564e7 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 486892a..b1ed63d 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 1a4e4f6..da00f1c 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 7dfe6c2..c18b423 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 7ec0561..2eaac5e 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 3ad6aed..7c4395a 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 3a8f77c..19a7ebe 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 6f8eb47..4ef29f2 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 4a61942..b38b3cf 100644 (file)
@@ -29,7 +29,7 @@
 
 void test02(void)
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   // 21.1.1 character traits requirements
 
index a93d2f5..d4a64ae 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 4f2d061..5d34aae 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 fa28575..1c46d58 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 523322e..060b368 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 6b57c89..13fc383 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 1a933f8..da377b5 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 9e98f53..6830d30 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 0929676..ecb0075 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 9ac07c5..76428bf 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 d2fa938..1b86fb7 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 c103b2e..815cfd3 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 9cc921c..d456868 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 68972e7..d996797 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 71f6ac7..bbc6397 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 d5a410a..d8c2e8f 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 51739b6..c1e025c 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 118462d..361f2c7 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 c08ee55..14b6728 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 ec65f60..aa0879d 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 1be3032..1eed288 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 7d14ab4..8689be2 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 296f2eb..ee4d82b 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 7ba367b..ed6e688 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 3ea244d..0859528 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 6e0a7e9..5e5023a 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 100de85..bc22875 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 6f92b6c..a969ef6 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 8aec29d..3512e8c 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 0b7b87c..ca742c3 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 284233e..2921a9d 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 76c151e..a0700c1 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 7d8ff4a..5f35a0f 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 789007a..2880ec5 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 5ecc99e..ad8cc24 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 c99c823..57d471e 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 27f67a4..229692b 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 8ab6828..7533e4c 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 f0ef0a5..1dddbb2 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 82a57c6..75eb2ff 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 ff413d5..cffff04 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 b1fa9fa..c421488 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 4fd193e..fabb941 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 13ca4b2..55ba7ef 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 9ee2770..a44746f 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 3c069c8..2a469c6 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 b1dc652..705f43a 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 1fa9648..ad31f9a 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 5f3d76c..5793b33 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 1a6eadd..25a36ef 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 65aaea0..8410a35 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 a6d107c..dce60f8 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 7ca7007..e327ef8 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 234a4b6..d4dc560 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 5b55b03..2f6415f 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 42469ae..62e9510 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 b6f9449..d0bad93 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 6712832..7de98aa 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 c1825e2..995c5b4 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 8d813ab..fd4aee7 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 c4b87ba..209f7f8 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 9be618a..e8d9d8e 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 6ef1bed..236d21e 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 73f8da1..fad5848 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 2347e04..2801803 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 679a4b0..9dfc00f 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 c82d97c..dab1f08 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 4943ba0..d21d399 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 583d747..fdd88f7 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 f650be7..be4524f 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 541f2b9..adda6fd 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 4846aec..d21ee94 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 8e80fd2..523044f 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 89be53d..0211607 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 0b56b5c..9ddeadb 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 ff115d2..29fdfe9 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 c9eb1e0..df02878 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 bbe0c2e..6643803 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 aa3ff4c..1f0e161 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 459dcf7..a9d30f4 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 8f8fecc..5422a56 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 ac3b436..1e00a84 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 6e8d1d3..86ca5cc 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 afe99f3..dead79e 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 a337d8e..504eb89 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 9f042ab..9d446c7 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 f7a2c15..e4ac43a 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 042a0b5..7e23774 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 6f9dec4..0cb05dd 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 d9b32b0..8d6f1f3 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 f93265b..8360956 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 844eb7b..f3059ee 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 49886aa..c82c4d3 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 e49756f..af51d33 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 e450441..9343535 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 5492a0c..697b4a4 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 6b11ac1..07682e5 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 ffcd3ab..8b4aafe 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 0034624..ce7b269 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 8bd9c4a..4524a07 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 433fc1f..5d4fd27 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 3d2c931..e5524dd 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 81b06ee..653eaaf 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 87d8193..5e3eced 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 8fe6aa7..003da9a 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 ed06e10..aa5db2a 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 6eb5932..c1281ed 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 5b360b1..9a3a1c9 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 389d372..c9cae50 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 d4abacc..8d00eb5 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 cc8860b..3072383 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 86fcd18..f3b7232 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 ed0d19e..39dca1d 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 c4f00f7..17825d5 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 ddb2c3f..422a533 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 91ca66f..5904ee1 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 d3c8359..a80060a 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 f886c88..e51d446 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 f9afb1e..8c03e82 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 f275d4e..c21a9df 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 8c811e9..01a9338 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 a3965f7..0a7f90b 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 5c00361..8649db4 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 a3959df..f59cef7 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 2883e7a..d0c8b06 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 94c27aa..8861ce4 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 fd0c53e..89b724c 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 0015cd9..5d40fab 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 bf8615f..c9cf066 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 ab1de4d..aeaa257 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 e4f27c7..ed6c58c 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 12192f5..2692bb4 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 044ea11..35882b6 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 ead1aff..1a1ca33 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 4d4518f..0790ac6 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 86a006d..4554d72 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 b663d76..5177c76 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 942589b..f8f97fa 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 2f32240..f0e7ea1 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 de5f5db..cd79e54 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 397fd2e..d288dee 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 aa5a18c..40b4092 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 d92619c..255aa6e 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 6ab09c6..d74b1d6 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 edfefbb..e00a427 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 c8d7b99..7c8ca59 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 833995b..70e4516 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 7f0d017..2d26611 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 d3bbc39..dc1d970 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 ea0857a..2cdef4b 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 4a3ced9..a9081bb 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 190f992..e42e7b4 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 8d0ce69..35200f8 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 43e16c2..8048dd3 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 aed5fcb..f7c4cb0 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 e170931..ad43c9d 100644 (file)
@@ -29,7 +29,7 @@ void test05()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   unsigned long ul;
 
index 52722d1..ccf51d3 100644 (file)
@@ -28,7 +28,7 @@
 void test06()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   double d = 0.0;
 
index 952651d..79fc429 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 6f52860..ec1b338 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 3a77568..fbe887b 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 f23aa0f..9b95657 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 09f12be..618b74c 100644 (file)
@@ -29,7 +29,7 @@ void test05()
 {
   using namespace std;
 
-  bool test = true;
+  bool test __attribute__((unused)) = true;
  
   unsigned long ul;
 
index e2aeb18..fac26fe 100644 (file)
@@ -28,7 +28,7 @@
 void test06()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   double d = 0.0;
 
index 2dabe86..b520007 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 cc17591..879337a 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 5f78332..6b6eb3e 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 cae8747..064e2d7 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 7ce3583..e7b139b 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 ce590ea..467ecf9 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 3cc5507..4675fc4 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 d5586cc..8299be9 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 379a137..86a02a6 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 30faf63..563bf96 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 5115355..3c4728c 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 1057a85..3fc6517 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 ea9e39f..51bcbff 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 0173360..88ceb0d 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 3b18145..d8cee64 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 f2f9427..955eaef 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 b57ecb2..111ad52 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 0ff21db..cbff78e 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 002b0c4..57a6de7 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 729e82a..6be2ec0 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 c0cf534..da6a149 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 32b26ed..10b5ded 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 ef1c9f0..5d60b6c 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 fce8fa2..94e4b1d 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 0b41e96..fc96d05 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 9a3c487..09661c9 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 a3fcaf2..171149e 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 4e6c9d6..57e7f30 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 04d4aa8..d6de642 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 f4f0b88..4eb2a31 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 c9c19df..3916275 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 7c54955..0aa5ddc 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 63d2602..9860b43 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 249b5e8..3c78611 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 aedf881..4affdf1 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 aff0d1e..5969572 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 b02049f..6b4facc 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 17f52a5..cf948c3 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 f9d79a4..5f183b5 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 c876f5c..970e431 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 0b86d74..47f5c48 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 63689ee..af861cb 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 5cb2b65..24007fa 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 1517fe2..c3b3bb1 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 9b307d7..7341274 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 01a06ca..d04ebdb 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 00ee21e..bc9b3a1 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 a412cf0..8c75a6f 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 bb9c2e0..f9ebf1b 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 ecbe8ec..9935921 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 e423be6..93151df 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 59dde86..09a969a 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 dca85d2..065b13c 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 1ca2674..1bf9897 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 eab0343..83b8579 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 d0aea85..1ae3d4e 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 1c38fcb..4efb3ac 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 f815895..5aa77c9 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 0f61392..8377b46 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 a1ce9ac..0606521 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 b547034..471806c 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 82d0053..c637b82 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 eb844f1..c09c11e 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 522a899..1263374 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 8c9b1e0..3a99df3 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 9376987..64ca142 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 e0ea595..53baf21 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 1f37a24..e8aeea2 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 b047ed9..b940f2a 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 42cfb34..9e43b85 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 c6f36b7..9f1b11d 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 9cd5db7..c16555f 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 67ce4a3..62751ff 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 c0ecf6a..06d51d9 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 6206ff5..4a8b27b 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 b017d42..0a65f3a 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 8bb5b23..f4755bd 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 354285e..99faf61 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 6367a8e..0a7ff3c 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 072e4c3..ca6676a 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 5d5064d..9c802d3 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 92f9695..929ed4b 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 8d21a9f..ea3da88 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 fd5c192..1491063 100644 (file)
@@ -26,7 +26,7 @@
 bool
 test02()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::bitset<66>  b;
   b <<= 400;
index 40f4f42..6e945d6 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 40e54ef..3536b9d 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 92e9405..566461b 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 bc5a180..e0e7108 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 5463b47..4b7aac9 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 e675760..609b92c 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 dfa8ce2..1d2f566 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 50dc68e..090c7f3 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 8baa862..5115dc0 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 3039567..68b8d43 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 64f1711..7bc925a 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 6742c75..9cdec8b 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 f600fbb..650c82b 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 17eb0c4..66b59a0 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 0fa066a..1f26213 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 c5bb6d7..2e75dca 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 24eff67..66c5c12 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 ee4a93c..dfbc46c 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 a695b28..663ff1c 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 09dc0f1..726c4bf 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 c12286c..8b9c537 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 6a0b36e..5de95b9 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 67c838f..404f3c3 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 75b604c..f105f9b 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 c3c2374..0c620a1 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 acc6e45..f56c21d 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 af0eb93..797a2fc 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 49cfbfa..293ca59 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 df7e4b2..fe706a4 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 53afe8f..5c41e65 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 af75565..12564b9 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 8171715..8902622 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 c8321b3..20fb52d 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 cc8d36d..b6d3739 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 3cc6c57..5f8a9de 100644 (file)
@@ -32,7 +32,7 @@
 
 void test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::vector<int> v;
   try
     {
index 63f64ea..678feb8 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 cf446f6..32a694e 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 0cb2d87..7fca060 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 d278e19..3f097d5 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 2f97f89..8683de6 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 db8b633..51360b0 100644 (file)
@@ -589,7 +589,7 @@ test6642()
 }
 
 int
-main(int argc, char **argv)
+main()
 {
    int failures(0);
 
index 53fee23..5466857 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 6fbfe6d..3bc6bbb 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 1278a21..2852d87 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 ffb6e77..138d41c 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 fda74d2..37019f8 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 d8fbb9d..6e69911 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 e78fae8..a62a9a8 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 a3a2305..6afb28f 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 ef8acfd..bd07009 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 3424dcf..b05c203 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 5102a64..2c04877 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 2fcc638..f1fa87c 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 095a7bc..543f3d4 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 f01e486..60cb5d0 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 25efa10..86a6f93 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 f285fb7..b7059f7 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 ebdd71a..62720c6 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 a02c1f5..a7278ed 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 a637b87..2d5af92 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 ffc4e63..9a4cf68 100644 (file)
@@ -40,7 +40,7 @@ test01()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
     test01();
     return 0;
index f2348f0..37c9e02 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 84c072a..16479a5 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 54cfba1..6cb9e6e 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 9516cb2..e330430 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 5b2f484..5d87cab 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 b0ebd58..0657ed8 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 3f6dfd5..6fc4bc5 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 2992a42..6222874 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 cd95bc6..90107cd 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 02496d6..cfac4a7 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 c61530b..895c095 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 c25e002..04f4b44 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 434f1e2..f10ff4f 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 1899278..0cd5d0f 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 efe8cbb..6cddf01 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 7fe0d4c..c47a6fa 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 393732b..067e487 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 8a76a99..9cf3d5b 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 d8ec0a3..6f6879b 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 4b4c022..b4569bb 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 424d4b6..dffdc74 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 cf0ffa9..b50208d 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 c08817f..db8f2d7 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 99c70a9..85eeede 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 fd960e4..d66fb14 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 9c5da44..661bd1d 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 4984602..f9c69f8 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 795c58c..6684d5d 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 18ed29d..dc163ba 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 b752bce..9904f19 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 2c8d078..8133045 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 fc96a04..70788e3 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 2415a2e..0e6297a 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 fc0092d..9558393 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 1886f8e..7e6010d 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 07e1dda..6bf9751 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 f1b30d8..14cc40f 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 f649ef8..7236e93 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 1a43f32..107af85 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 e06e062..f57578d 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 54a3047..a280458 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 a650e8e..37048f2 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 8e41943..e4468b2 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 a391d22..0d218a6 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 2da27f1..e5f6f99 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 a655fd8..248f819 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 40c62aa..f83af78 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 a1adf32..84a52a7 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 fd30a33..9fc418f 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 786fb24..cae2389 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 b0a192d..2a798db 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 df03ad6..e78abf1 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 8749ff0..d803e55 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 f3f3cc7..003f281 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 9ad978b..91412bc 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 adec7b2..e48b670 100644 (file)
@@ -79,7 +79,7 @@ protected:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   // seekoff
   wfilebuf fb;
index 02f7b67..fdb817d 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 3230e12..55345b9 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 ecaa19f..23f663c 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 e3c9ac3..8773f6e 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 2fde41a..cec2cdf 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 71fb68b..c564e1b 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 ee8c65f..a919f4f 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 7058527..39f18de 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 d0cc3b1..2bf1b83 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 35e5a4f..9dd1ab8 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 fc03e0b..37ae534 100644 (file)
@@ -79,7 +79,7 @@ protected:
 void test01()
 {
   using namespace std;
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   // seekpos
   wfilebuf fb;
index 25511d9..e0113c9 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 6261c99..7cca957 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 f7a6587..b5512d7 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 2a1012d..9b7a942 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 ca92295..0395682 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 cdd9bf4..a663de2 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 3c539de..bb08c18 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 09b6e8a..1e4bb4e 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 1db40fe..0357a0b 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 523bdea..8f6d83c 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 9942a82..dd2ea47 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 1039c39..9865b77 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 451e6dc..e77cfee 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 a3fd754..90f0087 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 c0e6be0..e94de1c 100644 (file)
@@ -37,13 +37,11 @@ void test05()
   typedef filebuf::int_type    int_type;
   typedef filebuf::traits_type         traits_type;
 
-  bool                                         test = true;
+  bool test __attribute__((unused)) = true;
 
-  streamsize                   strmsz_1, strmsz_2, strmsz_3;
-  int                                  i = 0, j = 0, k = 0;
-  char carray1[13] = "";
+  streamsize                   strmsz_1, strmsz_2;
   char carray2[8192] = "";
-  int_type                     c1, c2, c3, c4;
+  int_type                     c2, c4;
   
   // streamsize sgetn(char_type *s, streamsize n)
   // streamsize xsgetn(char_type *s, streamsize n)
@@ -72,7 +70,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;
index d3e4180..517d35e 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 3c74021..057f72d 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 3a6aa30..1e62cf2 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 d2d9d3b..1d22aa5 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 973d89b..93764d9 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 fd7124a..6d26eac 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 fc89dd5..e30a2c6 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 8c2c0e8..151b636 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 816c3f8..9627d2a 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 1d216e8..35665f5 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 d867e5b..27c50b2 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 5b5dbb5..1f20f19 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 a9267cf..52900e8 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 e716610..0174a92 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 2ff9a6c..ce6de8e 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 b5e470f..5ad5aee 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 31b176b..e331e69 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 275def1..94b4c62 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 09086b0..6219b34 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 680e058..70ef74b 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 abbdea5..069982a 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 78e2b4e..d0a24dd 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 1d100dd..85941c8 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 4888f23..c5a860d 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 7f32662..84eb9f8 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 d17db7a..3753a4b 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 a9f188c..a2a2322 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 2dc0204..fce28d3 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 26046b1..9a4fa15 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 fb93139..4fd774e 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 b675d79..7335ca7 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 7e3b9c0..873efa1 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 5cbaf1b..fb45945 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 daefb70..8c8737d 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 d35a3f2..d0bbb5b 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 b45ba26..72f90ed 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 f08df15..73718d9 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 02feef5..a3071b7 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 a0411e2..9448c84 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 40e5137..60d5d38 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 695ca82..1564210 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 8032a42..da498f2 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 0e4c077..768cba1 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 d55b89c..8afb2b6 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 d075365..ba59cb0 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 1717f2a..3917ca5 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 c23cb56..dcf164b 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 ec2f0f8..5b4ebe4 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 77616ed..5f255b2 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 169d3eb..8812f1e 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 00fb377..7530159 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 f8636b0..5d8e25e 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 8a57970..3059724 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 5bd8313..f1fd8ef 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 4f78ed0..c71e0e8 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 a7f46d6..cf838fa 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 136252b..b5606c0 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 dd38b25..7ffd7b3 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 08827c3..3c6efe8 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 e211d0c..43ef6cc 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 5a8b6f8..dcb89a6 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 947a77d..c07bea1 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 fd3742b..f724788 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 b527499..517799e 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 6629371..71b0e17 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 2c8993a..b3e0624 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 84808f8..6cf94cb 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 a0f7afa..0db9630 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 191cbb6..edc407f 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 3286411..638bd46 100644 (file)
@@ -36,7 +36,7 @@
 // copyfmt and locales.
 void test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   using namespace std;
 
index f593b90..4c3352f 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 a95bd99..81779ba 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 004a363..2c539cf 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 dbcf830..0c47e67 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 8bd7b8a..d9f8570 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 4282fef..fe7a394 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 055c4fb..315b651 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 9c3b360..ef4e6ad 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 94136d2..7a5e445 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 65306c4..9b467d3 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 206c81e..5c615aa 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 6167471..5efff57 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 2a2c3cc..276fd91 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 67d98d5..23e68a7 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 de7bbf9..5df68d5 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 309875d..fc7d25e 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 4d7a7fe..93952bc 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 935d456..22896df 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 5a87fb9..20476a9 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 0a235bb..f17fd05 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 ec25ebc..0e7e364 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 d48072c..f146921 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 1ab02a1..5e0ca55 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 ba2e8d3..1900236 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 1570841..bb4f3ef 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 c2afc80..01426e7 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 3492a1e..2fd1cd0 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 9182033..1e19532 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 6251a38..f8110db 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 3c9266b..591aac6 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 50ba27c..a5ced03 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 446b6d9..4cc8f35 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 fa35144..8317e1a 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 6df68c7..ccde173 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 53b14a9..543d7cb 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 f4627ef..0d640de 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 cc6a9a5..c0a753e 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 8e79620..38c40ce 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 87ac36a..6e0c915 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 53317ed..be4b070 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 4fbd5cc..e060ff2 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 0213e3d..47fcd01 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 e79e4a2..0ece0a5 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 4133e1a..6779c2b 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 3c418e9..b66f730 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 f0109b0..6a42fd3 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 6d87a29..bf25632 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 fdb412c..6759671 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 04078db..e20854c 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 4c4b25c..af2b816 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 ab35ddb..6a8f5d7 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 823e237..273855a 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 aeed532..2337731 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 27dca74..00df7cf 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 cf1455f..286d3a2 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 1bc58ad..61db900 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 1e42d18..4a25cd5 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 9f9e06a..527f392 100644 (file)
@@ -37,7 +37,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::stringbuf strbuf01;
   std::istream strm1(&strbuf01);
index 27e1e36..e9e302b 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 4e928fa..77bf598 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 6ec4d69..d213d04 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 b9af611..1afd1a0 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 771d25b..2cb9ea7 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 d9d2f02..dffa898 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 abc99f8..4d9e3a9 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 3761e94..00f5798 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 0b051e9..8bdbfc6 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 764dd14..4d212da 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 59b601e..7e30ccd 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 32acd5b..509386e 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 3bba780..3cba219 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 9d58396..47d7c92 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 14e217e..accf3e5 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 f97eec1..5bb02d4 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 7e897ef..9ca7b90 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 09eb94c..7ec77fb 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 b1b669c..c945539 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 7a4f263..309d6f0 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 8e69c42..6c866ff 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 a3c1179..3725fd8 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 34de949..fb5f8cc 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 3e3726c..a1746fb 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 3d9098f..2b05fd8 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 f49f604..8b8da8a 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 2cf4021..c1d41ca 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 d26463b..fed2696 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 445f884..304fc40 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 67eeecc..1d17b20 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 647f871..ce521e2 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 d3f0499..36b67f2 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 caf7160..a63710d 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 484e66b..0f8848b 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 9ffc492..1fdbe37 100644 (file)
@@ -31,7 +31,7 @@
 void
 test02(void) 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   std::string tmp;
   
   std::string str01 = "";
index 5b95862..fedab18 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 52d92ec..e10380c 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 c68f227..a4e1453 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 a73329c..72393d7 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 f1e24f3..2e93275 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 6344dd4..722ec06 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 3fa9e68..00fef8a 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 89dca57..5f054fb 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 1ba200a..949448e 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 fcacbcb..d495e01 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 61ec1a7..5824caa 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 42ad89c..6b02aeb 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 cba75f2..40cfdb7 100644 (file)
@@ -37,7 +37,7 @@
 void
 test01()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   std::stringbuf strbuf01;
   std::ostream strm1(&strbuf01);
index 4e7562c..72ba932 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 2c8f6c6..e3af42e 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 141548a..fe1a947 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 05884fc..5c8cace 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 e278dae..f82df5d 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 f7e9688..8593d6e 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 48c5638..aafd2bc 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 3edad1a..37b5da2 100644 (file)
@@ -27,7 +27,7 @@
 void
 test03()
 {
-  bool test = false;
+  bool test __attribute__((unused)) = false;
 
   // Empty string sanity check.
   std::string str01;
index 8019bba..826ee5a 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 7a3b758..db3f578 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 310b298..b9564ec 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 c599985..318ff03 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 c48ecbc..9400a59 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 7dbfdc7..17d94af 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 4f98839..5dc68c6 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 2a3a4be..d2a42ef 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 dcee654..a621552 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 1b6cf0c..145e4eb 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 d283383..72a67de 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 f1392dc..f4c67c8 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 b90e3d5..e9c6e2a 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 0feabcd..7859b3f 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 8e2d3c0..5c75185 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 14275c2..39a5e90 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 4f308b9..b09e94d 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 549e59e..552888f 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 928f945..e8e8dc9 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 90845d0..38b72b5 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 a8e3a28..ad79cfc 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 abdd4de..f9646ca 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 f075f9d..df5173a 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 df6fa26..d49016a 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 579206f..aa32edd 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 869cd46..984e630 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 12143c5..9ed89f9 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 c3c6a8a..7a8389a 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 46cbced..0e952d7 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 e79da0e..cfed7cb 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 0eade15..145141e 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 6a8d0b4..02782c5 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 c34109d..274cd61 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 420a318..c68ad14 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 63e3515..c943421 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 ef7c68f..853339e 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 e7dcaa1..6a05d89 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 8e48642..5fc08f2 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 6d40192..38f7ed9 100644 (file)
@@ -48,7 +48,7 @@ public:
 // libstdc++/9404
 void test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   bool over_expected;
 
index 525014c..801ae7f 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 3cb743c..fe26854 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 8de264b..2f9a5cf 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 feabe74..f6dda2f 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 7fa42a6..038c9a7 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 d43fd89..82e613d 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 c7bb352..a90885a 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 8571720..f33e39a 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 036d7e5..896c35c 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 dcd5dc3..6189c26 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 5e4fe02..9a0b668 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 79b1e9c..45c78cd 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 04f2746..397de5f 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 47901a6..2d24f6b 100644 (file)
@@ -26,7 +26,7 @@
 void
 test03()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   //
   // 1: Automatic formatting of a compound string
index 7d77fc2..8dfe9b5 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 3a8fef7..dc25b78 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 46c64b8..32699b9 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 777de9e..4b79950 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 09cfee4..001d8fa 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 bc6a356..0dcae30 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 ee27d44..ce53031 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 7df7eb9..960669e 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 b645b4a..0976192 100644 (file)
@@ -33,7 +33,7 @@
 
 void test02() 
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   
   std::stringbuf       strbuf01;
   std::ios             ios01(&strbuf01);
index b3901d8..ce69fc2 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 12b52aa..cf2253c 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 10336f5..f16eb1a 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 7182237..d2d6b82 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 b7ee2b4..be6c22d 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 6ab05e8..78e58cf 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 4990a58..57188ca 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 ad190d0..a65eff5 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 aa15e93..da93e83 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 af3aa8c..df86b33 100644 (file)
@@ -37,7 +37,7 @@ protected:
 
 void test06()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
 
   try
     {
index ce6133b..e29b208 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 9802f09..f6d8dd8 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 e25a8c3..efe4e65 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 3e3e723..21a7b49 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 977af9a..a3dc980 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 28a06a1..7f39c31 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 faa05e6..3242413 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 c4890cc..6185506 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 6b61746..f88ab64 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 c766cd6..61b6548 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 f797380..3c57653 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 d538612..576b610 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 50e4e78..c5c7045 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 b974b4a..b4f7351 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 acc45b2..9f266f2 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 267bc79..318598f 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 0466b67..8bec16f 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 4db05d1..7417f88 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 778c58f..13cd6a5 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 fcdeaba..004687a 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 e4ca3b9..0bcb122 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 346d0fc..b1427f3 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 79d0878..6d41e9b 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 0d8d628..9c9d082 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 351a91b..40e2151 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 27c7ff7..15d6c51 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 c64e20b..6e0cb50 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 1070410..906201c 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 34188c4..85205d5 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 55b740f..9911968 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 068bdcd..de0020d 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 0a69348..d18afde 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 a46f239..1ef57ee 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 0958296..5134cad 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 25276a2..96831c3 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 b2f5255..0e675d0 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 6984335..e688509 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 1283a75..92a5f31 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 cc55604..262796e 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 d88f77e..c72acb5 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 716ba00..36acd46 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__)