kernel: Fix compile warning with _impl_k_object_alloc
We get the following warning with CONFIG_DYNAMIC_OBJECTS=n in _impl_k_object_alloc: include/kernel.h:322:57: warning: unused parameter ‘otype’ [-Wunused-parameter] static inline void *_impl_k_object_alloc(enum k_objects otype) ^~~~~ Simple fix is to ARG_UNUSED otype. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
a631e1a1e4
commit
85699f7c6f
1 changed files with 2 additions and 0 deletions
|
@ -321,6 +321,8 @@ void k_object_free(void *obj);
|
|||
#else
|
||||
static inline void *_impl_k_object_alloc(enum k_objects otype)
|
||||
{
|
||||
ARG_UNUSED(otype);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue