PC Lint 信息 825 抑制无法使用 fallthrough 注释

PC Lint info 825 suppress is not working using fallthrough comment

即使我使用的是 /* fallthrough */ 注释,我也有一个代码正在获取 PC Lint info 825。如果我的用法有误请告诉我。

示例代码:

case 1:

case 2:

case 3:
{
    statement;
}

/* fallthrough */

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

default:
break;

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

//lint -fallthrough

详情见the huge text file