Main returns 0 or 1 depending on warnings number