]> granicus.if.org Git - vim/commitdiff
patch 8.1.1635: warnings for unused variables in small version v8.1.1635
authorBram Moolenaar <Bram@vim.org>
Thu, 4 Jul 2019 20:59:06 +0000 (22:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 4 Jul 2019 20:59:06 +0000 (22:59 +0200)
Problem:    Warnings for unused variables in small version. (John Marriott)
Solution:   Adjust #ifdefs.

src/screen.c
src/version.c

index d6761c85fb7b23b482204974df1d6806f7a8b22a..58866bf48a4c6b476ce9e4b7d07b84f6b54eb9da 100644 (file)
@@ -3265,11 +3265,13 @@ win_line(
 #endif
 #if defined(FEAT_SIGNS) || defined(FEAT_QUICKFIX) \
        || defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
-    int                sign_present = FALSE;
-    sign_attrs_T sattr;
 # define LINE_ATTR
     int                line_attr = 0;          /* attribute for the whole line */
 #endif
+#ifdef FEAT_SIGNS
+    int                sign_present = FALSE;
+    sign_attrs_T sattr;
+#endif
 #ifdef FEAT_SEARCH_EXTRA
     matchitem_T *cur;                  /* points to the match list */
     match_T    *shl;                   /* points to search_hl or a match */
index d1e12c8238ea242f77add68b14766eaa2a722c7d..634cd089b24bb6b5e657ef395f09e16e7f363180 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1635,
 /**/
     1634,
 /**/