Fixed Bug #7051

http://hercules.ws/board/tracker/issue-7051-warning-when-compiling/
Signed-off-by: shennetsind <ind@henn.et>