From: Costin Lupu Date: Sun, 2 Jun 2019 13:27:45 +0000 (+0300) Subject: Fix some of the compiling warnings X-Git-Tag: RELEASE-0.4~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=510b5c81f1b73bab5db3bcc048751983582b5e75;p=unikraft%2Flibs%2Flibunwind.git Fix some of the compiling warnings 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 Reviewed-by: Felipe Huici --- diff --git a/Makefile.uk b/Makefile.uk index a80a4fe..109e5e8 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -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 ################################################################################