lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master fc4e8fe 1/7: Fix warnings in Boost.Regex comp


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fc4e8fe 1/7: Fix warnings in Boost.Regex compilation with clang
Date: Tue, 13 Nov 2018 12:21:36 -0500 (EST)

branch: master
commit fc4e8fe89fc8cc129d8789a21840d9d6ea94d744
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Fix warnings in Boost.Regex compilation with clang
    
    Suppress warnings due to the use of deprecated std::auto_ptr<> in
    Boost.Regex code when using this compiler.
---
 boost_regex.hpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/boost_regex.hpp b/boost_regex.hpp
index 4ac2724..df4e86c 100644
--- a/boost_regex.hpp
+++ b/boost_regex.hpp
@@ -24,7 +24,10 @@
 
 #include "config.hpp"
 
-#if defined __GNUC__
+#if defined __clang__
+#   pragma clang diagnostic push
+#   pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#elif defined __GNUC__
 #   pragma GCC diagnostic push
 #   if 7 <= __GNUC__
 #       pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
@@ -34,7 +37,9 @@
 #   pragma GCC diagnostic ignored "-Wshadow"
 #endif // defined __GNUC__
 #include <boost/regex.hpp>
-#if defined __GNUC__
+#if defined __clang__
+#   pragma clang diagnostic pop
+#elif defined __GNUC__
 #   pragma GCC diagnostic pop
 #endif // defined __GNUC__
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]