Fixed issue #2367
Minor: fix warnings
Merge branch 'orientdb-2367' into 1.7.1