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:
Doug Kwan
2009-12-12 01:26:12 +00:00
parent 759a05ce24
commit b0eec2ccda
5 changed files with 32 additions and 23 deletions

View File

@@ -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)