]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Makefile.uk: Use -Wno-cast-function-type for GCC >= 8 RELEASE-0.11.0
authorRazvan Deaconescu <razvand@unikraft.io>
Wed, 30 Nov 2022 00:02:21 +0000 (02:02 +0200)
committerUnikraft <monkey@unikraft.io>
Wed, 30 Nov 2022 08:09:47 +0000 (08:09 +0000)
The `-Wno-cast-function-type` build option is only present for GCC >= 8.
Update `Makefile.uk` to use the option conditionally.

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #28

Makefile.uk

index 386fae8de0e374874d43321139cd4e2037574ca7..43a3d7f2534ecf478834744c2ad495c770bec114 100644 (file)
@@ -95,7 +95,7 @@ LIBLWIP_SRCS-y += $(LIBLWIP_BASE)/init.c|unikraft
 LIBLWIP_SRCS-y += $(LIBLWIP_BASE)/time.c|unikraft
 LIBLWIP_SRCS-y += $(LIBLWIP_BASE)/sendfile.c|unikraft
 LIBLWIP_SRCS-$(CONFIG_LWIP_SOCKET) += $(LIBLWIP_BASE)/sockets.c|unikraft
-LIBLWIP_SOCKETS_FLAGS-y += -Wno-cast-function-type
+LIBLWIP_SOCKETS_FLAGS-$(call gcc_version_ge,8,0) += -Wno-cast-function-type
 LIBLWIP_SRCS-y += $(LIBLWIP_EXTRACTED)/core/init.c
 LIBLWIP_SRCS-y += $(LIBLWIP_EXTRACTED)/core/def.c
 LIBLWIP_SRCS-y += $(LIBLWIP_EXTRACTED)/core/inet_chksum.c