Put the compiler to Wall and fixed resulting warnings.