* libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
to avoid unused variable warning.
(__set_and_release): Use __p after __atomic_store to avoid unused
variable warning.
From-SVN: r225298
+2015-07-02 Uros Bizjak <ubizjak@gmail.com>
+
+ * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
+ to avoid unused variable warning.
+ (__set_and_release): Use __p after __atomic_store to avoid unused
+ variable warning.
+
2015-07-01 Jonathan Wakely <jwakely@redhat.com>
* include/bits/alloc_traits.h (__alloctr_rebind): Remove.
unsigned char __c;
unsigned char *__p = reinterpret_cast<unsigned char *>(g);
__atomic_load (__p, &__c, __ATOMIC_ACQUIRE);
+ (void) __p;
return _GLIBCXX_GUARD_TEST(&__c);
}
# define _GLIBCXX_GUARD_TEST_AND_ACQUIRE(G) __test_and_acquire (G)
unsigned char *__p = reinterpret_cast<unsigned char *>(g);
unsigned char val = 1;
__atomic_store (__p, &val, __ATOMIC_RELEASE);
+ (void) __p;
}
# define _GLIBCXX_GUARD_SET_AND_RELEASE(G) __set_and_release (G)
# endif