lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master bbc5038 2/9: Disable gcc -Wdeprecated-enum-fl


From: Greg Chicares
Subject: [lmi-commits] [lmi] master bbc5038 2/9: Disable gcc -Wdeprecated-enum-float-conversion
Date: Sat, 23 Oct 2021 18:32:43 -0400 (EDT)

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

    Disable gcc -Wdeprecated-enum-float-conversion
    
    This warning occurs in multiple places in the code and is not simple to
    fix, so disable it globally for now.
---
 workhorse.make | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/workhorse.make b/workhorse.make
index 41af201..b0343f4 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -488,6 +488,9 @@ else ifneq (,$(filter $(gcc_version), 10 10.0))
 
   cxx_standard := -fno-ms-extensions -frounding-math -std=c++20
 else ifneq (,$(filter $(gcc_version), 11 11.0))
+  gxx_version_specific_warnings := \
+    -Wno-deprecated-enum-float-conversion \
+
   gcc_cxx_warnings += -Wredundant-tags -Wvolatile
 
   cxx_standard := -fno-ms-extensions -frounding-math -std=c++20
@@ -568,6 +571,7 @@ gcc_c_warnings := \
 gcc_cxx_warnings := \
   $(cxx_standard) \
   $(gcc_common_warnings) \
+  $(gxx_version_specific_warnings) \
   -Wc++11-compat \
   -Wc++14-compat \
   -Wc++1z-compat \



reply via email to

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