From 41f4a7015fd197a46f52d8454884a8bb023db32f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 13 Oct 2017 20:30:22 +0100 Subject: [PATCH] test: fix compilation with newer SDCC void * and function types don't mix in strict interpretations of C (think about split I/D for one) Patch from Philipp Klaus Krause. --- Applications/MWC/cmd/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/MWC/cmd/test.c b/Applications/MWC/cmd/test.c index a7e7b7ec..beafc37b 100644 --- a/Applications/MWC/cmd/test.c +++ b/Applications/MWC/cmd/test.c @@ -198,9 +198,9 @@ STRING_UNOP(strfile_executable) struct op { const char *op_name; - void *op_func; + void (*op_func)(void); }; -#define OP(name,func) { name, (void *)func } +#define OP(name,func) { name, (void (*)(void *))func } const struct op string_binop[] = { OP("=", cmp_eq), OP("!=", cmp_neq), OP("<", cmp_lt), -- 2.34.1