This function makes it easy to turn on `-Werror` in the correct manner to mimic how CI turns on -Werror.