From: cuz Date: Thu, 16 Sep 2004 14:31:40 +0000 (+0000) Subject: Fixed a C99ism X-Git-Tag: V2.12.0~651 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b3e3633b98f57e53af718f2b5a28eec79078c39;p=cc65 Fixed a C99ism git-svn-id: svn://svn.cc65.org/cc65/trunk@3183 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 5f8aaf027..5c0b9b83f 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -595,9 +595,13 @@ static void MacroCall (StrBuf* Target, Macro* M) /* Compare formal and actual argument count */ if (CollCount (&E.ActualArgs) != (unsigned) M->ArgCount) { + + StrBuf Arg = STATIC_STRBUF_INITIALIZER; + + /* Argument count mismatch */ PPError ("Macro argument count mismatch"); + /* Be sure to make enough empty arguments available */ - StrBuf Arg = STATIC_STRBUF_INITIALIZER; while (CollCount (&E.ActualArgs) < (unsigned) M->ArgCount) { ME_AppendActual (&E, &Arg); }