lmi-commits
[Top][All Lists]
Advanced

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



reply via email to

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