From: Andrei Tatar Date: Tue, 27 Jun 2023 16:21:52 +0000 (+0200) Subject: Makefile.uk: Silence macro redefinition warnings X-Git-Tag: RELEASE-0.14.0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0226603973bc18e976983a1c30fc35a76572239e;p=unikraft%2Flibs%2Flwip.git Makefile.uk: Silence macro redefinition warnings This change silences clang's macro redefinition warning which triggers often for LWIP when it redefines LITTLE_ENDIAN and BIG_ENDIAN. Signed-off-by: Andrei Tatar Reviewed-by: Maria Sfiraiala Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #38 --- diff --git a/Makefile.uk b/Makefile.uk index 43a3d7f..795a0ab 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -79,6 +79,7 @@ $(eval $(call uknetdev_scratch_mem,$(CONFIG_LWIP_UKNETDEV_SCRATCH))) # Library flags ################################################################################ LIBLWIP_CFLAGS-y += -Wno-type-limits -Wno-unused-parameter +LIBLWIP_CFLAGS-$(call have_clang) += -Wno-macro-redefined LIBLWIP_CFLAGS-$(CONFIG_LWIP_DEBUG) += -DUK_DEBUG LIBLWIP_CFLAGS-y += -D__IN_LIBLWIP__ LIBLWIP_CXXFLAGS-y += -D__IN_LIBLWIP__