Ignore unused arguments in a more standard way

This commit is contained in:
ISSOtm
2020-02-26 14:28:11 +01:00
parent 361d6cf517
commit 5bc8d51a9e
3 changed files with 6 additions and 4 deletions

View File

@@ -49,8 +49,9 @@ static char SavedMINUTE[3];
static char SavedSECOND[3];
static bool exportall;
static int32_t Callback_NARG(unused_ struct sSymbol const *sym)
static int32_t Callback_NARG(struct sSymbol const *self)
{
(void)self;
uint32_t i = 0;
while (currentmacroargs[i] && i < MAXMACROARGS)
@@ -59,8 +60,9 @@ static int32_t Callback_NARG(unused_ struct sSymbol const *sym)
return i;
}
static int32_t Callback__LINE__(unused_ struct sSymbol const *sym)
static int32_t Callback__LINE__(struct sSymbol const *self)
{
(void)self;
return nLineNo;
}