-1

I have a code where am getting PC Lint info 825, even though I'm using /* fallthrough */ comment. Tell me if any of my usage is wrong.

Example code:

case 1:

case 2:

case 3:
{
    statement;
}

/* fallthrough */

case 4:
{
statement 1;
statement 2;
break;
}

default:
break;
underscore_d
  • 6,309
  • 3
  • 38
  • 64
vamshi
  • 183
  • 1
  • 1
  • 8

1 Answers1

1

That's the wrong comment content. Try:

//lint -fallthrough

See the huge text file for details.

unwind
  • 391,730
  • 64
  • 469
  • 606