[tizen] Disable a cflag '-Wno-format' for global option change
authorYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 22 Feb 2016 04:09:59 +0000 (13:09 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
This patch (http://165.213.202.130/gerrit/#/c/109103/) was cherry-picked
from the m47/beta.

The build option '-Wall', '-Wformat, and '-Wformat-security' have been used as
tizen global options. Recently, tizen platform team decided to remove a option
'-Wformat' which is already included in '-Wall'.

Due to the chnage, following build break happens from chromium-efl build.
>> cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]

The build break is caused by a cflag '-Wno-format', defined in 'build/common.gypi'.
So, this CL tries to ignore the cflag for tizen port.

Bug: http://10.113.136.204/jira/i#browse/TWF-338

Change-Id: I2e381eef38083bd50f67a24fcd3439650b95fccd
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
tizen_src/supplement.gypi

index 61341ca..b8940a4 100644 (file)
           'OS_TIZEN=1',
           'WTF_OS_TIZEN=1',
         ],
+        # Tizen build system has a global option '-Wformat-security'.
+        # So, a cflag '-Wno-format' from chromium-efl needs to be ignored.
+        # Otherwise, following error will happen.
+        # error: -Wformat-security ignored without -Wformat [-Werror=format-security]
+        'cflags!': [
+          '-Wno-format',
+        ],
         'conditions': [
           ['chromium_efl_tizen_version=="3.0"', {
             'defines': [