summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-28 21:26:17 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-28 21:26:17 +0100
commitb113c3a618113122e62697dd73427261f8c51b2c (patch)
tree523540a558d6cdaa34bc5bd61f7647c0aba451b8 /src
parent5b3af14b34c97ab58bfd4699bc2f3e5a2b704117 (diff)
downloadvim-b113c3a618113122e62697dd73427261f8c51b2c.zip
patch 8.0.0387: compiler warnings
Problem: compiler warnings Solution: Add type casts. (Christian Brabandt)
Diffstat (limited to 'src')
-rw-r--r--src/channel.c3
-rw-r--r--src/memline.c4
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 3 deletions
diff --git a/src/channel.c b/src/channel.c
index d2439a95d..410f92800 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1966,7 +1966,7 @@ channel_parse_json(channel_T *channel, ch_part_T part)
* more (but still incomplete): set a deadline of 100 msec. */
ch_logn(channel,
"Incomplete message (%d bytes) - wait 100 msec for more",
- buflen);
+ (int)buflen);
reader.js_used = 0;
chanpart->ch_wait_len = buflen;
#ifdef WIN32
@@ -3299,6 +3299,7 @@ channel_read_block(channel_T *channel, ch_part_T part, int timeout)
channel_read(channel, part, "channel_read_block");
}
+ /* We have a complete message now. */
if (mode == MODE_RAW)
{
msg = channel_get_all(channel, part);
diff --git a/src/memline.c b/src/memline.c
index 01e8d5ba3..f9852e55b 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1863,7 +1863,7 @@ recover_names(
else
{
#if defined(UNIX) || defined(WIN3264)
- int len = STRLEN(dir_name);
+ int len = (int)STRLEN(dir_name);
p = dir_name + len;
if (after_pathsep(dir_name, p) && len > 1 && p[-1] == p[-2])
@@ -3924,7 +3924,7 @@ makeswapname(
#endif
#if defined(UNIX) || defined(WIN3264) /* Need _very_ long file names */
- int len = STRLEN(dir_name);
+ int len = (int)STRLEN(dir_name);
s = dir_name + len;
if (after_pathsep(dir_name, s) && len > 1 && s[-1] == s[-2])
diff --git a/src/version.c b/src/version.c
index c99c368a2..a0396d118 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 387,
+/**/
386,
/**/
385,