]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1572: compiler warnings with tiny build v8.1.1572
authorBram Moolenaar <Bram@vim.org>
Wed, 19 Jun 2019 16:01:21 +0000 (18:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Jun 2019 16:01:21 +0000 (18:01 +0200)
Problem:    Compiler warnings with tiny build. (Tony Mechelynck)
Solution:   Add #ifdef.

src/screen.c
src/version.c

index d2227a888418d0c6ff0e934bca12ac122ac60f45..bbc3113963e3460f1e918b93b3d956dfe7a42ead 100644 (file)
@@ -3253,8 +3253,10 @@ win_line(
     int                mb_c = 0;               /* decoded multi-byte character */
     int                mb_utf8 = FALSE;        /* screen char is UTF-8 char */
     int                u8cc[MAX_MCO];          /* composing UTF-8 chars */
+#if defined(FEAT_DIFF) || defined(FEAT_SIGNS)
     int                filler_lines = 0;       /* nr of filler lines to be drawn */
     int                filler_todo = 0;        /* nr of filler lines still to do + 1 */
+#endif
 #ifdef FEAT_DIFF
     hlf_T      diff_hlf = (hlf_T)0;    /* type of diff highlighting */
     int                change_start = MAXCOL;  /* first col of changed area */
index 19b6aa76d5acc0e578fd0987f6c6bce377c6dec4..62ef11367093199933d1afbf9edc7fe946ab25e5 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1572,
 /**/
     1571,
 /**/