[asan] Fix unused variable warning.

llvm-svn: 212272
This commit is contained in:
Evgeniy Stepanov 2014-07-03 14:14:59 +00:00
parent 71b982b41f
commit 7c2d32bf87
1 changed files with 1 additions and 1 deletions

View File

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