Updated warning message. Shorter and simpler
This commit is contained in:
parent
c3474c4ef9
commit
6c585cf11d
2
main.cpp
2
main.cpp
|
@ -1098,7 +1098,7 @@ void WarningRedundantCode()
|
|||
if (err)
|
||||
{
|
||||
std::ostringstream ostr;
|
||||
ostr << FileLine(tok) << ": Redundant condition. It is allowed to deallocate a NULL pointer, so it is safe to remove the 'if(..)'.";
|
||||
ostr << FileLine(tok) << ": Redundant condition. It is safe to deallocate a NULL pointer";
|
||||
ReportErr(ostr.str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue