Don't run SymbolDatabase::validate on --debug. Replace some NULL by nullptr
This commit is contained in:
parent
ba0859e838
commit
5cf923d091
|
@ -365,7 +365,7 @@ unsigned int ThreadExecutor::check()
|
||||||
InitializeCriticalSection(&_reportSync);
|
InitializeCriticalSection(&_reportSync);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < _settings._jobs; ++i) {
|
for (unsigned int i = 0; i < _settings._jobs; ++i) {
|
||||||
threadHandles[i] = (HANDLE)_beginthreadex(NULL, 0, threadProc, this, 0, NULL);
|
threadHandles[i] = (HANDLE)_beginthreadex(nullptr, 0, threadProc, this, 0, nullptr);
|
||||||
if (!threadHandles[i]) {
|
if (!threadHandles[i]) {
|
||||||
std::cerr << "#### .\nThreadExecutor::check error, errno :" << errno << std::endl;
|
std::cerr << "#### .\nThreadExecutor::check error, errno :" << errno << std::endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
|
@ -9840,8 +9840,9 @@ void Tokenizer::createSymbolDatabase()
|
||||||
{
|
{
|
||||||
if (!_symbolDatabase)
|
if (!_symbolDatabase)
|
||||||
_symbolDatabase = new SymbolDatabase(this, _settings, _errorLogger);
|
_symbolDatabase = new SymbolDatabase(this, _settings, _errorLogger);
|
||||||
if (_settings->debug)
|
if (_settings->debug) {
|
||||||
_symbolDatabase->validate();
|
//_symbolDatabase->validate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tokenizer::deleteSymbolDatabase()
|
void Tokenizer::deleteSymbolDatabase()
|
||||||
|
|
Loading…
Reference in New Issue