shithub: rgbds

Download patch

ref: 6ef3ee1391656669f6bd2437f503789505632a8d
parent: c29b616f937f975f87f4ba6613146fd4c339f89c
author: ISSOtm <[email protected]>
date: Fri Feb 19 11:15:31 EST 2021

Give void* ptr to %p formatter

Silences a format type mismatch warning

--- a/src/asm/fstack.c
+++ b/src/asm/fstack.c
@@ -275,7 +275,7 @@
 	lexer_DeleteState(context->lexerState);
 	/* Restore args if a macro (not REPT) saved them */
 	if (context->fileInfo->type == NODE_MACRO) {
-		dbgPrint("Restoring macro args %p\n", contextStack->macroArgs);
+		dbgPrint("Restoring macro args %p\n", (void *)contextStack->macroArgs);
 		macro_UseNewArgs(contextStack->macroArgs);
 	}
 	/* Free the file stack node */