From 2d6c91ab9954c2f3be27c7eefaaa498d91e557be Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 25 Jun 2019 22:38:13 -0400 Subject: vim-patch:8.0.1688: some macros are used without a semicolon Problem: Some macros are used without a semicolon, causing auto-indent to be wrong. Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes vim/vim#2729) https://github.com/vim/vim/commit/6f4700233fd925fe122b851f937929fb5e5da707 --- src/nvim/memline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/memline.c') diff --git a/src/nvim/memline.c b/src/nvim/memline.c index a69669f680..b027459706 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -1,9 +1,9 @@ // This is an open source non-commercial project. Dear PVS-Studio, please check // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com -/* for debugging */ -/* #define CHECK(c, s) if (c) EMSG(s) */ -#define CHECK(c, s) +// for debugging +// #define CHECK(c, s) do { if (c) EMSG(s); } while (0) +#define CHECK(c, s) do { } while (0) /* * memline.c: Contains the functions for appending, deleting and changing the -- cgit