lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 7e68915 2/5: Disable deprecated copy ctor war


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 7e68915 2/5: Disable deprecated copy ctor warning in Boost.Regex for gcc10
Date: Thu, 14 May 2020 17:33:10 -0400 (EDT)

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

    Disable deprecated copy ctor warning in Boost.Regex for gcc10
    
    This version of gcc also warns about the implicit, compiler-generated
    copy ctor being deprecated in presence of a user-defined assignment
    operator, just as clang 10 does, so the warning needs to be disabled for
    it as well, in the same way as it was done for clang in a88f40208
    (Disable clang -Wdeprecated-copy warning in regex_iterator, 2020-03-25)
---
 boost_regex.hpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/boost_regex.hpp b/boost_regex.hpp
index 25d365e..c67d0f1 100644
--- a/boost_regex.hpp
+++ b/boost_regex.hpp
@@ -34,6 +34,9 @@
 #       pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #       pragma GCC diagnostic ignored "-Wregister"
 #       pragma GCC diagnostic ignored "-Wuseless-cast"
+#       if 10 <= __GNUC__
+#           pragma GCC diagnostic ignored "-Wdeprecated-copy"
+#       endif // 10 <= __GNUC__
 #   endif // 7 <= __GNUC__
 #   pragma GCC diagnostic ignored "-Wshadow"
 #endif // defined __GNUC__



reply via email to

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