]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/commitdiff
No warning when assigning thread starters
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Tue, 15 Dec 2020 08:19:13 +0000 (09:19 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Wed, 21 Apr 2021 22:33:11 +0000 (00:33 +0200)
Suppresses a compiler warning that happens with code that assigns
thread starters.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Daniel Dinca <dincadaniel97@gmail.com>
Makefile.uk

index 4ee37cdcb355d363ffd789fd7aed70a42ba59470..1ab7c6a29997f14b413e72045d2a5622cd55030b 100644 (file)
@@ -63,6 +63,9 @@ LIBPTHREAD-EMBEDDED_CXXFLAGS-y += $(LIBPTHREAD-EMBEDDED_SUPPRESS_FLAGS)
 # OS dependencies code - Glue between Unikraft and pthread-embedded
 ################################################################################
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/pte_osal.c|glue
+LIBPTHREAD-EMBEDDED_PTE_OSAL_GLUE_FLAGS-$(call gcc_version_ge,5,0) += -Wno-incompatible-pointer-types
+LIBPTHREAD-EMBEDDED_PTE_OSAL_GLUE_FLAGS-$(call gcc_version_ge,8,0) += -Wno-cast-function-type
+
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/attributes.c|glue
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/pthread_atfork.c|glue
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/pthread_sigmask.c|glue