This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 21 Jan 2016 17:38, Stefan Liebler wrote: > This patch suppresses these warnings with DIAG_* macros. > The conditional #if __GNUC_PREREQ (6, 0) is needed, because an older gcc > would warn about: > tst-endian.c: In function âdo_testâ: > tst-endian.c:18:4: warning: unknown option after â#pragma GCC > diagnosticâ kind [-Wpragmas] > DIAG_IGNORE_NEEDS_COMMENT (6, "-Wtautological-compare"); > ^ you can at least do it once at the top via a local define: /* big comment block */ #if __GNUC_PREREQ (6, 0) # define DIAG_IGNORE_NEEDS_COMMENT_AUTOLOGICAL_COMPARE() \ DIAG_IGNORE_NEEDS_COMMENT (6, "-Wtautological-compare"); #else # define DIAG_IGNORE_NEEDS_COMMENT_AUTOLOGICAL_COMPARE() #endif then the inline usage is simple -mike
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |