OSDN Git Service

Fix warnings in MIPS build
authorSteve Ellcey <sellcey@mips.com>
Tue, 4 Feb 2014 22:20:40 +0000 (14:20 -0800)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 1 Apr 2014 11:36:32 +0000 (13:36 +0200)
commitffffd5e2c29ec418aa0c9ba7bed4c0d2d46a3296
treedb4eb278b8c37f00bce574f127d925702eb6c540
parentd4ea30a415188e4e52688fbd214198fa633bb174
Fix warnings in MIPS build

This patch fixes the rest of the set-but-not-used warnings in the MIPS
code by using attribute_unused and also fixes some conversion warnings
by changing __arch_compare_and_exchange_xxx_[8|16]_int.  Assigning __cmp
(int type) to __prev (pointer type) generates a warning.  Assigning zero
to each separately avoids this warning without having to add a cast.

Signed-off-by: Steve Ellcey <sellcey@mips.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/mips/bits/atomic.h
libpthread/nptl/sysdeps/unix/sysv/linux/mips/lowlevellock.h