From: Matthew Fernandez Date: Sat, 26 Mar 2022 15:39:20 +0000 (-0700) Subject: cmd/smyrna: remove no-op if statement X-Git-Tag: 4.0.0~156^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67ce03b2bd794ccedd1da4e8c344631399abaf05;p=graphviz cmd/smyrna: remove no-op if statement 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 --- diff --git a/cmd/smyrna/gui/menucallbacks.c b/cmd/smyrna/gui/menucallbacks.c index fb96b4620..408199492 100644 --- a/cmd/smyrna/gui/menucallbacks.c +++ b/cmd/smyrna/gui/menucallbacks.c @@ -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(); }