Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-06-27 15:46:08 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2018-06-27 15:46:08 +0300
commit39043ad25eda79e315da5148e239730ee1d8d6ca (patch)
tree20d3f2899a74cb128a26ecd59a9b78d963fdd1da
parent2f7738e4748594227c95bef86acf73436c334e2d (diff)
vi: placate "warning: statement with no effect"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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)