diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 14:46:08 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 14:46:08 +0200 |
commit | 39043ad25eda79e315da5148e239730ee1d8d6ca (patch) | |
tree | 20d3f2899a74cb128a26ecd59a9b78d963fdd1da /editors/vi.c | |
parent | 2f7738e4748594227c95bef86acf73436c334e2d (diff) |
vi: placate "warning: statement with no effect"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 5 |
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) |