2010-01-25 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jan 2010 23:25:48 +0000 (23:25 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jan 2010 23:25:48 +0000 (23:25 +0000)
* testsuite/util/testsuite_common_types.h (has_bitwise_operators):
Avoid -Wall warnings.

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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_common_types.h

index 4cea65d..e152d2c 100644 (file)
@@ -1,5 +1,10 @@
 2010-01-25  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       * testsuite/util/testsuite_common_types.h (has_bitwise_operators):
+       Avoid -Wall warnings.
+
+2010-01-25  Paolo Carlini  <paolo.carlini@oracle.com>
+
        * testsuite/22_locale/time_get/get_monthname/char/6.cc: Use an int
        as loop variable, to avoid -Wall warnings.
        * testsuite/22_locale/time_get/get_monthname/wchar_t/6.cc: Likewise.
index ac2684a..fd60b79 100644 (file)
@@ -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))