From 5df0e4dbfd763fc2f66f22ad031c8cdf68d0bf08 Mon Sep 17 00:00:00 2001 From: Kexuan Sun Date: Sun, 1 Oct 2017 15:49:27 -0700 Subject: [PATCH 1/2] Remove four unused variables in src/_path.h. --- src/_path.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_path.h b/src/_path.h index 7a43dd2e17a2..a414ff197f9c 100644 --- a/src/_path.h +++ b/src/_path.h @@ -904,8 +904,6 @@ bool path_intersects_rectangle(PathIterator &path, double cx = (rect_x1 + rect_x2) * 0.5, cy = (rect_y1 + rect_y2) * 0.5; double w = fabs(rect_x1 - rect_x2), h = fabs(rect_y1 - rect_y2); - double xmin = std::min(rect_x1, rect_x2), xmax = std::max(rect_x1, rect_x2); - double ymin = std::min(rect_x1, rect_x2), ymax = std::max(rect_x1, rect_x2); double x1, y1, x2, y2; From 7d2a06c104a6fd558f70c6be1208053572cec30b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 3 Oct 2017 00:17:33 -0400 Subject: [PATCH 2/2] Fix warnings about member initialization order. There's no real reason for any particular order, so we can just switch it up to prevent the warning. --- src/path_converters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path_converters.h b/src/path_converters.h index b098959947a1..db40c18d5ab5 100644 --- a/src/path_converters.h +++ b/src/path_converters.h @@ -841,8 +841,8 @@ class PathSimplifier : protected EmbeddedQueue<9> bool m_moveto; bool m_after_moveto; - double m_lastx, m_lasty; bool m_clipped; + double m_lastx, m_lasty; double m_origdx; double m_origdy;