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.
This commit is contained in:
Joel Sherrill
2025-07-17 17:05:45 -05:00
committed by Kinsey Moore
parent 3a2b37826f
commit abc34bc5a8

View File

@@ -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;
}
}