]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Makefile.uk: Silence macro redefinition warnings RELEASE-0.14.0
authorAndrei Tatar <andrei@unikraft.io>
Tue, 27 Jun 2023 16:21:52 +0000 (18:21 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 10 Aug 2023 09:42:50 +0000 (09:42 +0000)
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 <andrei@unikraft.io>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #38

Makefile.uk

index 43a3d7f2534ecf478834744c2ad495c770bec114..795a0ab706be648a0ec92770af237968c10a91ea 100644 (file)
@@ -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__