fix -Wunused-but-set-variable
fix -Wunused-variable
remove -Wno-stack-protector
Merge pull request #57 from toxeus/fixUnusedVariable

Fix unused variable warnings