Print warnings immediately

Previously, it would wait until processing all files before printing
anything. It would also previously print out the warnings in some crazy
mixed up order.