comparison src/terminal.c @ 18139:59bc3cd42cf5 v8.1.2064

patch 8.1.2064: MS-Windows: compiler warnings for unused arguments Commit: https://github.com/vim/vim/commit/bd67aac279adf3a1cfa11557229b44e4c2c3dcda Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 21 23:09:04 2019 +0200 patch 8.1.2064: MS-Windows: compiler warnings for unused arguments Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4963)
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Sep 2019 23:15:03 +0200
parents d1e77015f60b
children 9c3347b21b89
comparison
equal deleted inserted replaced
18138:28c9188517bc 18139:59bc3cd42cf5
955 * Get the part that is connected to the tty. Normally this is PART_IN, but 955 * Get the part that is connected to the tty. Normally this is PART_IN, but
956 * when writing buffer lines to the job it can be another. This makes it 956 * when writing buffer lines to the job it can be another. This makes it
957 * possible to do "1,5term vim -". 957 * possible to do "1,5term vim -".
958 */ 958 */
959 static ch_part_T 959 static ch_part_T
960 get_tty_part(term_T *term) 960 get_tty_part(term_T *term UNUSED)
961 { 961 {
962 #ifdef UNIX 962 #ifdef UNIX
963 ch_part_T parts[3] = {PART_IN, PART_OUT, PART_ERR}; 963 ch_part_T parts[3] = {PART_IN, PART_OUT, PART_ERR};
964 int i; 964 int i;
965 965
5785 5785
5786 static int 5786 static int
5787 conpty_term_and_job_init( 5787 conpty_term_and_job_init(
5788 term_T *term, 5788 term_T *term,
5789 typval_T *argvar, 5789 typval_T *argvar,
5790 char **argv, 5790 char **argv UNUSED,
5791 jobopt_T *opt, 5791 jobopt_T *opt,
5792 jobopt_T *orig_opt) 5792 jobopt_T *orig_opt)
5793 { 5793 {
5794 WCHAR *cmd_wchar = NULL; 5794 WCHAR *cmd_wchar = NULL;
5795 WCHAR *cmd_wchar_copy = NULL; 5795 WCHAR *cmd_wchar_copy = NULL;
6137 6137
6138 static int 6138 static int
6139 winpty_term_and_job_init( 6139 winpty_term_and_job_init(
6140 term_T *term, 6140 term_T *term,
6141 typval_T *argvar, 6141 typval_T *argvar,
6142 char **argv, 6142 char **argv UNUSED,
6143 jobopt_T *opt, 6143 jobopt_T *opt,
6144 jobopt_T *orig_opt) 6144 jobopt_T *orig_opt)
6145 { 6145 {
6146 WCHAR *cmd_wchar = NULL; 6146 WCHAR *cmd_wchar = NULL;
6147 WCHAR *cwd_wchar = NULL; 6147 WCHAR *cwd_wchar = NULL;