[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__
- [lmi-commits] [lmi] master updated (379fcf3 -> 40bee87), Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master fc4e8fe 1/7: Fix warnings in Boost.Regex compilation with clang,
Greg Chicares <=
- [lmi-commits] [lmi] master 934c49e 5/7: Update #endif comments when #if conditions change, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master 40bee87 7/7: Work around a [bitmask.types] issue, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master f79a907 4/7: Don't disable gcc-specific warnings in GUI code for clang, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master ebed357 2/7: Don't try to disable GCC -Wuseless-cast warning for clang, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master ea937af 3/7: Update #endif comments when #if conditions change, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master 40fa47f 6/7: Remove disused object dependencies, Greg Chicares, 2018/11/13