diff options
author | 2014-06-17 11:47:40 -0700 | |
---|---|---|
committer | 2014-06-17 11:47:40 -0700 | |
commit | 24ad0965404c0bc978f27db27e2f00ebac95239c (patch) | |
tree | d56fef991fbf9a02dfc38b91418eb6004a8079e8 /gyp | |
parent | b5c281e1e06af3be804309877de1dac6145686b9 (diff) |
Silence warnings about using offsetof on near-POD structs.
This is coming up with SkMatrix, which is POD according to GCC >= 4.6
but not before (specifically, not at GCC 4.4).
BUG=skia:
R=reed@google.com, mtklein@google.com, bungeman@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/339193002
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/common_conditions.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index d1b7144b22..96c889ffc6 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -175,6 +175,7 @@ 'cflags_cc': [ '-fno-rtti', '-Wnon-virtual-dtor', + '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what is POD. ], 'conditions': [ [ 'skia_android_framework==0', { |