From c629fd1b00b20452bd7861a8d9e7e7f9c4e95613 Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 24 Oct 2022 17:36:17 +0800 Subject: [PATCH] arm/phy62xx: fix compile warning ('while' clause does not guard) chip/flash.c: In function '_spif_read_status_reg_x': chip/flash.c:46:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 46 | while ((AP_SPIF->fcmd &0x02)==0x02); \ | ^~~~~ chip/flash.c:128:3: note: in expansion of macro 'SPIF_STATUS_WAIT_IDLE' 128 | SPIF_STATUS_WAIT_IDLE(SPIF_WAIT_IDLE_CYC); | ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: chao an --- arch/arm/src/phy62xx/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/phy62xx/flash.c b/arch/arm/src/phy62xx/flash.c index cd3f853478..beb13196d8 100644 --- a/arch/arm/src/phy62xx/flash.c +++ b/arch/arm/src/phy62xx/flash.c @@ -43,7 +43,7 @@ #define SPIF_STATUS_WAIT_IDLE(n) \ do \ { \ - while ((AP_SPIF->fcmd &0x02)==0x02); \ + while ((AP_SPIF->fcmd &0x02)==0x02) \ { \ volatile int delay_cycle = n; \ while (delay_cycle--){;} \