You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the method trace_exception a (re) throw correctly occurs. Cppcheck tries to find 'empty' throws in a non-rethrown scenario and warns about them (aka this equals to std::terminate).
It gives a false positive on the line in 'trace_exception'.
The solution is very trivial:
change the line into:
throw; // cppcheck-suppress rethrowNoCurrentException
The text was updated successfully, but these errors were encountered:
Is there any other way of suppressing this than to clutter the sources?
I feel very uneasy about this kind of "fix", because there are many static checkers, and they all have their false positives and their ways of suppressing them, and I fear where this may lead.
in the method trace_exception a (re) throw correctly occurs. Cppcheck tries to find 'empty' throws in a non-rethrown scenario and warns about them (aka this equals to std::terminate).
It gives a false positive on the line in 'trace_exception'.
The solution is very trivial:
change the line into:
throw; // cppcheck-suppress rethrowNoCurrentException
The text was updated successfully, but these errors were encountered: