Fix warning and turn on -Werror so future warnings are caught