fixup! Merge efl-port POC code into tizen_src
authorPiotr Tworek <p.tworek@samsung.com>
Wed, 11 Mar 2015 14:18:04 +0000 (15:18 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Wno-extern-c-compat flag is only used by clang, gcc does not care about
it and actually complains this flag does not exist.

Change-Id: Ib4d46a0f4a9a1e169d5503364e4999abc23cb194
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
tizen_src/build/system.gyp

index 2e00a25..67c8bfb 100644 (file)
@@ -98,8 +98,6 @@
       'direct_dependent_settings': {
         'cflags': [
           '<!@(<(pkg-config) --cflags elementary)',
-           # Fix: elm_prefs_common.h:27:9: warning: empty struct has size 0 in C, size 1 in C++
-         '-Wno-extern-c-compat',
         ],
       },
       'link_settings': {
           '<!@(<(pkg-config) --libs-only-l elementary)',
         ],
       },
+      'conditions': [
+         ['clang==1', {
+            'direct_dependent_settings': {
+              'cflags': [
+                 # Fix: elm_prefs_common.h:27:9: warning: empty struct has size 0 in C, size 1 in C++
+                 '-Wno-extern-c-compat',
+              ],
+            },
+         }],
+      ],
     }, # elementary
     {
       'target_name': 'edje',