Skip to content

Commit 5cf923d

Browse files
committed
Don't run SymbolDatabase::validate on --debug. Replace some NULL by nullptr
1 parent ba0859e commit 5cf923d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

cli/threadexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ unsigned int ThreadExecutor::check()
365365
InitializeCriticalSection(&_reportSync);
366366

367367
for (unsigned int i = 0; i < _settings._jobs; ++i) {
368-
threadHandles[i] = (HANDLE)_beginthreadex(NULL, 0, threadProc, this, 0, NULL);
368+
threadHandles[i] = (HANDLE)_beginthreadex(nullptr, 0, threadProc, this, 0, nullptr);
369369
if (!threadHandles[i]) {
370370
std::cerr << "#### .\nThreadExecutor::check error, errno :" << errno << std::endl;
371371
exit(EXIT_FAILURE);

lib/tokenize.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9840,8 +9840,9 @@ void Tokenizer::createSymbolDatabase()
98409840
{
98419841
if (!_symbolDatabase)
98429842
_symbolDatabase = new SymbolDatabase(this, _settings, _errorLogger);
9843-
if (_settings->debug)
9844-
_symbolDatabase->validate();
9843+
if (_settings->debug) {
9844+
//_symbolDatabase->validate();
9845+
}
98459846
}
98469847

98479848
void Tokenizer::deleteSymbolDatabase()

0 commit comments

Comments
 (0)