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:
@@ -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; \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user