From 2827bddd85edd37a9af6fb4e47882334f007e59b Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 1 Jul 2015 14:08:08 -0700 Subject: Cherry-pick to XFA: Fix some clang warnings with -Wmissing-braces in pdfium. Clang warns if there are missing braces around a subobject initializer. The most common idiom that triggers this is: STRUCT s = {0}; if the first field of STRUCT is itself a struct. This can be more simply written as: STRUCT s = {}; which also prevents the warning from firing. Other instances of the warning have been fixed by adding braces where appropriate. R=brucedawson@chromium.org Review URL: https://codereview.chromium.org/1213523004. --- third_party/third_party.gyp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'third_party/third_party.gyp') diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp index ff657719f6..98ec814b9d 100644 --- a/third_party/third_party.gyp +++ b/third_party/third_party.gyp @@ -137,6 +137,11 @@ ], }], ], + 'variables': { + 'clang_warning_flags': [ + '-Wno-missing-braces', + ], + }, }, { 'target_name': 'fx_libjpeg', -- cgit v1.2.3