By ignoring some warnings. Those warnings should still be ON in other builds
(cherry picked from commit b3c32cee)