diff --git a/Headers/GNUstepBase/GSBlocks.h b/Headers/GNUstepBase/GSBlocks.h index ea0a20343a..4f29c5d060 100644 --- a/Headers/GNUstepBase/GSBlocks.h +++ b/Headers/GNUstepBase/GSBlocks.h @@ -107,8 +107,8 @@ typedef retTy(^name)() #endif /* __has_feature(blocks) */ -#define CALL_BLOCK(block, args...) ((NULL != block) ? CALL_NON_NULL_BLOCK(block, args) : nil) -#define CALL_BLOCK_NO_ARGS(block) ((NULL != block) ? CALL_NON_NULL_BLOCK_NO_ARGS(block) : nil) +#define CALL_BLOCK(block, args...) ((NULL != block) ? (void*)CALL_NON_NULL_BLOCK(block, args) : (void*)nil) +#define CALL_BLOCK_NO_ARGS(block) ((NULL != block) ? (void*)CALL_NON_NULL_BLOCK_NO_ARGS(block) : (void*)nil) #if __has_include() # include