vi: placate "warning: statement with no effect"
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Jun 2018 12:46:08 +0000 (14:46 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Jun 2018 12:46:08 +0000 (14:46 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c

index cdfb27cc5abeaea05daa7a8a6b7de89871cb69b6..61e988ce9169eedc013edbfa5c403faa5ae96173 100644 (file)
@@ -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)