From a1f4cb93ba50ea9e40cd4b1f5592b8a6d1398660 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 6 Nov 2016 15:25:42 +0100 Subject: patch 8.0.0069 Problem: Compiler warning for self-comparison. Solution: Define ONE_WINDOW and add #ifdef. --- src/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index c3def1bc0..a45faeaa9 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -2137,7 +2137,7 @@ win_found: * If there is only one window and it is the quickfix window, create a * new one above the quickfix window. */ - if (((firstwin == lastwin) && bt_quickfix(curbuf)) || !usable_win) + if ((ONE_WINDOW && bt_quickfix(curbuf)) || !usable_win) { flags = WSP_ABOVE; if (ll_ref != NULL) -- cgit v1.2.1