lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 67e9fd6 04/10: Disable '-Wswitch-enum' in 'bo


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 67e9fd6 04/10: Disable '-Wswitch-enum' in 'boost_regex.hpp'
Date: Mon, 8 Jun 2020 19:22:00 -0400 (EDT)

branch: master
commit 67e9fd65cb78d1dd026468618381a3574eae6721
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Disable '-Wswitch-enum' in 'boost_regex.hpp'
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2020-06/msg00009.html
    
    Incidentally flattened conditionals: if the gcc version is ten or
    higher, then it is also higher than seven.
---
 boost_regex.hpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/boost_regex.hpp b/boost_regex.hpp
index c67d0f1..e313c01 100644
--- a/boost_regex.hpp
+++ b/boost_regex.hpp
@@ -34,11 +34,12 @@
 #       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__
+#   if 10 <= __GNUC__
+#       pragma GCC diagnostic ignored "-Wdeprecated-copy"
+#   endif // 10 <= __GNUC__
 #   pragma GCC diagnostic ignored "-Wshadow"
+#   pragma GCC diagnostic ignored "-Wswitch-enum"
 #endif // defined __GNUC__
 #include <boost/regex.hpp>
 #if defined __clang__



reply via email to

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