diff --git a/examples/foc/foc_fixed16_thr.c b/examples/foc/foc_fixed16_thr.c index a32cfd562..c2c161433 100644 --- a/examples/foc/foc_fixed16_thr.c +++ b/examples/foc/foc_fixed16_thr.c @@ -185,9 +185,10 @@ int foc_fixed16_thr(FAR struct foc_ctrl_env_s *envp) struct foc_mq_s handle; struct foc_motor_b16_s motor; struct foc_device_s dev; - int time = 0; - int ret = OK; + int time = 0; + int ret = OK; + UNUSED(time); DEBUGASSERT(envp); PRINTFV("foc_fixed_thr, id=%d\n", envp->id); diff --git a/examples/foc/foc_float_thr.c b/examples/foc/foc_float_thr.c index 30395e269..dcab5de2f 100644 --- a/examples/foc/foc_float_thr.c +++ b/examples/foc/foc_float_thr.c @@ -186,9 +186,10 @@ int foc_float_thr(FAR struct foc_ctrl_env_s *envp) struct foc_mq_s handle; struct foc_motor_f32_s motor; struct foc_device_s dev; - int time = 0; - int ret = OK; + int time = 0; + int ret = OK; + UNUSED(time); DEBUGASSERT(envp); PRINTFV("foc_float_thr, id=%d\n", envp->id);