[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UNIKRAFT/LIBPTHREAD-EMBEDDED PATCH 3/3] No warning when assigning thread starters



Looks good.
Reviewed-by: Daniel Dinca <dincadaniel97@xxxxxxxxx>

În mar., 15 dec. 2020 la 10:19, Simon Kuenzer <simon.kuenzer@xxxxxxxxx> a scris:
Suppresses a compiler warning that happens with code that assigns
thread starters.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 Makefile.uk | 3 +++
 1 file changed, 3 insertions(+)

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
--
2.20.1


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.