[xml] [libxml2] How to fix - warning: 'thread' attribute directive ignored



Good day to all.

I encounter the below warning in 'threads.c' while compiling libxml2 using MinGW compiler.

warning: 'thread' attribute directive ignored

Please share a way to remove this warning. Below is the piece of code that generates this warning. This code is specific to Thread Local Storage.
 
#elif defined HAVE_WIN32_THREADS

#if defined(HAVE_COMPILER_TLS)

static __declspec(thread) xmlGlobalState tlstate;

static __declspec(thread) int tlstate_inited = 0;

#else /* HAVE_COMPILER_TLS */

static DWORD globalkey = TLS_OUT_OF_INDEXES;

#endif 

Thanks in advance
Anish K Kurian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]