#5751 - Warning unhandledExceptionSpecification is issued even if warnings are not enabled
This commit is contained in:
parent
e48550d8d7
commit
a25cb53c19
|
@ -261,6 +261,9 @@ void CheckExceptionSafety::nothrowThrows()
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
void CheckExceptionSafety::unhandledExceptionSpecification()
|
void CheckExceptionSafety::unhandledExceptionSpecification()
|
||||||
{
|
{
|
||||||
|
if (!_settings->isEnabled("warning"))
|
||||||
|
return;
|
||||||
|
|
||||||
const SymbolDatabase* const symbolDatabase = _tokenizer->getSymbolDatabase();
|
const SymbolDatabase* const symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||||
|
|
||||||
const std::size_t functions = symbolDatabase->functionScopes.size();
|
const std::size_t functions = symbolDatabase->functionScopes.size();
|
||||||
|
|
Loading…
Reference in New Issue