[PATCH] cliptest: Don't underrun the vertex array of empty polygons.

2014-08-19 Thread Ondřej Majerech
This silences the following warning: clients/cliptest.c:277:22: warning: array subscript is below array bounds [-Warray-bounds] ctx-prev.x = src-x[src-n - 1]; Signed-off-by: Ondřej Majerech oxyd.o...@gmail.com --- clients/cliptest.c | 12 1 file changed, 12 insertions(+)

Re: [PATCH] cliptest: Don't underrun the vertex array of empty polygons.

2014-08-19 Thread Pekka Paalanen
On Tue, 19 Aug 2014 13:10:55 +0200 Ondřej Majerech oxyd.o...@gmail.com wrote: This silences the following warning: clients/cliptest.c:277:22: warning: array subscript is below array bounds [-Warray-bounds] ctx-prev.x = src-x[src-n - 1]; Hi, seems like I would need something more

Re: [PATCH] cliptest: Don't underrun the vertex array of empty polygons.

2014-08-19 Thread Ondrej Majerech
On 19 August 2014 14:16, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 19 Aug 2014 13:10:55 +0200 Ondřej Majerech oxyd.o...@gmail.com wrote: This silences the following warning: clients/cliptest.c:277:22: warning: array subscript is below array bounds [-Warray-bounds]