Browse Source

Prevent 'unused variable' compiler message

pre-master-46
Holger Vogt 6 years ago
parent
commit
70be7508ce
  1. 5
      src/frontend/plotting/x11.c

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

Loading…
Cancel
Save