From 024615bfedb7d7a7fd04492c2098b7a486df54b4 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 25 Jan 2010 23:25:48 +0000 Subject: [PATCH] testsuite_common_types.h (has_bitwise_operators): Avoid -Wall warnings. 2010-01-25 Paolo Carlini * testsuite/util/testsuite_common_types.h (has_bitwise_operators): Avoid -Wall warnings. From-SVN: r156221 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/util/testsuite_common_types.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4cea65dd9a9..e152d2ca1cc 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2010-01-25 Paolo Carlini + + * testsuite/util/testsuite_common_types.h (has_bitwise_operators): + Avoid -Wall warnings. + 2010-01-25 Paolo Carlini * testsuite/22_locale/time_get/get_monthname/char/6.cc: Use an int diff --git a/libstdc++-v3/testsuite/util/testsuite_common_types.h b/libstdc++-v3/testsuite/util/testsuite_common_types.h index ac2684ad09b..fd60b79c897 100644 --- a/libstdc++-v3/testsuite/util/testsuite_common_types.h +++ b/libstdc++-v3/testsuite/util/testsuite_common_types.h @@ -426,12 +426,12 @@ namespace __gnu_test { void __constraint() { - _Tp a; - _Tp b; a |= b; // set a &= ~b; // clear a ^= b; } + _Tp a; + _Tp b; }; void (_Concept::*__x)() __attribute__((unused))