From: Gareth Randall Date: Wed, 30 Sep 2015 16:05:40 +0000 (+0000) Subject: Remove a warning message at compile time. X-Git-Tag: v0.87~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F90%2Fhead;p=thirdparty%2Fmtr.git Remove a warning message at compile time. Warning was produced when running: $ ./configure --without-gtk $ make display.c: In function ‘display_keyaction’: display.c:169:5: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] return mtr_curses_keyaction(); ^ --- diff --git a/display.c b/display.c index 3545467..ac91bbe 100644 --- a/display.c +++ b/display.c @@ -38,7 +38,7 @@ extern int DisplayMode; #define mtr_curses_open() #define mtr_curses_close() #define mtr_curses_redraw() -#define mtr_curses_keyaction() +#define mtr_curses_keyaction() 0 #define mtr_curses_clear() #else #include "mtr-curses.h"