lmi-commits
[Top][All Lists]
Advanced

[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.



reply via email to

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