rainerscript: mark unused parameters as such

This commit is contained in:
Jan Gerhards 2018-04-05 13:24:34 +02:00
parent 2265054922
commit 065022e551
2 changed files with 9 additions and 8 deletions

View File

@ -1668,7 +1668,7 @@ static void
doFunc_exec_template(struct cnffunc *__restrict__ const func,
struct svar *__restrict__ const ret,
void *const usrptr,
wti_t *__restrict__ const pWti)
wti_t *const __attribute__((unused)) pWti)
{
smsg_t *const pMsg = (smsg_t*) usrptr;
rsRetVal localRet;
@ -2314,7 +2314,7 @@ static void ATTR_NONNULL()
doFunct_Prifilt(struct cnffunc *__restrict__ const func,
struct svar *__restrict__ const ret,
void *__restrict__ const usrptr,
wti_t *__restrict__ const pWti)
wti_t *const __attribute__((unused)) pWti)
{
struct funcData_prifilt *pPrifilt;
@ -2631,9 +2631,9 @@ doFunct_IsTime(struct cnffunc *__restrict__ const func,
}
static void ATTR_NONNULL()
doFunct_ScriptError(struct cnffunc *__restrict__ const func,
doFunct_ScriptError(struct cnffunc *const __attribute__((unused)) func,
struct svar *__restrict__ const ret,
void *__restrict__ const usrptr,
void *const __attribute__((unused)) usrptr,
wti_t *__restrict__ const pWti)
{
ret->datatype = 'N';
@ -2642,9 +2642,9 @@ doFunct_ScriptError(struct cnffunc *__restrict__ const func,
}
static void ATTR_NONNULL()
doFunct_PreviousActionSuspended(struct cnffunc *__restrict__ const func,
doFunct_PreviousActionSuspended(struct cnffunc *const __attribute__((unused)) func,
struct svar *__restrict__ const ret,
void *__restrict__ const usrptr,
void *const __attribute__((unused)) usrptr,
wti_t *__restrict__ const pWti)
{
ret->datatype = 'N';
@ -5055,7 +5055,8 @@ funcName2Ptr(char *const fname, const unsigned short nParams)
}
rsRetVal
addMod2List(const int version, struct scriptFunct *functArray)
addMod2List(const int __attribute__((unused)) version, struct scriptFunct *functArray)
/*version currently not used, might be needed later for versin check*/
{
DEFiRet;
struct modListNode *newNode;

View File

@ -159,7 +159,7 @@ destructFunc_http_request(struct cnffunc *const func)
static struct scriptFunct functions[] = {
{"http_request", 1, 1, doFunc_http_request, initFunc_http_request, destructFunc_http_request},
{NULL, 0, 0, NULL} //last element to check end of array
{NULL, 0, 0, NULL, NULL, NULL} //last element to check end of array
};
BEGINgetFunctArray