[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: more support for multithread-safe libraries
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] Re: more support for multithread-safe libraries |
Date: |
Tue, 16 Aug 2005 13:26:28 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> This sort of macro will cause warnings with GCC and other compilers
> if you use it in a context like this:
>
> if (foo)
> gl_tls_key_init (name, destructor);
>
> because the compiler will warn about possible if-then-else nesting
> problems. The usual do { ... } while (0) construct avoids this
> problem.
OK, I committed the module and added the do {...} while (0). Thanks.
Bruno