forked from Imagelibrary/binutils-gdb
2009-12-11 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::do_finalize_sections): Fix build breakage due to -Wshadow. * attributes.cc (Object_attribute::size): Ditto. (Attributes_section_data::size): Ditto. (Attributes_section_data::Attributes_section_data): Ditto. (Output_attributes_section_data::do_write): Ditto. * attributes.h (Object_attribute::set_type): Ditto. * testsuite/tls_test_main.cc (safe_lock, safe_unlock): Ditto.
This commit is contained in:
@@ -33,16 +33,16 @@
|
||||
#define safe_lock(muptr) \
|
||||
do \
|
||||
{ \
|
||||
int err = pthread_mutex_lock(muptr); \
|
||||
assert(err == 0); \
|
||||
int pthread_err = pthread_mutex_lock(muptr); \
|
||||
assert(pthread_err == 0); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
#define safe_unlock(muptr) \
|
||||
do \
|
||||
{ \
|
||||
int err = pthread_mutex_unlock(muptr); \
|
||||
assert(err == 0); \
|
||||
int pthread_err = pthread_mutex_unlock(muptr); \
|
||||
assert(pthread_err == 0); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user