[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/LIBUNWIND PATCH] Fix some of the compiling warnings


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Sun, 2 Jun 2019 16:27:45 +0300
  • Cc: felipe.huici@xxxxxxxxx
  • Delivery-date: Sun, 02 Jun 2019 13:28:00 +0000
  • Ironport-phdr: 9a23:Yebxzxxm4B1zdk7XCy+O+j09IxM/srCxBDY+r6Qd2+sQIJqq85mqBkHD//Il1AaPAdyCrasf1qGI6OjJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVmTaxe65+IRu2oAnet8Qbj5ZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLulSwJNSM28HvPh8JwkqxVvRyvqR94zYHWboGYL+Zycr/HcN8GX2dNQtpdWipcCY28dYsPCO8BMP5Goon6vFsOsRq+BQ+xD+3p1z9InmL21rA93us9FgHGxxAgH9MIsHjOqNX1Kb8SUf2uwabU1jXPdetW2Srm54TSaBAhpuiBULRtesTS0UkiDx7Jg1qNpYD/PD6Y1v4Bv3aF4+diT+6ihXYrpxx+rzSy3MshiYnEipgLxl3K+yh12ps5KNKmREN9fNWqCoFftzuAOItzWs4iRmZotzskxbAeop67eTQKyIwgxx7Cd/yLa4iI7QznVOaWOTp4mndld6i+hxa260Sv1vb8WtOs0FZXtSVJiMPMtncV2xzS7MiIVOd981+81TuAygzf8OJJLEAumabFNZIswKQ8m5QLvUTGBCD2mUH2jKGMdkUj/+il8/joYrL9pp+ANo90jBvyMqAzmsynHOQ1KRQBX3OB9eSkyb3s5lf1QK9NjvEuiKnWrIjaJdgHpq6+GwJV14cj6xC+Dzehy9QUhGQII0xbeB2Zi4jkIFXOIPHjDfejmFSgijhqyO7APrH7BZXNNHfDmq/7fblh805c1BYzzddH6pJaFL4BJPPzWlfvu9DCDh85Lg20zPrmCNhm0IMRR36AAquDP6zJq1OH+P8vcKGwY9oQuTD8LONg6/PwgHsRnV4GYbLvzZYRLneiEadIOUKcNFHrmcsAFy8uoxIjBLjhj0aeUDgVY2uqQoo3/XcjFYjgF4CVFdPlu6CIwCruRs4eXWtBEF3ZSXo=
  • Ironport-sdr: 8ZSzsCe1QvL/wNAeKJNLM8tN+lF/vNBnbL2R6zh0gRNjuSKpq2RrOrdi4VVNc4nVNDqw9e9ih/ bwCcCRDTiI+Q==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

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@xxxxxxxxx>
---
 Makefile.uk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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
 
################################################################################
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.