changeset 17272:2342d5e500ec v8.1.1635

patch 8.1.1635: warnings for unused variables in small version commit https://github.com/vim/vim/commit/b4d9b893d3c7af24b5adf4ae0475ada32d36f5ad Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 4 22:59:06 2019 +0200 patch 8.1.1635: warnings for unused variables in small version Problem: Warnings for unused variables in small version. (John Marriott) Solution: Adjust #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Jul 2019 23:00:06 +0200
parents a43b8b3d4a9c
children 25b99b296474
files src/screen.c src/version.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -3265,10 +3265,12 @@ win_line(
 #endif
 #if defined(FEAT_SIGNS) || defined(FEAT_QUICKFIX) \
 	|| defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
+# define LINE_ATTR
+    int		line_attr = 0;		/* attribute for the whole line */
+#endif
+#ifdef FEAT_SIGNS
     int		sign_present = FALSE;
     sign_attrs_T sattr;
-# define LINE_ATTR
-    int		line_attr = 0;		/* attribute for the whole line */
 #endif
 #ifdef FEAT_SEARCH_EXTRA
     matchitem_T *cur;			/* points to the match list */
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1635,
+/**/
     1634,
 /**/
     1633,