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

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


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Sun, 2 Jun 2019 16:46:16 +0300
  • Cc: felipe.huici@xxxxxxxxx
  • Delivery-date: Sun, 02 Jun 2019 13:46:27 +0000
  • Ironport-phdr: 9a23:bBbSah9ZfzYiHP9uRHKM819IXTAuvvDOBiVQ1KB30ugcTK2v8tzYMVDF4r011RmVBNydsqkZwLSG+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhViDanfL9/IhW7oQrQu8QVnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahMxugqxGrhyvpBtxzpXIbI2JLvdyYrnQcc8GSWdHQ81fVzZBAoS5b4YXEecBOv1Yr5X8p1sIsBCwAxSsBPvyyjRVgXL5wao60/89EQHH2gwsBdYOsGnMrNXoL6odTfu1wLPQzTXedPxawy396I/Rfx0nvPqCXqpwfNLMxUQgCg/JlFadpIz/Mz+LyOgAsXKX4uR4We6yhGMrtht9rzuvy8s2lIXEiIwYxkrZ+Sh23oo4I8CzRlRhbt6+CpRQsjmXN45xQsw/XW5loD06yrgauZ6jeygK1Ygnywbfa/OZd4iI5QruVPiUIThihXJlfKiziAqp8US60u38S9K73ExQripCitXMt3YN2ALP6sWfV/dw8Vqt1SyM2g3T8O1IP144mKjBJ5Mv2rIwk4AcsUXHHi/4gkX2i6qWe1049eiv8OTnfrTmppmGO49wlwH+Krkul9ejDuQjKAQOR3Wb9v+m2L35+k31WK9KgeEukqnFrJDaItwWpqu4Aw9T04Yj7A2/Ay6739sGg3kIMlZFdQmDj4joIFHOPOv4Ae2wgluyljdn3ffGPqfuAp/VNHjMjK/hfaph605b0Aczw85Q55ZVCrEZPv3/QE/xtMHZDhAlMgy52ODnB8th2YMaQ22AGbWVP73PsQzA2uV6JuiKZYgO/TrwNfUhz/rvlmMi308Qe++ux5RERmq/G6FNJF6FYHykpsoZDC9etQ0lUO3szlmfSSN7bG30R782oCs8XtH1RbzfT5yg1eTSlBywGYdbMzhL
  • Ironport-sdr: Sqb0HQxo8gNhONoACyiAARJ7DvTnjkQb3CiOjBO/P6vEvm41+WF47hthcAUBILN3wURFsJUJu0 66QDS1ak+fWg==
  • 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 _LIBCPP_BUILDING_LIBRARY and
_LIBCPPABI_VERSION macros.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 Makefile.uk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile.uk b/Makefile.uk
index ddd39da..a455386 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -91,8 +91,8 @@ CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/utils
 
################################################################################
 # Global flags
 
################################################################################
-CONFIG_FLAGS   += -D _LIBCPP_BUILDING_LIBRARY  -D LIBCXX_BUILDING_LIBCXXABI    
\
-               -D _LIBCPPABI_VERSION -D __x86_64__ -D _LIBCPP_STD_VER=15       
\
+CONFIG_FLAGS   += -D LIBCXX_BUILDING_LIBCXXABI         \
+               -D __x86_64__ -D _LIBCPP_STD_VER=15     \
                -D _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE -D __DYNAMIC_REENT__     
\
 
 
@@ -100,6 +100,10 @@ CONFIG_FLAGS       += -D _LIBCPP_BUILDING_LIBRARY  -D 
LIBCXX_BUILDING_LIBCXXABI    \
 LIBCXX_CFLAGS-y    +=   $(CONFIG_FLAGS)
 LIBCXX_CXXFLAGS-y    +=   $(CONFIG_FLAGS)
 
+SUPPRESS_FLAGS += -Wno-unused-parameter
+LIBCXX_CFLAGS-y   += $(SUPPRESS_FLAGS)
+LIBCXX_CXXFLAGS-y += $(SUPPRESS_FLAGS)
+
 LIBCXX_SRCS-y += $(LIBCXX_BASE)/glue.c
 
################################################################################
 # 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®.