warning as error fix