PC Lint info 825抑制无法使用fallthrough评论

时间:2017-12-13 12:22:46

标签: c pc-lint

即使我正在使用PC Lint info 825评论,我也会收到/* fallthrough */的代码。告诉我我的用法是否有误。

示例代码:

case 1:

case 2:

case 3:
{
    statement;
}

/* fallthrough */

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

default:
break;

1 个答案:

答案 0 :(得分:1)

这是错误的评论内容。尝试:

//lint -fallthrough

有关详细信息,请参阅the huge text file

相关问题