aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-06-27 14:46:08 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-06-27 14:46:08 +0200
commit39043ad25eda79e315da5148e239730ee1d8d6ca (patch)
tree20d3f2899a74cb128a26ecd59a9b78d963fdd1da /editors
parent2f7738e4748594227c95bef86acf73436c334e2d (diff)
downloadbusybox-39043ad25eda79e315da5148e239730ee1d8d6ca.tar.gz
vi: placate "warning: statement with no effect"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c5
1 files changed, 4 insertions, 1 deletions
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)