1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-12 02:47:43 +00:00

Resolve warning: arithmetic on a pointer to void is a GNU extension

GCC treats the size of a void as 1 for the purposes of arithmetic on
a pointer to void.  Since this was provoked by an explicit cast to
pointer to void we can replace it with a cast to pointer to char for
the same effect.
This commit is contained in:
Nick Briggs
2023-01-14 12:02:03 -08:00
parent e5894e5b81
commit 96b3bddf12

View File

@@ -366,7 +366,7 @@
} \
LOCFNCELL = (struct fnhead *)NativeAligned4FromLAddr(defcell->defpointer); \
BCE_CURRENTFX->pc = ((UNSIGNED)PCMAC - (UNSIGNED)FuncObj) + fn_opcode_size; \
FNTPRINT(("Saving PC = 0%o (%p).\n", BCE_CURRENTFX->pc, (void *)PCMAC + fn_opcode_size)); \
FNTPRINT(("Saving PC = 0%o (%p).\n", BCE_CURRENTFX->pc, (char *)PCMAC + fn_opcode_size)); \
FN_STACK_CHECK; \
APPLY_POP_PUSH_TEST; \
{ \