当前位置:   article > 正文

keil问题:..\..\UI\ui.selfcheck.c(281): error: #116: a break statement may only be used within a loop_a break statement may only be used within a loop o

a break statement may only be used within a loop or switch

问题:

                      case 2:
..\..\UI\ui.selfcheck.c(281): error:  #116: a break statement may only be used within a loop or switch
                      break;
..\..\UI\ui.selfcheck.c(282): error:  #121: a case label may only be used within a switch
                      case 3:
..\..\UI\ui.selfcheck.c(288): error:  #116: a break statement may only be used within a loop or switch
                      break;
..\..\UI\ui.selfcheck.c(289): error:  #121: a case label may only be used within a switch
                      case 4:
..\..\UI\ui.selfcheck.c(292): error:  #116: a break statement may only be used within a loop or switch
                      break;
..\..\UI\ui.selfcheck.c(293): error:  #121: a case label may only be used within a switch
                      case 5:
..\..\UI\ui.selfcheck.c(300): error:  #116: a break statement may only be used within a loop or switch
                      break;
..\..\UI\ui.selfcheck.c(301): error:  #122: a default label may only be used within a switch
                      default:break;
..\..\UI\ui.selfcheck.c(301): error:  #116: a break statement may only be used within a loop or switch
                      default:break;
..\..\UI\ui.selfcheck.c(187): warning:  #550-D: variable "DataKEY"  was set but never used
      uint16_t DataKEY;
..\..\UI\ui.selfcheck.c(303): error:  #169: expected a declaration
              }
..\..\UI\ui.selfcheck.c(305): error:  #169: expected a declaration
          default:
..\..\UI\ui.selfcheck.c(307): error:  #169: expected a declaration

原因:

我屏蔽代码的时候,不小心多屏蔽了一个括号

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/909178
推荐阅读
  

闽ICP备14008679号