Use explicit -warn-error flag for 4.00.1 compatibility.