SRC\file.c:785: error: [#116] a break statement may only be used within a loop or switch Reason: Using break outside of loop, or where no loop exists. Can be a problem of 1. where switch was exchanged with if 2. The number of opening and closing brackets before the error doesn't match. I had this problem when introduced IF condition inside one of the case elements prior the error line. This IF had less brackets, than needed, which resulted in wrong switch termination by compiler.
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |