Permalink
Browse files

Add -Wno-missing-field-initializers GCC flag

  • Loading branch information...
1 parent 4cb0824 commit 24d6b3cdff21dc8150d7e3e945085b3bc4c6e15b @kevinsawicki kevinsawicki committed Mar 20, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 binding.gyp
View
@@ -44,6 +44,18 @@
],
'include_dirs': [
'deps/libgit2/include'
+ ],
+ 'conditions': [
+ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ 'cflags': [ '-Wno-missing-field-initializers' ]
+ }],
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'WARNING_CFLAGS+': [
+ '-Wno-missing-field-initializers'
+ ]
+ }
+ }]
]
}
]

0 comments on commit 24d6b3c

Please sign in to comment.