Fix formatting. Remoev warning output if there is no warning