Fix commit in the presence of warnings and remove a print statement