add -Werror flag
fix unused variable warning
do not use special warnings for tests
cast const away for in-macro assignment
Merge pull request #408 from cgzones/werror

adding -Werror flag