]> granicus.if.org Git - graphviz/commitdiff
smyrna cb_mouseclick: remove unused 'g'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 21 Mar 2022 14:57:22 +0000 (07:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 05:31:13 +0000 (22:31 -0700)
This causes compiler warnings resulting in build failure when enabling this in
the CMake build system.

Gitlab: related to #1836

cmd/smyrna/glutrender.c

index 66c423b375ba6330b99450dedd64f3576d711723..5c758ad0c238d1833840c4ff36c70fb21dba19c7 100644 (file)
@@ -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)