From: Matthew Fernandez Date: Mon, 21 Mar 2022 14:57:22 +0000 (-0700) Subject: smyrna cb_mouseclick: remove unused 'g' X-Git-Tag: 4.0.0~161^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43c2d8da5dad0bccb53e52fef9804d77813a15c3;p=graphviz smyrna cb_mouseclick: remove unused 'g' This causes compiler warnings resulting in build failure when enabling this in the CMake build system. Gitlab: related to #1836 --- diff --git a/cmd/smyrna/glutrender.c b/cmd/smyrna/glutrender.c index 66c423b37..5c758ad0c 100644 --- a/cmd/smyrna/glutrender.c +++ b/cmd/smyrna/glutrender.c @@ -90,10 +90,7 @@ static void cb_display(void) static void cb_mouseclick(int button, int state, int x, int y) { - Agraph_t* g; - if (view->g == 0) return; - g=view->g[view->activeGraph]; begin_x = (float) x; begin_y = (float) y; if(state==GLUT_DOWN)