[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5c883d42 2/6: '-Wcast-function-type': treat c
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5c883d42 2/6: '-Wcast-function-type': treat clang the same as gcc |
Date: |
Fri, 8 Jul 2022 16:59:16 -0400 (EDT) |
branch: master
commit 5c883d42f387e740b58af22d757be84da4e2864e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
'-Wcast-function-type': treat clang the same as gcc
---
compiler_clang_warnings.make | 2 --
wx_utility.hpp | 4 +---
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/compiler_clang_warnings.make b/compiler_clang_warnings.make
index 844df884..6f9eada0 100644
--- a/compiler_clang_warnings.make
+++ b/compiler_clang_warnings.make
@@ -50,7 +50,6 @@ clang_c_warnings := \
# -W++20-compat: backward compatibility not desirable
# -W++98-compat-pedantic: backward compatibility not desirable
### [triple '#' marks warnings requiring investigation]
-### -Wcast-function-type
### -Wcomma
### -Wconditional-uninitialized
### -Wcovered-switch-default
@@ -85,7 +84,6 @@ clang_cxx_warnings := \
$(clang_common_warnings) \
-Wno-c++20-compat \
-Wno-c++98-compat-pedantic \
- -Wno-cast-function-type \
-Wno-comma \
-Wno-conditional-uninitialized \
-Wno-covered-switch-default \
diff --git a/wx_utility.hpp b/wx_utility.hpp
index 69ff1ffa..c39a2bb6 100644
--- a/wx_utility.hpp
+++ b/wx_utility.hpp
@@ -48,9 +48,7 @@ class jdn_t;
#if defined LMI_GCC || defined LMI_CLANG
# pragma GCC diagnostic push
-# if defined LMI_GCC && 8 <= __GNUC__
-# pragma GCC diagnostic ignored "-Wcast-function-type"
-# endif // defined LMI_GCC && 8 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wcast-function-type"
# pragma GCC diagnostic ignored "-Wold-style-cast"
#endif // defined LMI_GCC || defined LMI_CLANG
template<typename To, typename From>
- [lmi-commits] [lmi] master updated (f8fac8dd -> 68095897), Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 259a59c7 3/6: Enable '-Wshadow' for clang, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 782f0641 4/6: Don't limit the number of clang diagnostics, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 68095897 6/6: Use [[fallthrough]], Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 54ce0f17 1/6: Mark clang warnings requiring investigation, Greg Chicares, 2022/07/08
- [lmi-commits] [lmi] master 5c883d42 2/6: '-Wcast-function-type': treat clang the same as gcc,
Greg Chicares <=
- [lmi-commits] [lmi] master 98265f31 5/6: Don't use clang's '-Wcovered-switch-default', Greg Chicares, 2022/07/08