I've started analyzing issues found by Coverity, here is the first patch.
I plan not to close this ticket until obvious issues are not fixed.
For the first patch: removed 2 unsused variables, removed useless checks (category is unsigned int so there is no need to check category>=MS_INCREASE_MIN in assert, please fix me if I'm wrong), commented out dead code. regarding dead code, I'm not sure what behaviour is intended, probably it's needed to comment "break;" statement.
Author: kroartem
I've started analyzing issues found by Coverity, here is the first patch. I plan not to close this ticket until obvious issues are not fixed. For the first patch: removed 2 unsused variables, removed useless checks (category is unsigned int so there is no need to check category>=MS_INCREASE_MIN in assert, please fix me if I'm wrong), commented out dead code. regarding dead code, I'm not sure what behaviour is intended, probably it's needed to comment "break;" statement.