Add missed require making `enable_warnings` available
Merge pull request #12543 from route/missed_require

Add missed require making `enable_warnings` available