lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 56015ec 4/4: Disable -Wdeprecated-enum-xxx-co


From: Vadim Zeitlin
Subject: [lmi-commits] [lmi] master 56015ec 4/4: Disable -Wdeprecated-enum-xxx-conversion for latest gcc too
Date: Thu, 13 May 2021 07:34:17 -0400 (EDT)

branch: master
commit 56015ec766c0e87ea060e392efc890c568bc525b
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>

    Disable -Wdeprecated-enum-xxx-conversion for latest gcc too
    
    Latest gcc 11.1.0 also gives these warnings, so disable them globally in
    configure builds to allow using this compiler for building lmi, as it
    was already done for clang (two other new C++20 warnings remain
    clang-specific however).
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 911138d..acd94f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -641,10 +641,10 @@ if test "x$GXX" == "xyes"; then
 
     dnl These warnings are given by clang in C++20 mode and can't be easily
     dnl avoided, so disable them for now.
+    LMI_CXX_ADD_IF_SUPPORTED(-Wno-deprecated-enum-enum-conversion)
+    LMI_CXX_ADD_IF_SUPPORTED(-Wno-deprecated-enum-float-conversion)
     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)
         LMI_CXX_ADD_IF_SUPPORTED(-Wno-deprecated-volatile)
     fi
 



reply via email to

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