This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我的 PC Lint V9.00k 在一个非常简单的情况下保持沉默,即使在 -w3 上我也会收到警告。有谁知道是否有一些设置可以让 Lint 检查这种情况?
int* fp() { return 0; }
void f()
{
int* p = fp();
*p = 2; // I would expect something like "Issue 613: (Warning -- Possible use of null pointer..." here
}