net: lwm2m: Fix build warning on access-control object
With bootstrap one function is unused. Fix by changing ifdef to if (IS_ENABLED()) so linker can drop it. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
parent
340ffe1c48
commit
d8d81a8075
1 changed files with 4 additions and 4 deletions
|
@ -432,10 +432,10 @@ static int ac_control_init(void)
|
||||||
ac_obj.create_cb = ac_create;
|
ac_obj.create_cb = ac_create;
|
||||||
lwm2m_register_obj(&ac_obj);
|
lwm2m_register_obj(&ac_obj);
|
||||||
|
|
||||||
#if !IS_ENABLED(CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)
|
if (!IS_ENABLED(CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)) {
|
||||||
/* add the objects/object instances that were created before the ac control object */
|
/* add the objects/object instances that were created before the ac control */
|
||||||
add_existing_objects();
|
add_existing_objects();
|
||||||
#endif /* CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP */
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue