]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
glue: Suppress 'unused parameters' warnings
authorCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 22 Aug 2019 10:10:41 +0000 (13:10 +0300)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Mon, 26 Aug 2019 13:42:04 +0000 (16:42 +0300)
It's simpler to suppress the warning rather than add '__unused' qualifier each
time.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Charalampos Mainas <charalampos.mainas@neclab.eu>
Makefile.uk

index 4b6d59a8aadece16a534337570c1c1a4858b7374..54896c627fc9d34e798830a06086c19b04ae9382 100644 (file)
@@ -99,6 +99,10 @@ LIBNEWLIBM_CFLAGS-y   += $(LIBNEWLIB_SUPPRESS_FLAGS-y)
 LIBNEWLIBC_CXXFLAGS-y += $(LIBNEWLIB_SUPPRESS_FLAGS-y)
 LIBNEWLIBM_CXXFLAGS-y += $(LIBNEWLIB_SUPPRESS_FLAGS-y)
 
+LIBNEWLIBGLUE_SUPPRESS_FLAGS-y += -Wno-unused-parameter
+LIBNEWLIBGLUE_CFLAGS-y   += $(LIBNEWLIBGLUE_SUPPRESS_FLAGS-y)
+LIBNEWLIBGLUE_CXXFLAGS-y += $(LIBNEWLIBGLUE_SUPPRESS_FLAGS-y)
+
 ################################################################################
 # OS dependencies code - Glue between Unicore and newlib
 ################################################################################