From d20ef12b15a1e02ee9b4e322a79e67e5335cf238 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Sun, 23 Oct 2022 00:26:43 +0200 Subject: [PATCH] put cairo variable declaration inside #if HAS_CAIRO to avoid compiler warnings. --- src/select.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/select.c b/src/select.c index 03bd0673..87a64acc 100644 --- a/src/select.c +++ b/src/select.c @@ -193,8 +193,11 @@ void symbol_bbox(int i, double *x1,double *y1, double *x2, double *y2) static void del_rect_line_arc_poly(void) { xRect tmp; - int c, j, i, k, itmp, customfont; + int c, j, i, k, itmp; double dtmp; + #if HAS_CAIRO==1 + int customfont; + #endif for(k=0;klastsel;k++) {