[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] sys_time: avoid compiler warnings
From: |
Simon Josefsson |
Subject: |
Re: [PATCH] sys_time: avoid compiler warnings |
Date: |
Thu, 15 Apr 2010 09:39:46 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
Eric Blake <address@hidden> writes:
>> ./../gl/sys/time.h:353: error: redundant redeclaration of
>> '_gl_cxxalias_dummy' [-Wredundant-decls]
>> ./../gl/string.h:1103: note: previous declaration of '_gl_cxxalias_dummy'
>> was here
>>
>> I have some non-default warnings enabled.
>>
>> Maybe we could protect double declaration of the symbol?
>
> The correct way to protect it is with the use of #pragma GCC
> system_header. (I just recently fixed the same bug for arpa/inet.h on
> mingw). I'm pushing this.
Thanks, it works.
/Simon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] sys_time: avoid compiler warnings,
Simon Josefsson <=