diff options
author | Nico Weber <thakis@chromium.org> | 2015-07-01 14:08:08 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-07-01 14:11:22 -0700 |
commit | 2827bddd85edd37a9af6fb4e47882334f007e59b (patch) | |
tree | fa1bac0681681b5dc31997a23a15d01ad377b040 /fpdfsdk/src/fpdf_flatten.cpp | |
parent | 606346f584700bdae0741066f2e6d2481744032c (diff) | |
download | pdfium-2827bddd85edd37a9af6fb4e47882334f007e59b.tar.xz |
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.
Diffstat (limited to 'fpdfsdk/src/fpdf_flatten.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_flatten.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdf_flatten.cpp b/fpdfsdk/src/fpdf_flatten.cpp index b9edef9941..9ef6117fe2 100644 --- a/fpdfsdk/src/fpdf_flatten.cpp +++ b/fpdfsdk/src/fpdf_flatten.cpp @@ -419,7 +419,7 @@ DLLEXPORT int STDCALL FPDFPage_Flatten( FPDF_PAGE page, int nFlag) { for (int iKey = 0; /*iKey < 100*/; iKey++) { - char sExtend[5] = {0}; + char sExtend[5] = {}; FXSYS_itoa(iKey, sExtend, 10); key = CFX_ByteString("FFT") + CFX_ByteString(sExtend); |