How do I turn off a static code analysis warning on a line by line warning in CDT (C code)?

后端 未结 7 1189
一向
一向 2021-01-17 13:19

We have a project using CDT in Eclipse. It\'s an old project that we just imported into Eclipse, and I want to ensure we start using static code analysis to find any weirdn

7条回答
  •  感动是毒
    2021-01-17 13:46

    Solved it.

    I just added the text from the warning that I wanted to ignore to immediately above where the break would be.

    Like this:

          case enChC:
            ++nChannel;
            //No break at the end of case
          case enChD:
            ++nChannel;
    

提交回复
热议问题