]> xenbits.xensource.com Git - unikraft/libs/libunwind.git/commitdiff
Fix some of the compiling warnings
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 2 Jun 2019 13:27:45 +0000 (16:27 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Mon, 3 Jun 2019 05:42:46 +0000 (07:42 +0200)
This patch removes the "unused-parameter" warnings generated by the origin code
and the multiple definition warnings for _LIBUNWIND_BUILD_ZERO_COST_APIS macro.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Makefile.uk

index a80a4fe357583092ab7e21306971429b451c3450..109e5e85b13d21b6d2d3a3b3396a8854bf25b361 100644 (file)
@@ -75,11 +75,15 @@ CXXINCLUDES-$(CONFIG_LIBUNWIND) += -I$(LIBUNWIND_SRC)/include
 ################################################################################
 CONFIG_FLAGS   += -D _LIBUNWIND_HAS_NO_THREADS  -D __ELF__  -D _LIBUNWIND_IS_NATIVE_ONLY               \
                  -D _LIBUNWIND_SUPPORT_DWARF_UNWIND -D _LIBUNWIND_IS_BAREMETAL                         \
-                 -D _LIBUNWIND_BUILD_ZERO_COST_APIS -D _LIBUNWIND_TARGET_X86_64 -D __x86_64__
+                 -D _LIBUNWIND_TARGET_X86_64 -D __x86_64__
 
 LIBUNWIND_CFLAGS-y      +=  $(CONFIG_FLAGS)
 LIBUNWIND_CXXFLAGS-y    +=  $(CONFIG_FLAGS)
 
+SUPPRESS_FLAGS += -Wno-unused-parameter
+LIBUNWIND_CFLAGS-y   += $(SUPPRESS_FLAGS)
+LIBUNWIND_CXXFLAGS-y += $(SUPPRESS_FLAGS)
+
 ################################################################################
 # Library sources
 ################################################################################