mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Compile tst-deadline.c with -Wno-ignored-attributes for Clang
Since tst-deadline.c is an internal test, compile tst-deadline.c with -Wno-ignored-attributes for Clang to silence -Werror,-Wunknown-attributes errors. Also suppress -Wmaybe-uninitialized only for GCC in net-internal.h. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
5b9bc1a172
commit
39a3b5c8f6
2 changed files with 5 additions and 1 deletions
|
@ -139,6 +139,10 @@ ifeq ($(build-static-nss),yes)
|
||||||
CFLAGS += -DSTATIC_NSS
|
CFLAGS += -DSTATIC_NSS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(have-test-clang),yes)
|
||||||
|
CFLAGS-tst-deadline.c += -Wno-ignored-attributes
|
||||||
|
endif
|
||||||
|
|
||||||
# The test uses dlopen indirectly and would otherwise load system
|
# The test uses dlopen indirectly and would otherwise load system
|
||||||
# objects.
|
# objects.
|
||||||
tst-idna_name_classify-ENV = \
|
tst-idna_name_classify-ENV = \
|
||||||
|
|
|
@ -106,7 +106,7 @@ __deadline_is_infinite (struct deadline deadline)
|
||||||
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91691
|
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91691
|
||||||
*/
|
*/
|
||||||
DIAG_PUSH_NEEDS_COMMENT;
|
DIAG_PUSH_NEEDS_COMMENT;
|
||||||
DIAG_IGNORE_NEEDS_COMMENT (9, "-Wmaybe-uninitialized");
|
DIAG_IGNORE_NEEDS_COMMENT_GCC (9, "-Wmaybe-uninitialized");
|
||||||
|
|
||||||
/* Return true if the current time is at the deadline or past it. */
|
/* Return true if the current time is at the deadline or past it. */
|
||||||
static inline bool
|
static inline bool
|
||||||
|
|
Loading…
Add table
Reference in a new issue