Adjust the CF_RAISE_ERROR_ON_WARNINGS flag to work correctly.

- It now only panics when there's actually warnings, instead of all the
  time.

[#76833522]