Mercurial > vim
comparison src/os_unix.c @ 13478:601d797cca88 v8.0.1613
patch 8.0.1613: warning for unused variable in tiny build
commit https://github.com/vim/vim/commit/a2150ac01643ef99b0e7b2273c6ad84ce79c8f90
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 17 13:15:17 2018 +0100
patch 8.0.1613: warning for unused variable in tiny build
Problem: Warning for unused variable in tiny build. (Tony Mechelynck)
Solution: Move declaration to inner block.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 17 Mar 2018 13:30:07 +0100 |
parents | 6faef782f50b |
children | 8db9449b5c79 |
comparison
equal
deleted
inserted
replaced
13477:5ea11b4321e5 | 13478:601d797cca88 |
---|---|
4586 int retval = -1; | 4586 int retval = -1; |
4587 char **argv = NULL; | 4587 char **argv = NULL; |
4588 char_u *tofree1 = NULL; | 4588 char_u *tofree1 = NULL; |
4589 char_u *tofree2 = NULL; | 4589 char_u *tofree2 = NULL; |
4590 int i; | 4590 int i; |
4591 char_u *p; | |
4592 int pty_master_fd = -1; /* for pty's */ | 4591 int pty_master_fd = -1; /* for pty's */ |
4593 # ifdef FEAT_GUI | 4592 # ifdef FEAT_GUI |
4594 int pty_slave_fd = -1; | 4593 int pty_slave_fd = -1; |
4595 # endif | 4594 # endif |
4596 int fd_toshell[2]; /* for pipes */ | 4595 int fd_toshell[2]; /* for pipes */ |
5172 } | 5171 } |
5173 # ifdef FEAT_MBYTE | 5172 # ifdef FEAT_MBYTE |
5174 else if (has_mbyte) | 5173 else if (has_mbyte) |
5175 { | 5174 { |
5176 int l; | 5175 int l; |
5176 char_u *p; | |
5177 | 5177 |
5178 len += buffer_off; | 5178 len += buffer_off; |
5179 buffer[len] = NUL; | 5179 buffer[len] = NUL; |
5180 | 5180 |
5181 /* Check if the last character in buffer[] is | 5181 /* Check if the last character in buffer[] is |