lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 8cc64f6 5/6: Allow old-style casts in certain


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8cc64f6 5/6: Allow old-style casts in certain circumstances
Date: Tue, 16 Jun 2020 15:43:49 -0400 (EDT)

branch: master
commit 8cc64f60dbae66874e2397cc9dd2c24076fdb70f
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Allow old-style casts in certain circumstances
---
 md5.cpp        | 1 +
 wx_utility.hpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/md5.cpp b/md5.cpp
index b038cfd..9ed20c2 100644
--- a/md5.cpp
+++ b/md5.cpp
@@ -89,6 +89,7 @@
 #endif // !defined WORDS_BIGENDIAN
 
 #if defined __GNUC__ && !defined __clang__
+#   pragma GCC diagnostic ignored "-Wold-style-cast"
 #   pragma GCC diagnostic ignored "-Wuseless-cast"
 #endif // defined __GNUC__ && !defined __clang__
 
diff --git a/wx_utility.hpp b/wx_utility.hpp
index ebe3814..b2e2c89 100644
--- a/wx_utility.hpp
+++ b/wx_utility.hpp
@@ -55,6 +55,7 @@ class jdn_t;
 #   if 8 <= __GNUC__
 #       pragma GCC diagnostic ignored "-Wcast-function-type"
 #   endif // 8 <= __GNUC__
+#   pragma GCC diagnostic ignored "-Wold-style-cast"
 #endif // defined __GNUC__
 template<typename To, typename From>
 To c_cast(From z)



reply via email to

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