vamshi
vamshi

Reputation: 233

PC Lint info 825 suppress is not working using fallthrough comment

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;

Upvotes: 0

Views: 1192

Answers (1)

unwind
unwind

Reputation: 400039

That's the wrong comment content. Try:

//lint -fallthrough

See the huge text file for details.

Upvotes: 1

Related Questions