Message ID | 4EB92228.8040702@oracle.com |
---|---|
State | New |
Headers | show |
Index: testsuite/29_atomics/headers/atomic/macros.cc =================================================================== --- testsuite/29_atomics/headers/atomic/macros.cc (revision 181153) +++ testsuite/29_atomics/headers/atomic/macros.cc (working copy) @@ -63,7 +63,7 @@ extern void abort(void); -main () +int main () { if (ATOMIC_CHAR_LOCK_FREE != 0 && ATOMIC_CHAR_LOCK_FREE != 1 && ATOMIC_CHAR_LOCK_FREE != 2) Index: testsuite/29_atomics/atomic/cons/user_pod.cc =================================================================== --- testsuite/29_atomics/atomic/cons/user_pod.cc (revision 181153) +++ testsuite/29_atomics/atomic/cons/user_pod.cc (working copy) @@ -29,7 +29,7 @@ void atomics() { std::atomic<dwordp> a; - bool b = a.is_lock_free(); + bool b __attribute__((unused)) = a.is_lock_free(); } int main()