]> granicus.if.org Git - vim/commitdiff
patch 8.0.1613: warning for unused variable in tiny build v8.0.1613
authorBram Moolenaar <Bram@vim.org>
Sat, 17 Mar 2018 12:15:17 +0000 (13:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 17 Mar 2018 12:15:17 +0000 (13:15 +0100)
Problem:    Warning for unused variable in tiny build. (Tony Mechelynck)
Solution:   Move declaration to inner block.

src/os_unix.c
src/version.c

index af3c700db741e78e9847de91b2c55ded869c3aa0..e0bc3de218a49a58c151bbba6d1253866c26cef1 100644 (file)
@@ -4588,7 +4588,6 @@ mch_call_shell_fork(
     char_u     *tofree1 = NULL;
     char_u     *tofree2 = NULL;
     int                i;
-    char_u     *p;
     int                pty_master_fd = -1;         /* for pty's */
 # ifdef FEAT_GUI
     int                pty_slave_fd = -1;
@@ -5174,6 +5173,7 @@ mch_call_shell_fork(
                        else if (has_mbyte)
                        {
                            int         l;
+                           char_u      *p;
 
                            len += buffer_off;
                            buffer[len] = NUL;
index a5883446ca1e38a5ca74784f3edbef99c88b5f4c..b5c613712a33d3c55c82de9c358fd41aeaba95d8 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1613,
 /**/
     1612,
 /**/