Remove unneeded warning messages