From a4288dd6dc59e34d2625ceff1cd72875b0c9b14f Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Thu, 21 Jan 2016 13:07:35 +0100 Subject: [PATCH] Disable sometimes-uninitialized Clang warning for iOS This works around a compile problem with iossim.mm. BUG=libyuv:548 TBR=fbarchard@chromium.org Review URL: https://codereview.chromium.org/1611123004 . --- libyuv_test.gyp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libyuv_test.gyp b/libyuv_test.gyp index 5358ffd76..201c96bee 100644 --- a/libyuv_test.gyp +++ b/libyuv_test.gyp @@ -76,7 +76,15 @@ 'xcode_settings': { 'DEBUGGING_SYMBOLS': 'YES', 'DEBUG_INFORMATION_FORMAT' : 'dwarf-with-dsym', + # Work around compile issue with isosim.mm, see + # https://code.google.com/p/libyuv/issues/detail?id=548 for details. + 'WARNING_CFLAGS': [ + '-Wno-sometimes-uninitialized', + ], }, + 'cflags': [ + '-Wno-sometimes-uninitialized', + ], }], [ 'OS != "ios" and libyuv_disable_jpeg != 1', { 'defines': [