Fixed Bug #7159

http://hercules.ws/board/tracker/issue-7159-unused-variable-warning/
Signed-off-by: shennetsind <ind@henn.et>