]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Remove a warning message at compile time. 90/head
authorGareth Randall <gareth@garethrandall.com>
Wed, 30 Sep 2015 16:05:40 +0000 (16:05 +0000)
committerGareth Randall <gareth@garethrandall.com>
Wed, 30 Sep 2015 16:05:40 +0000 (16:05 +0000)
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();
     ^

display.c

index 3545467896968d740182be6bc7693af4de36d0bb..ac91bbe335671a4f46a0c71d37ff337b1fe78bb7 100644 (file)
--- 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"