using gcc -Wall to detect errors.