[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 95add508 05/10: Forestall a clang complaint
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 95add508 05/10: Forestall a clang complaint |
Date: |
Sun, 26 Jun 2022 17:47:48 -0400 (EDT) |
branch: master
commit 95add508abac573cc8b469ca69ce27ebcb648e1c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Forestall a clang complaint
---
unwind.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/unwind.cpp b/unwind.cpp
index e68f54c8..6d26724e 100644
--- a/unwind.cpp
+++ b/unwind.cpp
@@ -197,6 +197,12 @@ void __cxa_throw(void* thrown_exception, std::type_info*
tinfo, void (*dest)(voi
print_backtrace();
}
original_cxa_throw(thrown_exception, tinfo, dest);
+// Work around a clang anomaly--see:
+// https://lists.nongnu.org/archive/html/lmi/2022-06/msg00067.html
+// et seqq.
+#if defined LMI_CLANG
+ throw "Unreachable--silences a compiler diagnostic.";
+#endif // defined LMI_CLANG
}
# if defined LMI_GCC
- [lmi-commits] [lmi] master updated (ee23febb -> fd6587af), Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 41fce79a 08/10: Test with clang as well as gcc, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 9eae460d 06/10: Support clang, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master d0b24945 04/10: Add a useful command, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master fd6587af 10/10: Import improved commentary, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 606e9355 01/10: Permit clang version macros, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 5175f188 02/10: Don't use 'volatile' in a context where it is deprecated, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 815897a8 09/10: Remove an obsolete comment, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 3db28e83 07/10: Make clang '-ffp' flags work without crashing, Greg Chicares, 2022/06/26
- [lmi-commits] [lmi] master 95add508 05/10: Forestall a clang complaint,
Greg Chicares <=
- [lmi-commits] [lmi] master 3e9c5f3f 03/10: Remove disused 'platform_cgicc_libraries', Greg Chicares, 2022/06/26