IAR Error[Pe121]: a case label may only be used within a switch

Q : When using switch-case statement, the case content is enclosed in {}, and an error is reported.

A: The next-level content of switch should also be covered by {}, and all case content should be covered by {}

S: mark {} below the switch

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324692601&siteId=291194637