[git commit] vi: placate "warning: statement with no effect"

Denys Vlasenko vda.linux at googlemail.com
Wed Jun 27 12:46:08 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=39043ad25eda79e315da5148e239730ee1d8d6ca
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 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)


More information about the busybox-cvs mailing list