From 5523c39bf65e300dd70b7838f325d4bb3f8efa57 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sun, 6 Apr 2014 17:44:27 +0200 Subject: [PATCH] vertex/line: fix compilation warning. --- kivy/graphics/vertex_instructions_line.pxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivy/graphics/vertex_instructions_line.pxi b/kivy/graphics/vertex_instructions_line.pxi index 47160ac0e..abb126103 100644 --- a/kivy/graphics/vertex_instructions_line.pxi +++ b/kivy/graphics/vertex_instructions_line.pxi @@ -648,7 +648,7 @@ cdef class Line(VertexInstruction): self._bymax = vertices[i].y self.batch.set_data(vertices, vertices_count, - indices, indices_count) + indices, indices_count) free(vertices) free(indices) @@ -1073,7 +1073,7 @@ cdef class Line(VertexInstruction): resolution = self._mode_args[5] elif l == 8: c1, c2, c3, c4 = self._mode_args[4:] - elif l == 9: + else: # l == 9, but else make the compiler happy about uninitialization c1, c2, c3, c4 = self._mode_args[4:8] resolution = self._mode_args[8]