Skip to content
Snippets Groups Projects
Commit 3361a737 authored by Boqun Feng's avatar Boqun Feng Committed by Pekka Enberg
Browse files

libc: fix an unused-value error in LOCK/UNLOCK

According to http://gcc.gnu.org/gcc-4.9/porting_to.html

, gcc now warns
about unused right-hand side of a comma expression that contains no side
effects.
Rewrite LOCK/UNCLOCK using inline funciton instead of comma expression.

Signed-off-by: default avatarBoqun Feng <boqun.feng@linux.vnet.ibm.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent a27ae1ff
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment