summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-20 21:09:42 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-20 21:09:42 +0100
commit2d2e25b3e3c932e76f53e9cc49b60e92a7dc8715 (patch)
treef7321f8db9cae5a75b5fbe24d90a89cf5fab5ca9
parentf64b75b1d90182d04c9f9bc2ff20c9fa59227c93 (diff)
downloadvim-git-2d2e25b3e3c932e76f53e9cc49b60e92a7dc8715.tar.gz
patch 9.0.0523: more compiler warnings for arguments in small versionv9.0.0523
Problem: more compiler warnings for arguments in small version Solution: Adjust #ifdefs.
-rw-r--r--src/drawline.c9
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 07e204879..c42375617 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -391,6 +391,7 @@ handle_lnum_col(
#endif
}
}
+
#if defined(FEAT_PROP_POPUP) || defined(PROTO)
/*
* Return the cell size of virtual text after truncation.
@@ -1530,7 +1531,13 @@ win_line(
{
// Show the line number, if desired.
wlv.draw_state = WL_NR;
- handle_lnum_col(wp, &wlv, sign_present, num_attr);
+ handle_lnum_col(wp, &wlv,
+#ifdef FEAT_SIGNS
+ sign_present, num_attr
+#else
+ 0, 0
+#endif
+ );
}
#ifdef FEAT_LINEBREAK
diff --git a/src/version.c b/src/version.c
index 52e36abb5..d40a59841 100644
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 523,
+/**/
522,
/**/
521,