From e01bee5bccf6bf7196a444bbbd7b15e2a6a3a82d Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 10 Oct 2022 18:21:16 +0200 Subject: [PATCH] kernel: idle: fix -Werror=misleading-indentation Warnings being treated as errors when building : Error this 'for' clause does not guard... [-Werror=misleading-indentation] Signed-off-by: Francois Ramu --- kernel/idle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/idle.c b/kernel/idle.c index b5e9fa7d514..75cf75242d7 100644 --- a/kernel/idle.c +++ b/kernel/idle.c @@ -47,10 +47,10 @@ void idle(void *unused1, void *unused2, void *unused3) * lock and/or timer driver. This is intended as a * fallback configuration for new platform bringup. */ - if (IS_ENABLED(CONFIG_SMP) && - !IS_ENABLED(CONFIG_SCHED_IPI_SUPPORTED)) { - for (volatile int i = 0; i < 100000; i++) - ; + if (IS_ENABLED(CONFIG_SMP) && !IS_ENABLED(CONFIG_SCHED_IPI_SUPPORTED)) { + for (volatile int i = 0; i < 100000; i++) { + /* Empty loop */ + } z_swap_unlocked(); }