issue #5429: treat warning as eror on iOS
issue #5429: treat warning as error on Mac
Merge pull request #6944 from minggo/treat-warning-as-error

Treat warning as error on iOS and Mac