[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 57f608a 5/8: Disable clang enum-related warni
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 57f608a 5/8: Disable clang enum-related warnings in C++20 mode |
Date: |
Mon, 19 Apr 2021 20:37:29 -0400 (EDT) |
branch: master
commit 57f608a90ed196c4130aeb7949db53fc54515263
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Disable clang enum-related warnings in C++20 mode
Using -std=c++20 implicitly enables a few warnings that occur in lmi
code and can't be easily fixed, so disable them for now.
---
configure.ac | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure.ac b/configure.ac
index 42c5e4f..356a5a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -607,6 +607,14 @@ if test "x$GXX" == "xyes"; then
LMI_CXX_ADD_IF_SUPPORTED(-Wno-parentheses)
fi
+ dnl These warnings are given by clang in C++20 mode and can't be easily
+ dnl avoided, so disable them for now.
+ if test "$CLANG" = "yes"; then
+ LMI_CXX_ADD_IF_SUPPORTED(-Wno-deprecated-anon-enum-enum-conversion)
+ LMI_CXX_ADD_IF_SUPPORTED(-Wno-deprecated-enum-enum-conversion)
+ LMI_CXX_ADD_IF_SUPPORTED(-Wno-deprecated-enum-float-conversion)
+ fi
+
dnl Many instances of these warnings are given in Boost 1.33.1 headers, so
dnl we unfortunately have to disable them even if they're potentially
dnl useful, especially the latter one.
- [lmi-commits] [lmi] master updated (9414edf -> 5aa44f4), Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master d9e35c2 2/8: Remove an unimportant comment, Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master 7f8f3e0 1/8: Fix defect introduced 20210418T2056Z: nonzero default value, Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master 85076e0 7/8: Disable -Wunused-parameter warning in Boost.Numeric header, Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master a71c8cd 4/8: Use wxSizerFlags for creating the "About" dialog, Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master 3d3f40e 3/8: Update coding-rule exemptions, Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master 57f608a 5/8: Disable clang enum-related warnings in C++20 mode,
Greg Chicares <=
- [lmi-commits] [lmi] master b538769 6/8: Use std::endian when using C++20, Greg Chicares, 2021/04/19
- [lmi-commits] [lmi] master 5aa44f4 8/8: Disable clang warnings about using volatile in C++20 mode, Greg Chicares, 2021/04/19