put cairo variable declaration inside #if HAS_CAIRO to avoid compiler warnings.

This commit is contained in:
Stefan Frederik 2022-10-23 00:26:43 +02:00
parent ff55dc9c14
commit d20ef12b15
1 changed files with 4 additions and 1 deletions

View File

@ -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;k<xctx->lastsel;k++)
{