[Unwind] Cast exception class pointer for strcpy
Follow-up to f5b997e6b706, see comment on
https://reviews.llvm.org/D109047
Differential revision: https://reviews.llvm.org/D109168
NOKEYCHECK=True
GitOrigin-RevId: 1bc175d486b5bf2ae5dd46c1e85342f2f2734b1f
diff --git a/src/UnwindLevel1-gcc-ext.c b/src/UnwindLevel1-gcc-ext.c
index c3fa8b6..4172540 100644
--- a/src/UnwindLevel1-gcc-ext.c
+++ b/src/UnwindLevel1-gcc-ext.c
@@ -109,7 +109,7 @@
// Create a mock exception object for force unwinding.
_Unwind_Exception ex;
memset(&ex, '\0', sizeof(ex));
- strcpy(&ex.exception_class, "CLNGUNW");
+ strcpy((char *)&ex.exception_class, "CLNGUNW");
#endif
// walk each frame