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:
Emil Lindqvist 2021-02-03 11:07:45 +01:00 committed by Anas Nashif
commit a904330d4f

View file

@ -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);
}
}
#else
ARG_UNUSED(msk);
ARG_UNUSED(idx);
ARG_UNUSED(action);
#endif
return param;
}