Remove unnecessary diagnostic pragmas.