From: Simon Kuenzer Date: Tue, 15 Dec 2020 08:19:13 +0000 (+0100) Subject: No warning when assigning thread starters X-Git-Tag: RELEASE-0.6~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c59d7d632c9fc50f8ebe4e24139ff01265f14f9c;p=unikraft%2Flibs%2Fpthread-embedded.git No warning when assigning thread starters Suppresses a compiler warning that happens with code that assigns thread starters. Signed-off-by: Simon Kuenzer Reviewed-by: Daniel Dinca --- diff --git a/Makefile.uk b/Makefile.uk index 4ee37cd..1ab7c6a 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -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