Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isDisabled() const {
- return kKeep_StencilOp == fFrontPassOp &&
- kKeep_StencilOp == fBackPassOp &&
- kKeep_StencilOp == fFrontFailOp &&
- kKeep_StencilOp == fFrontFailOp &&
- kAlways_StencilFunc == fFrontFunc &&
- kAlways_StencilFunc == fBackFunc;
- }
- Here we seem to have several errors at once. Besides the repeating condition, && and || may be mixed up.
- This suspicious code was found in Skia project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions 'kKeep_StencilOp == fFrontFailOp' to the left and to the right of the '&&' operator. skia grstencil.h 159
- 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