Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ExprParser::replaceBinaryOperands()
- {
- ....
- if (t1==t2)
- mOperands.push_back (t1);
- else if (t1=='f' || t2=='f')
- mOperands.push_back ('f');
- else
- std::logic_error ("failed to determine result operand type");
- }
- This suspicious code was found in OpenMW project by PVS-Studio static code analyzer.
- Warning message is:
- V596 The object was created but it is not being used. The 'throw' keyword could be missing: throw logic_error(FOO); components exprparser.cpp 101
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement