Prevent 'unused variable' compiler message

This commit is contained in:
Holger Vogt 2020-05-03 00:49:53 +02:00
parent 913635d252
commit 70be7508ce
1 changed files with 3 additions and 2 deletions

View File

@ -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);