#5751 - Warning unhandledExceptionSpecification is issued even if warnings are not enabled

This commit is contained in:
Alexander Mai 2014-04-30 19:33:17 +02:00
parent e48550d8d7
commit a25cb53c19
1 changed files with 3 additions and 0 deletions

View File

@ -261,6 +261,9 @@ void CheckExceptionSafety::nothrowThrows()
//--------------------------------------------------------------------------
void CheckExceptionSafety::unhandledExceptionSpecification()
{
if (!_settings->isEnabled("warning"))
return;
const SymbolDatabase* const symbolDatabase = _tokenizer->getSymbolDatabase();
const std::size_t functions = symbolDatabase->functionScopes.size();