diff options
author | Doug Kwan <dougkwan@google.com> | 2009-12-12 01:26:12 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2009-12-12 01:26:12 +0000 |
commit | b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679 (patch) | |
tree | 389b8f994b9bf250f380f78e2bebb9e0237f201e /gold/testsuite/tls_test_main.cc | |
parent | 759a05ce2497537aaf1982648a616ecd04127a4a (diff) | |
download | gdb-b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679.zip gdb-b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679.tar.gz gdb-b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679.tar.bz2 |
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.
Diffstat (limited to 'gold/testsuite/tls_test_main.cc')
-rw-r--r-- | gold/testsuite/tls_test_main.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/testsuite/tls_test_main.cc b/gold/testsuite/tls_test_main.cc index 0ff02c6..877889c 100644 --- a/gold/testsuite/tls_test_main.cc +++ b/gold/testsuite/tls_test_main.cc @@ -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) |