From 71e86e51bda2c3befc44affaced0cc8bde806ea3 Mon Sep 17 00:00:00 2001 From: Jerzy Jamroz Date: Wed, 12 Feb 2025 12:18:54 +0100 Subject: [PATCH] fix: error C2059: syntax error at the atInitDef structure. --- modules/libcom/src/iocsh/atInit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/libcom/src/iocsh/atInit.c b/modules/libcom/src/iocsh/atInit.c index 41622dd4c..ef25a27d6 100644 --- a/modules/libcom/src/iocsh/atInit.c +++ b/modules/libcom/src/iocsh/atInit.c @@ -64,10 +64,12 @@ static struct cmditem *newItem(const char *cmd) return item; } +static const iocshArg atInitArg0 = {"command (before iocInit)", iocshArgString}; +static const iocshArg *const atInitArgs[] = {&atInitArg0}; static const iocshFuncDef atInitDef = { "atInit", 1, - (const iocshArg *[]){&(iocshArg){"command (before iocInit)", iocshArgString}}, + atInitArgs, helpMessage}; static void atInitFunc(const iocshArgBuf *args)