From 70be7508ce9f4187009a42aa99e82dd3b629d859 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 3 May 2020 00:49:53 +0200 Subject: [PATCH] Prevent 'unused variable' compiler message --- src/frontend/plotting/x11.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index fab69105d..1952e0b36 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -418,8 +418,10 @@ handle_wm_messages(Widget w, XtPointer client_data, XEvent *ev, Boolean *cont) int X11_NewViewport(GRAPH *graph) { -// char fontname[513]; /* who knows . . . */ +#ifndef HAVE_LIBXFT char *p, *q; + int trys; +#endif Cursor cursor; XSetWindowAttributes w_attrs; XGCValues gcvalues; @@ -452,7 +454,6 @@ X11_NewViewport(GRAPH *graph) { XtNheight, (XtArgVal) 500 }, { XtNright, (XtArgVal) XtChainRight } }; - int trys; graph->devdep = TMALLOC(X11devdep, 1); graph->n_byte_devdep = sizeof(X11devdep);