]> granicus.if.org Git - graphviz/commitdiff
cmd/smyrna: remove no-op if statement
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 15:39:20 +0000 (08:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:21:10 +0000 (11:21 -0700)
When enabling Smyrna in the CMake build system, compilation fails with a
-Wempty-body warning about this line. I am guessing that it was intended to not
be a conditional here.

Gitlab: #1836, #1854

cmd/smyrna/gui/menucallbacks.c

index fb96b4620bbd4e5651dae26c7d5e8d98c069a1fc..4081994925419892ba6c51a0ba8e0ab4594087a8 100644 (file)
@@ -86,7 +86,7 @@ void mQuitSlot(GtkWidget * widget, gpointer user_data)
     (void)widget;
     (void)user_data;
 
-    if (close_graph(view));
+    close_graph(view);
     gtk_main_quit();
 }