Setting -Werror on travis and fixing unused variable warning.