[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__
- [lmi-commits] [lmi] master updated (47ba720 -> ad6ea6c), Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 7a98051c0 01/10: Enable five more warnings, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master eb410dd 02/10: Remove a useless cast, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 857ca63 03/10: Move a pragma to a more appropriate place, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 6143242 06/10: Use a pragma to inhibit certain warnings in a single TU, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master cddcbaa 09/10: Purge three classes of warnings that are no longer needed, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master ad6ea6c 10/10: Remove pragmata rendered unnecessary by '-isystem', Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 67e9fd6 04/10: Disable '-Wswitch-enum' in 'boost_regex.hpp',
Greg Chicares <=
- [lmi-commits] [lmi] master 4b93a16 07/10: Consolidate and simplify '-Wno-' options for boost filesystem, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master b9adeb4 08/10: Consolidate and simplify '-Wno-' options for cgicc, Greg Chicares, 2020/06/08
- [lmi-commits] [lmi] master 272d69d 05/10: Purge a class of warnings that is no longer needed, Greg Chicares, 2020/06/08