diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-07-03 14:14:59 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-07-03 14:14:59 +0000 |
commit | df2899bf6474c9c797bf6c591e9c4e8593f00360 (patch) | |
tree | 8eb3ca780e10752d5c9bf3cd89d8790faaa4661c | |
parent | d0303aab2e9a9d65542d7964c4a6cee416c83fc3 (diff) | |
download | compiler-rt-df2899bf6474c9c797bf6c591e9c4e8593f00360.tar.gz |
[asan] Fix unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212272 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_linux_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/lib/sanitizer_common/sanitizer_linux_libcdep.cc index 0fb3864b0..92e6b788d 100644 --- a/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -302,11 +302,11 @@ void InitTlsSize() { static atomic_uintptr_t kThreadDescriptorSize; uptr ThreadDescriptorSize() { - char buf[64]; uptr val = atomic_load(&kThreadDescriptorSize, memory_order_relaxed); if (val) return val; #ifdef _CS_GNU_LIBC_VERSION + char buf[64]; uptr len = confstr(_CS_GNU_LIBC_VERSION, buf, sizeof(buf)); if (len < sizeof(buf) && internal_strncmp(buf, "glibc 2.", 8) == 0) { char *end; |