From 01e624fb699af3a8ee2f81620d59d366dac18f29 Mon Sep 17 00:00:00 2001 From: weili Date: Fri, 13 May 2016 16:59:50 -0700 Subject: 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 --- third_party/agg23/agg_path_storage.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'third_party/agg23/agg_path_storage.h') diff --git a/third_party/agg23/agg_path_storage.h b/third_party/agg23/agg_path_storage.h index dc13851d09..7f21bacd09 100644 --- a/third_party/agg23/agg_path_storage.h +++ b/third_party/agg23/agg_path_storage.h @@ -38,9 +38,9 @@ public: } unsigned vertex(FX_FLOAT* x, FX_FLOAT* y) { - return (m_vertex_idx < m_path->total_vertices()) ? - m_path->vertex(m_vertex_idx++, x, y) : - path_cmd_stop; + return (m_vertex_idx < m_path->total_vertices()) + ? m_path->vertex(m_vertex_idx++, x, y) + : static_cast(path_cmd_stop); } private: const path_storage* m_path; -- cgit v1.2.3