Added -Wall -ansi -pedantic and fixed an issue this picked up.