56e41d220bdf360528aeff4beae383f62060bc6e
[platform/framework/web/crosswalk.git] / src / xwalk / packaging / Blink-Add-GCC-flag-Wno-narrowing-fix-64bits-build.patch
1 From: Yannick GICQUEL <yannick.gicquel@open.eurogiciel.org>
2 Date: Wed, 29 Jan 2014 11:20:11 +0100
3
4 Build is broken on x86_64 due to narrowing warning treated as an error.
5 This patch is a workaround to avoid this warning. Correction should be
6 placed in generated code V8DOMConfiguration::ConstantConfiguration::value
7
8 BUG=https://crosswalk-project.org/jira/browse/XWALK-917
9
10 Signed-off-by: Yannick GICQUEL <yannick.gicquel@open.eurogiciel.org>
11 --- src/third_party/WebKit/Source/config.gyp
12 +++ src/third_party/WebKit/Source/config.gyp
13 @@ -84,6 +84,11 @@
14            # nullptr) conflict with upcoming c++0x types.
15            'cflags_cc': ['-Wno-c++0x-compat'],
16          }],
17 +        ['gcc_version>=47', {
18 +          # Disable warnings about narrowing conversion due to C++11 std.
19 +          # Jira: https://crosswalk-project.org/jira/browse/XWALK-917
20 +          'cflags_cc': ['-Wno-narrowing'],
21 +        }],
22          ['OS=="linux" and target_arch=="arm"', {
23            # Due to a bug in gcc arm, we get warnings about uninitialized
24            # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879.
25