Added -Wall and fixed all the warnings