diff options
author | weili <weili@chromium.org> | 2016-05-13 16:59:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-13 16:59:50 -0700 |
commit | 01e624fb699af3a8ee2f81620d59d366dac18f29 (patch) | |
tree | 6e5e4313d5fd11ec7c4d249a08d61e83e56a2a74 /fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp | |
parent | 8adc153ea6fe778d19dc33cd2c5b87aed312b29b (diff) | |
download | pdfium-01e624fb699af3a8ee2f81620d59d366dac18f29.tar.xz |
Fix GCC warnings to be ready for GCC standalone build
ChromeOS still compile pdfium with GCC. Fix the code to be ready
to have workable GCC standalone build. The build file change will
be in a follow-up CL.
One warning is about maybe using uninitialized variable, the other is
about enum and non-enum in a conditional statement.
Review-Url: https://codereview.chromium.org/1981593002
Diffstat (limited to 'fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp index 72f67dd271..4b44669c0d 100644 --- a/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp +++ b/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp @@ -354,7 +354,7 @@ FX_BOOL CPDFXFA_Document::GetPopupPos(CXFA_FFWidget* hWidget, CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); if (!pEnv) return FALSE; - FS_RECTF pageViewRect; + FS_RECTF pageViewRect = {0.0f, 0.0f, 0.0f, 0.0f}; pEnv->FFI_GetPageViewRect(pPage, pageViewRect); CFX_FloatRect rcAnchor; |