diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-08 00:45:02 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-08 00:45:02 +0000 |
commit | 1c78c7629a69c17fcb1a9f14ac6921ddc9e4db4b (patch) | |
tree | 1900e27ddd2b4040339647f59868e7da6fe7ae55 /libstdc++-v3/testsuite/tr1 | |
parent | b34eecde2ac2d0a6cef2a4a7b61d0c4761ec891f (diff) | |
download | gcc-1c78c7629a69c17fcb1a9f14ac6921ddc9e4db4b.tar.gz |
2010-06-07 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/pb_ds/detail/trie_policy/order_statistics_imp.hpp:
Avoid -Wall warnings.
* testsuite/27_io/ios_base/failure/what-3.cc: Likewise.
* testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_ostringstream/str/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
* testsuite/27_io/types/2.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/peek/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/ws/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_istream/ws/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/seekg/wchar_t/8348-2.cc: Likewise.
* testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/
wchar_t/01.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
01.cc: Likewise.
* testsuite/27_io/fpos/mbstate_t/4_neg.cc: Likewise.
* testsuite/27_io/fpos/mbstate_t/2.cc: Likewise.
* testsuite/27_io/fpos/mbstate_t/3.cc: Likewise.
* testsuite/27_io/fpos/mbstate_t/5.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/
4.cc: Likewise.
* testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/12790-4.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Likewise.
* testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Likewise.
* testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: Likewise.
* testsuite/25_algorithms/minmax/3.cc: Likewise.
* testsuite/19_diagnostics/logic_error/what-3.cc: Likewise.
* testsuite/19_diagnostics/runtime_error/what-3.cc: Likewise.
* testsuite/19_diagnostics/system_error/what-3.cc: Likewise.
* testsuite/24_iterators/front_insert_iterator/2.cc: Likewise.
* testsuite/24_iterators/back_insert_iterator/2.cc: Likewise.
* testsuite/24_iterators/insert_iterator/2.cc: Likewise.
* testsuite/18_support/exception_ptr/make_exception_ptr.cc: Likewise.
* testsuite/21_strings/c_strings/wchar_t/1.cc: Likewise.
* testsuite/21_strings/c_strings/wchar_t/2.cc: Likewise.
* testsuite/21_strings/c_strings/char/1.cc: Likewise.
* testsuite/21_strings/c_strings/char/2.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/cons/
copy.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
cons/copy.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
requirements/constants.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/
cons/copy.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
cons/copy.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
requirements/constants.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
cons/copy.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
requirements/constants.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
cons/copy.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
requirements/constants.cc: Likewise.
* testsuite/26_numerics/complex/complex_value.cc: Likewise.
* testsuite/26_numerics/headers/cmath/overloads.cc: Likewise.
* testsuite/26_numerics/headers/cmath/
c99_classification_macros_c++.cc: Likewise.
* testsuite/26_numerics/slice_array/array_assignment.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
* testsuite/22_locale/money_put/put/char/12971.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
* testsuite/22_locale/time_put/put/char/1.cc: Likewise.
* testsuite/22_locale/time_put/put/char/2.cc: Likewise.
* testsuite/22_locale/time_put/put/char/3.cc: Likewise.
* testsuite/22_locale/time_put/put/char/4.cc: Likewise.
* testsuite/22_locale/time_put/put/char/5.cc: Likewise.
* testsuite/22_locale/time_put/put/char/6.cc: Likewise.
* testsuite/22_locale/time_put/put/char/7.cc: Likewise.
* testsuite/22_locale/time_put/put/char/8.cc: Likewise.
* testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/num_put/put/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_year/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_year/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/5.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
* testsuite/22_locale/num_get/get/char/1.cc: Likewise.
* testsuite/22_locale/moneypunct/members/wchar_t/1.cc: Likewise.
* testsuite/22_locale/moneypunct/members/char/1.cc: Likewise.
* testsuite/22_locale/ctype_base/mask.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/requirements/constants.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/requirements/constants.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
discard_block/requirements/constants.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
linear_congruential/requirements/constants.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
mersenne_twister/requirements/constants.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
xor_combine/requirements/constants.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cfenv/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cctype/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cmath/templates.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cmath/functions.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cwctype/functions.cc: Likewise.
* testsuite/tr1/6_containers/utility/pair.cc: Likewise.
* testsuite/29_atomics/atomic_address/cons/aggregate.cc: Likewise.
* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Likewise.
* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
* testsuite/29_atomics/atomic_integral/operators/
increment_neg.cc: Likewise.
* testsuite/29_atomics/atomic_integral/operators/
bitwise_neg.cc: Likewise.
* testsuite/29_atomics/atomic_integral/operators/
decrement_neg.cc: Likewise.
* testsuite/29_atomics/atomic_flag/cons/1.cc: Likewise.
* testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise.
* testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
* testsuite/23_containers/priority_queue/members/7161.cc
* testsuite/23_containers/set/dr130.cc: Likewise.
* testsuite/23_containers/list/pthread5.cc: Likewise.
* testsuite/23_containers/map/dr130.cc: Likewise.
* testsuite/util/exception/safety.h: Likewise.
* testsuite/util/testsuite_common_types.h: Likewise.
* testsuite/20_util/clocks/1.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/tr1')
16 files changed, 63 insertions, 18 deletions
diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/discard_block/requirements/constants.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/discard_block/requirements/constants.cc index 2c43732041c..be04a2c9060 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/discard_block/requirements/constants.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/discard_block/requirements/constants.cc @@ -2,7 +2,7 @@ // // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com> // -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -27,6 +27,7 @@ void test01() const void* p = &db.block_size; p = &db.used_block; + p = p; // Suppress unused warning. } int main() diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/requirements/constants.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/requirements/constants.cc index c38254f13d4..bdc366ea725 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/requirements/constants.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/requirements/constants.cc @@ -2,7 +2,7 @@ // // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com> // -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,6 +28,7 @@ void test01() const void* p = &lc.multiplier; p = &lc.increment; p = &lc.modulus; + p = p; // Suppress unused warning. } int main() diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/mersenne_twister/requirements/constants.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/mersenne_twister/requirements/constants.cc index 9ebddd8c6d0..52fd3a50ba2 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/mersenne_twister/requirements/constants.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/mersenne_twister/requirements/constants.cc @@ -2,7 +2,7 @@ // // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com> // -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -36,6 +36,7 @@ void test01() p = &mt.output_t; p = &mt.output_c; p = &mt.output_l; + p = p; // Suppress unused warning. } int main() diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/requirements/constants.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/requirements/constants.cc index c68002d2766..a34938ee0e0 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/requirements/constants.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/requirements/constants.cc @@ -2,7 +2,7 @@ // // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com> // -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,6 +28,7 @@ void test01() const void* p = &swc.modulus; p = &swc.long_lag; p = &swc.short_lag; + p = p; // Suppress unused warning. } int main() diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/requirements/constants.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/requirements/constants.cc index c1715264d3a..a0a360d730b 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/requirements/constants.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry_01/requirements/constants.cc @@ -2,7 +2,7 @@ // // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com> // -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,6 +28,7 @@ void test01() const void* p = &swc_01.word_size; p = &swc_01.long_lag; p = &swc_01.short_lag; + p = p; // Suppress unused warning. } int main() diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/xor_combine/requirements/constants.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/xor_combine/requirements/constants.cc index 0318b0d5e18..3fbd55247ac 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/xor_combine/requirements/constants.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/xor_combine/requirements/constants.cc @@ -2,7 +2,7 @@ // // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com> // -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,6 +28,7 @@ void test01() const void* p = &xor_c.shift1; p = &xor_c.shift2; + p = p; // Suppress unused warning. } int main() diff --git a/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc b/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc index 20e6bc06ea7..3189e7f81aa 100644 --- a/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc +++ b/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc @@ -1,6 +1,6 @@ // 2004-09-23 Chris Jefferson <chris@bubblescope.net> -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -36,8 +36,10 @@ main() VERIFY(tuple_size<test_pair_type>::value == 2); // Test if tuple_element::type returns the correct type blank_class blank; - tuple_element<0, pair<blank_class, int> >::type blank2 = blank; - tuple_element<1, pair<int ,blank_class> >::type blank3 = blank; + tuple_element<0, pair<blank_class, int> >::type + blank2 __attribute__((unused)) = blank; + tuple_element<1, pair<int ,blank_class> >::type + blank3 __attribute__((unused)) = blank; pair<int,int> test_pair(1, 2); VERIFY(get<0>(test_pair) == 1); VERIFY(get<1>(test_pair) == 2); diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc index 4b6a7dfd332..862b0419f50 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cctype/functions.cc @@ -2,7 +2,7 @@ // 2006-01-25 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -29,6 +29,7 @@ void test01() int ch = 0, ret; ret = std::tr1::isblank(ch); + ret = ret; // Suppress unused warning. #endif } diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cfenv/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cfenv/functions.cc index 765df19388e..5bffa0ef332 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cfenv/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cfenv/functions.cc @@ -2,7 +2,7 @@ // 2006-01-26 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -46,6 +46,7 @@ void test01() ret = std::tr1::feholdexcept(penv); ret = std::tr1::fesetenv(penv); ret = std::tr1::feupdateenv(penv); + ret = ret; // Suppress unused warning. #endif } diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc index 7afe3b82b3a..30c7b789f4a 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc @@ -2,7 +2,7 @@ // 2006-01-30 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -53,5 +53,9 @@ void test01() uret = std::tr1::wcstoumax(ws, wendptr, base); #endif + ret = ret; // Suppress unused warnings. + dret = dret; + uret = uret; + #endif } diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/functions.cc index 020c273d55b..ae31a48ecf6 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/functions.cc @@ -2,7 +2,7 @@ // 2006-02-07 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -181,6 +181,13 @@ void test01() ret = std::tr1::trunc(d0); fret = std::tr1::truncf(f0); ldret = std::tr1::truncl(ld0); + + ret = ret; // Suppress unused warnings. + iret = iret; + lret = lret; + llret = llret; + fret = fret; + ldret = ldret; #endif } diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/templates.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/templates.cc index 35f8869c912..cbf8c9592eb 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/templates.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/templates.cc @@ -2,7 +2,7 @@ // 2006-02-26 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -37,6 +37,7 @@ template<typename T> ret = std::tr1::signbit(x); iret = std::tr1::fpclassify(x); + iret = iret; // Suppress unused warning. ret = std::tr1::isfinite(x); ret = std::tr1::isinf(x); @@ -49,6 +50,7 @@ template<typename T> ret = std::tr1::islessequal(x, x); ret = std::tr1::islessgreater(x, x); ret = std::tr1::isunordered(x, x); + ret = ret; // Suppress unused warning. } void test01() diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdio/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdio/functions.cc index 426083ecb74..33890252201 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdio/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdio/functions.cc @@ -2,7 +2,7 @@ // 2006-02-05 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -46,6 +46,7 @@ void test01(int dummy, ...) ret = std::tr1::vfscanf(stream, format, ap); ret = std::tr1::vscanf(format, ap); ret = std::tr1::vsscanf(cs, format, ap); + ret = ret; // Suppress unused warning. #endif } diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdlib/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdlib/functions.cc index 542f42990e3..f9b88dca9c7 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdlib/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cstdlib/functions.cc @@ -2,7 +2,7 @@ // 2006-02-07 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -55,8 +55,16 @@ void test01() ldret = std::tr1::strtold(s, endptr); ret = std::tr1::abs(i); + + ret = ret; // Suppress unused warning. + uret = uret; + fret = fret; + ldret = ldret; + #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC dret = std::tr1::div(numer, denom); + + dret = dret; #endif #endif diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwchar/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwchar/functions.cc index 2a572204529..0320c9a5a66 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwchar/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwchar/functions.cc @@ -2,7 +2,7 @@ // 2006-02-03 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -37,6 +37,8 @@ void test01(int dummy, ...) wchar_t** endptr1 = 0; float fret; fret = std::tr1::wcstof(nptr1, endptr1); + + fret = fret; // Suppress unused warning. #endif #if _GLIBCXX_HAVE_VFWSCANF @@ -44,6 +46,8 @@ void test01(int dummy, ...) const wchar_t* format1 = 0; int ret1; ret1 = std::tr1::vfwscanf(stream, format1, arg); + + ret1 = ret1; // Suppress unused warning. #endif #if _GLIBCXX_HAVE_VSWSCANF @@ -51,12 +55,16 @@ void test01(int dummy, ...) const wchar_t* format2 = 0; int ret2; ret2 = std::tr1::vswscanf(s, format2, arg); + + ret2 = ret2; // Suppress unused warning. #endif #if _GLIBCXX_HAVE_VWSCANF const wchar_t* format3 = 0; int ret3; ret3 = std::tr1::vwscanf(format3, arg); + + ret3 = ret3; // Suppress unused warning. #endif #if _GLIBCXX_USE_C99 @@ -72,6 +80,10 @@ void test01(int dummy, ...) llret = std::tr1::wcstoll(nptr2, endptr2, base); ullret = std::tr1::wcstoull(nptr2, endptr2, base); + ldret = ldret; // Suppress unused warnings. + llret = llret; + ullret = ullret; + #endif } diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwctype/functions.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwctype/functions.cc index 9eff2088018..031b3ac160a 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwctype/functions.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cwctype/functions.cc @@ -2,7 +2,7 @@ // 2006-02-03 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -32,6 +32,7 @@ void test01() std::wint_t ch = 0; int ret; ret = std::tr1::iswblank(ch); + ret = ret; // Suppress unused warning. #endif } |