Add -Wno-invalid-offsetof to Mac and iOS builds too.
authormtklein <mtklein@chromium.org>
Tue, 7 Oct 2014 16:54:18 +0000 (09:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 16:54:18 +0000 (09:54 -0700)
We use this on Linux already, but for whatever reason wasn't a problem on iOS
until using it in SkPaint.  Mac 10.7 and 10.8 are showing this warning too,
but seems -Werror is not enabled.

CQ_EXTRA_TRYBOTS=tryserver.skia:Build-Mac10.7-Clang-Arm7-Release-iOS-Trybot

BUG=skia:

Review URL: https://codereview.chromium.org/637593002

gyp/common_conditions.gypi

index ca5c98c..4d06ffc 100644 (file)
           'WARNING_CFLAGS': [
             '-Wall',
             '-Wextra',
+            '-Wno-invalid-offsetof',
             '-Wno-unused-parameter',
             '-Wno-uninitialized',  # Disabled because we think GCC 4.2 is bad at this.
           ],
           'SDKROOT': 'iphoneos',
           'TARGETED_DEVICE_FAMILY': '1,2',
           'OTHER_CPLUSPLUSFLAGS': [
+            '-Wno-invalid-offsetof',
             '-fvisibility=hidden',
             '-fvisibility-inlines-hidden',
           ],