]> granicus.if.org Git - vim/commitdiff
patch 8.0.0387: compiler warnings v8.0.0387
authorBram Moolenaar <Bram@vim.org>
Tue, 28 Feb 2017 20:26:17 +0000 (21:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 Feb 2017 20:26:17 +0000 (21:26 +0100)
Problem:    compiler warnings
Solution:   Add type casts. (Christian Brabandt)

src/channel.c
src/memline.c
src/version.c

index d2439a95de874dba6b505759f5ceee271685f3da..410f9280097d6c31ee27edee6a0fee70a028472e 100644 (file)
@@ -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);
index 01e8d5ba3761b4a64cbe9b2f1f91a850332f147d..f9852e55bbc591b5835040d34011b40f8038ba79 100644 (file)
@@ -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])
index c99c368a2b679e176baa3e558429e96ced94b93e..a0396d11850315f9d0969f0827782b08d549e6a1 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    387,
 /**/
     386,
 /**/