compile main program with most of warning enabled