Unused variable tmp
Removed unused variables
Fixed gen-build.php
Merge pull request #801 from sjinks/compiler-warnings

Fix compiler warnings