From f19a20598d72ad6ff2c23af792a43139a6695e30 Mon Sep 17 00:00:00 2001 From: Louis Brunner Date: Thu, 3 Oct 2024 23:10:47 +0100 Subject: [PATCH] fix warnin --- coregrind/m_syswrap/syswrap-darwin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c index 4ea54bfd5..c6537b40e 100644 --- a/coregrind/m_syswrap/syswrap-darwin.c +++ b/coregrind/m_syswrap/syswrap-darwin.c @@ -873,7 +873,8 @@ static const HChar *kdebug_debugid(ULong did) while (*end == ' ' || *end == '\t') { end += 1; } - VG_(strlcpy)((HChar*)kdebug_trace_codes[kdebug_trace_codes_count].name, end, sizeof(kdebug_trace_codes[kdebug_trace_codes_count].name)); + // FIXME: gross cast! + VG_(strlcpy)((HChar*)(Addr)kdebug_trace_codes[kdebug_trace_codes_count].name, end, sizeof(kdebug_trace_codes[kdebug_trace_codes_count].name)); kdebug_trace_codes_count += 1; start = p - rbuf + 1; }