]> granicus.if.org Git - vim/commitdiff
patch 8.1.2284: compiler warning for unused variable v8.1.2284
authorBram Moolenaar <Bram@vim.org>
Sun, 10 Nov 2019 00:32:12 +0000 (01:32 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 10 Nov 2019 00:32:12 +0000 (01:32 +0100)
Problem:    Compiler warning for unused variable. (Tony Mechelynck)
Solution:   Add #ifdef.

src/move.c
src/version.c

index 484b931abf5ab74819f32c2247b04061bea2c23d..d340f0223cac9a4dfc490dbe00ad3eaf0bc435ca 100644 (file)
@@ -988,7 +988,9 @@ curs_columns(
        /* long line wrapping, adjust curwin->w_wrow */
        if (curwin->w_wcol >= curwin->w_width)
        {
+#ifdef FEAT_LINEBREAK
            char_u *sbr;
+#endif
 
            /* this same formula is used in validate_cursor_col() */
            n = (curwin->w_wcol - curwin->w_width) / width + 1;
index d8eedea522e1cc73269bbd7dcf9505663fa20631..64efb6ebd49644ea9bdba5ee7803bf01e0d1cc8a 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2284,
 /**/
     2283,
 /**/