]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Suppress compiler warnings of breakpad.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 26 Feb 2014 07:43:22 +0000 (15:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 26 Feb 2014 07:43:22 +0000 (15:43 +0800)
common.gypi

index a3f5d6132ac604c3ee4b2aa05ae247180eff272b..984c1dd86edc8f901776b9ac9ba7682b651d8283 100644 (file)
         ],
       }],
       ['_target_name.startswith("breakpad") or _target_name in ["crash_report_sender", "dump_syms"]', {
-        'xcode_settings': {
-          'WARNING_CFLAGS': [
-            '-Wno-deprecated-declarations',
-            '-Wno-unused-private-field',
-            '-Wno-unused-function',
-          ],
-        },
+        'conditions': [
+          ['OS=="mac"', {
+            'xcode_settings': {
+              'WARNING_CFLAGS': [
+                '-Wno-deprecated-declarations',
+                '-Wno-unused-private-field',
+                '-Wno-unused-function',
+              ],
+            },
+          }],  # OS=="mac"
+          ['OS=="linux"', {
+            'cflags': [
+              '-Wno-empty-body',
+            ],
+          }],  # OS=="linux"
+        ],
       }],
     ],
     'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.