macros.cc: Avoid -Wall warnings.
2011-11-08 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/29_atomics/headers/atomic/macros.cc: Avoid -Wall warnings. * testsuite/29_atomics/atomic/cons/user_pod.cc: Likewise. From-SVN: r181159
This commit is contained in:
parent
5d54daace2
commit
a0eabe5751
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-11-08 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* testsuite/29_atomics/headers/atomic/macros.cc: Avoid -Wall
|
||||||
|
warnings.
|
||||||
|
* testsuite/29_atomics/atomic/cons/user_pod.cc: Likewise.
|
||||||
|
|
||||||
2011-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
|
2011-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||||
|
|
||||||
PR libstdc++/51018
|
PR libstdc++/51018
|
||||||
|
|
|
@ -29,7 +29,7 @@ struct dwordp
|
||||||
void atomics()
|
void atomics()
|
||||||
{
|
{
|
||||||
std::atomic<dwordp> a;
|
std::atomic<dwordp> a;
|
||||||
bool b = a.is_lock_free();
|
bool b __attribute__((unused)) = a.is_lock_free();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
extern void abort(void);
|
extern void abort(void);
|
||||||
|
|
||||||
main ()
|
int main ()
|
||||||
{
|
{
|
||||||
if (ATOMIC_CHAR_LOCK_FREE != 0 && ATOMIC_CHAR_LOCK_FREE != 1
|
if (ATOMIC_CHAR_LOCK_FREE != 0 && ATOMIC_CHAR_LOCK_FREE != 1
|
||||||
&& ATOMIC_CHAR_LOCK_FREE != 2)
|
&& ATOMIC_CHAR_LOCK_FREE != 2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue