diff options
author | unknown <joerg@trift-lap.fambruehe> | 2007-03-28 19:01:49 +0200 |
---|---|---|
committer | unknown <joerg@trift-lap.fambruehe> | 2007-03-28 19:01:49 +0200 |
commit | d167071bed81f3dccf109b79b2a2fe77eccfd3c0 (patch) | |
tree | 2ec36fd510225a21de97131efb331725dc074f1d /mysys/my_thr_init.c | |
parent | 2cdd8359ef3d4052e8bfa2effe660ff87ea00649 (diff) | |
download | mariadb-git-d167071bed81f3dccf109b79b2a2fe77eccfd3c0.tar.gz |
mysys/my_thr_init.c : Avoid warnings of "unused variable" by extending a '#ifdef'.
mysys/my_thr_init.c:
Enclose a variable declaration in the same '#ifdef' that also controls all access to the variable.
This avoids warnings of "unused variable".
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r-- | mysys/my_thr_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c index 464edb77f99..75da07390ba 100644 --- a/mysys/my_thr_init.c +++ b/mysys/my_thr_init.c @@ -403,9 +403,9 @@ const char *my_thread_name(void) static uint get_thread_lib(void) { +#ifdef _CS_GNU_LIBPTHREAD_VERSION char buff[64]; -#ifdef _CS_GNU_LIBPTHREAD_VERSION confstr(_CS_GNU_LIBPTHREAD_VERSION, buff, sizeof(buff)); if (!strncasecmp(buff, "NPTL", 4)) |