From 385526f768d5a335156f5968afcaa7447a1529f8 Mon Sep 17 00:00:00 2001 From: "joerg@trift-lap.fambruehe" <> Date: Wed, 28 Mar 2007 19:01:49 +0200 Subject: [PATCH] mysys/my_thr_init.c : Avoid warnings of "unused variable" by extending a '#ifdef'. --- mysys/my_thr_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))