From 39043ad25eda79e315da5148e239730ee1d8d6ca Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 27 Jun 2018 14:46:08 +0200 Subject: [PATCH] vi: placate "warning: statement with no effect" Signed-off-by: Denys Vlasenko --- editors/vi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editors/vi.c b/editors/vi.c index cdfb27cc5..61e988ce9 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -750,7 +750,10 @@ static int query_screen_dimensions(void) return err; } #else -# define query_screen_dimensions() (0) +static ALWAYS_INLINE int query_screen_dimensions(void) +{ + return 0; +} #endif static void edit_file(char *fn) -- 2.25.1