diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-10 18:47:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-10 18:47:20 +0200 |
commit | 6f4700233fd925fe122b851f937929fb5e5da707 (patch) | |
tree | 5c5397f70fc4a320ce0c38adba21a1de7ed7b10d /src/gui_at_sb.c | |
parent | d6b4f2dd760b425c63c359b9ff299f73448f8854 (diff) |
patch 8.0.1688: some macros are used without a semicolonv8.0.1688
Problem: Some macros are used without a semicolon, causing auto-indent to be
wrong.
Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes #2729)
Diffstat (limited to 'src/gui_at_sb.c')
-rw-r--r-- | src/gui_at_sb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui_at_sb.c b/src/gui_at_sb.c index 659e93463c..1816daa09e 100644 --- a/src/gui_at_sb.c +++ b/src/gui_at_sb.c @@ -645,7 +645,11 @@ Redisplay(Widget w, XEvent *event, Region region) static Boolean CompareEvents(XEvent *oldEvent, XEvent *newEvent) { -#define Check(field) if (newEvent->field != oldEvent->field) return False; +#define Check(field) \ + do { \ + if (newEvent->field != oldEvent->field) \ + return False; \ + } while (0) Check(xany.display); Check(xany.type); |