From: Sami Kerola Date: Tue, 16 Aug 2016 11:56:08 +0000 (+0100) Subject: warnings: fix unused variable when ./configure --without-gtk is used X-Git-Tag: v0.88~38^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18a600426d8cb048a17681caeef6d378f965a987;p=thirdparty%2Fmtr.git warnings: fix unused variable when ./configure --without-gtk is used Use of preprocessor to enable/disable code blocks makes messy code. Perhaps something can be done in future to make this nicer. --- diff --git a/display.c b/display.c index 3745c6b..f006b73 100644 --- 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;