logging: fix warnings when building with -Wunused-variable
Said warning comes when building with LOG_MODE_MINIMAL and including logging/log.h. This commit adds ARG_UNUSED on relevant variables. Signed-off-by: Emil Lindqvist <emil@lindq.gr>
This commit is contained in:
parent
d74dae2eaf
commit
a904330d4f
1 changed files with 4 additions and 0 deletions
|
@ -775,6 +775,10 @@ static inline log_arg_t z_log_do_strdup(uint32_t msk, uint32_t idx,
|
||||||
param = (log_arg_t)log_strdup(str);
|
param = (log_arg_t)log_strdup(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
ARG_UNUSED(msk);
|
||||||
|
ARG_UNUSED(idx);
|
||||||
|
ARG_UNUSED(action);
|
||||||
#endif
|
#endif
|
||||||
return param;
|
return param;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue