Keil MDK warning while loop has empty body
现象ARM MDK V6的编译器在对类似如下语句 while(Spi_GetStatus(M0P_SPI0, SpiTxe) == FALSE); //等待发送缓冲器空 Spi_SendData(M0P_SPI0, tx_dat);会有warning提示:…/drv/SI24R1.c(52): warning: while loop has empty body [-Wempty-body]…/drv/SI24R1.c(52): note: put the semicolon on
原创
2020-11-15 11:31:23 ·
8062 阅读 ·
3 评论