]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Makefile.uk: Suppress 'unused parameters' warnings
authorCostin Lupu <costin.lupu@cs.pub.ro>
Wed, 4 Sep 2019 19:09:12 +0000 (22:09 +0300)
committerCostin Lupu <costin.lup@gmail.com>
Mon, 9 Sep 2019 16:37:08 +0000 (19:37 +0300)
It's simpler to suppress the warning rather than add '__unused' qualifier each
time. This also seems it was the initial intention behind using
'-Wunused-parameter', given that all warnings are enabled by default.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Makefile.uk

index 99fc062dc6239daf88970b5af3a4676693615d77..2292cb4f62526b31a919cc24aca03eb970e546b6 100644 (file)
@@ -63,7 +63,7 @@ CXXINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/include -I$(LIBLWIP_EXTRACTED
 ################################################################################
 # Library flags
 ################################################################################
-LIBLWIP_CFLAGS-y += -Wno-type-limits -Wunused-parameter
+LIBLWIP_CFLAGS-y += -Wno-type-limits -Wno-unused-parameter
 LIBLWIP_CFLAGS-$(CONFIG_LWIP_DEBUG) += -DUK_DEBUG
 LIBLWIP_CFLAGS-y   += -D__IN_LIBLWIP__
 LIBLWIP_CXXFLAGS-y += -D__IN_LIBLWIP__