Uninitialized variables: disable subfunction analysis if multiple threads are used
This commit is contained in:
parent
0638bc2112
commit
1aac8f3e52
|
@ -1959,7 +1959,10 @@ void CheckOther::executionPaths()
|
|||
|
||||
// check if variable is accessed uninitialized..
|
||||
{
|
||||
CheckUninitVar::analyseFunctions(_tokenizer->tokens(), CheckUninitVar::uvarFunctions);
|
||||
// no writing if multiple threads are used (TODO: thread safe analysis?)
|
||||
if (_settings->_jobs == 1)
|
||||
CheckUninitVar::analyseFunctions(_tokenizer->tokens(), CheckUninitVar::uvarFunctions);
|
||||
|
||||
CheckUninitVar c(this);
|
||||
checkExecutionPaths(_tokenizer->tokens(), &c);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue