Remove warning: unused variable.
Remove warning: initialize base class in constructor.
Remove warning: condition with empty body.