the option -Werror makes warnings into errors.. check to see if the makefile your program is using is using this option.