Fix some clang warnings with -Wmissing-braces in pdfium.
authorNico Weber <thakis@chromium.org>
Wed, 1 Jul 2015 21:08:08 +0000 (14:08 -0700)
committerNico Weber <thakis@chromium.org>
Wed, 1 Jul 2015 21:08:08 +0000 (14:08 -0700)
commitae195a4242a81899708eb58e109fd0d1a9cbbeeb
treeec71759983cc216df84a72695ea1c748516c823e
parentac9e977a913d134c5f536eeef60a2de6941f2863
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.
core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp
core/src/fxcrt/fxcrt_windows.cpp
fpdfsdk/src/fpdf_flatten.cpp
fpdfsdk/src/javascript/util.cpp
samples/pdfium_test.cc
third_party/BUILD.gn
third_party/third_party.gyp