Setting -Werror on travis and fixing unused variable warning.
Fixing warnings about unused variable.