From abc34bc5a81694bc781f54a9a040cc9affb6d00a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Jul 2025 17:05:45 -0500 Subject: [PATCH] testsuites/validation/tx-call-within-isr.c: Fix comparision warning. GCC generated a warning for "comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]." Added a cast to fix this. --- testsuites/validation/tx-call-within-isr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/validation/tx-call-within-isr.c b/testsuites/validation/tx-call-within-isr.c index 8bbe0e7c29..a5444e7da9 100644 --- a/testsuites/validation/tx-call-within-isr.c +++ b/testsuites/validation/tx-call-within-isr.c @@ -153,7 +153,7 @@ static void CallWithinISRIsHandlerInstalled( (void) option; (void) handler_arg; - if ( handler == CallWithinISRHandler && handler_arg == NULL ) { + if ( handler == (void *)CallWithinISRHandler && handler_arg == NULL ) { *(bool *) arg = true; } }