lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

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