From df7bc6b36d16e91f3e9e96e9542885e544bbf4d0 Mon Sep 17 00:00:00 2001 From: "Ying-Ruei Liang (TheKK)" Date: Fri, 16 Dec 2022 13:37:29 +0800 Subject: rts: explicitly store return value of ccall checkClosure to prevent type error (#22617) --- rts/ContinuationOps.cmm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rts') diff --git a/rts/ContinuationOps.cmm b/rts/ContinuationOps.cmm index 2282dd9425..efb485057f 100644 --- a/rts/ContinuationOps.cmm +++ b/rts/ContinuationOps.cmm @@ -166,11 +166,12 @@ INFO_TABLE_FUN(stg_CONTINUATION,0,0,CONTINUATION,"CONTINUATION","CONTINUATION",2 // see Note [Continuations overview] in Continuation.c stg_CONTINUATION_apply // explicit stack { + W_ _unused; P_ cont, io; cont = R1; io = R2; - IF_DEBUG(sanity, ccall checkClosure(cont "ptr")); + IF_DEBUG(sanity, (_unused) = ccall checkClosure(cont "ptr")); W_ new_stack_words, apply_mask_frame, mask_frame_offset; new_stack_words = StgContinuation_stack_size(cont); -- cgit v1.2.1