[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 \
- [lmi-commits] [lmi] master updated (03dc638 -> b0c70e0), Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master bbc5038 2/9: Disable gcc -Wdeprecated-enum-float-conversion,
Greg Chicares <=
- [lmi-commits] [lmi] master a5db27e 1/9: Recognize gcc and g++ 11 versions in the makefile, Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master d810372 3/9: Trade elegance for simplicity, Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master 33de332 5/9: Prefer 'long int' to 'long', Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master e908d9e 8/9: Don't disable -Wdeprecated-enum-enum-conversion in configure, Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master 1cefad6 4/9: Fix LMI_WX_CHILD_DOCUMENT definition to fix g++11 C++20 build, Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master a5de0ea 6/9: Fix gcc11 -Wdeprecated-enum-enum-conversion in test_coding_rules, Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master 97416cf 7/9: Emulate C++23 to_underlying<>(), Greg Chicares, 2021/10/23
- [lmi-commits] [lmi] master b0c70e0 9/9: Update wxWidgets submodule to fix gcc11 -Wshadow warnings, Greg Chicares, 2021/10/23