[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)
- [lmi-commits] [lmi] master updated (6f5da56 -> ef317d2), Greg Chicares, 2020/06/16
- [lmi-commits] [lmi] master ef317d2 6/6: Forbid old-style casts generally, Greg Chicares, 2020/06/16
- [lmi-commits] [lmi] master 272c028 1/6: Log output of 'check_concinnity' target separately, Greg Chicares, 2020/06/16
- [lmi-commits] [lmi] master 41bb715 3/6: Don't respecify the types of floating literals, Greg Chicares, 2020/06/16
- [lmi-commits] [lmi] master a09d2fc 2/6: Remove needless gcc-version conditionals, Greg Chicares, 2020/06/16
- [lmi-commits] [lmi] master a26fe6a 4/6: Eradicate old-style casts, Greg Chicares, 2020/06/16
- [lmi-commits] [lmi] master 8cc64f6 5/6: Allow old-style casts in certain circumstances,
Greg Chicares <=