]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
warnings: fix unused variable when ./configure --without-gtk is used
authorSami Kerola <kerolasa@iki.fi>
Tue, 16 Aug 2016 11:56:08 +0000 (12:56 +0100)
committerSami Kerola <kerolasa@iki.fi>
Tue, 16 Aug 2016 12:06:44 +0000 (13:06 +0100)
Use of preprocessor to enable/disable code blocks makes messy code.  Perhaps
something can be done in future to make this nicer.

display.c

index 3745c6b653fcbc5709cee49bf4acf8ddd32ff354..f006b73d69ab657f1edf2822edf9db6e9aa4df83 100644 (file)
--- a/display.c
+++ b/display.c
@@ -63,7 +63,15 @@ extern int DisplayMode;
 #include "split.h"
 #endif
 
-void display_detect(int *argc, char ***argv) {
+void display_detect(int *argc
+#ifdef NO_GTK
+UNUSED
+#endif
+  , char ***argv
+#ifdef NO_GTK
+UNUSED
+#endif
+) {
 
 #ifndef NO_CURSES
   DisplayMode = DisplayCurses;