Mercurial > vim
comparison src/channel.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 | e59ff7b5d7a7 |
children | 770987511384 |
comparison
equal
deleted
inserted
replaced
18138:28c9188517bc | 18139:59bc3cd42cf5 |
---|---|
575 } | 575 } |
576 # endif | 576 # endif |
577 # endif | 577 # endif |
578 | 578 |
579 static void | 579 static void |
580 channel_gui_register_one(channel_T *channel, ch_part_T part) | 580 channel_gui_register_one(channel_T *channel, ch_part_T part UNUSED) |
581 { | 581 { |
582 if (!CH_HAS_GUI) | 582 if (!CH_HAS_GUI) |
583 return; | 583 return; |
584 | 584 |
585 /* gets stuck in handling events for a not connected channel */ | 585 /* gets stuck in handling events for a not connected channel */ |
659 for (channel = first_channel; channel != NULL; channel = channel->ch_next) | 659 for (channel = first_channel; channel != NULL; channel = channel->ch_next) |
660 channel_gui_register(channel); | 660 channel_gui_register(channel); |
661 } | 661 } |
662 | 662 |
663 static void | 663 static void |
664 channel_gui_unregister_one(channel_T *channel, ch_part_T part) | 664 channel_gui_unregister_one(channel_T *channel UNUSED, ch_part_T part UNUSED) |
665 { | 665 { |
666 # ifdef FEAT_GUI_X11 | 666 # ifdef FEAT_GUI_X11 |
667 if (channel->ch_part[part].ch_inputHandler != (XtInputId)NULL) | 667 if (channel->ch_part[part].ch_inputHandler != (XtInputId)NULL) |
668 { | 668 { |
669 ch_log(channel, "Unregistering part %s", part_names[part]); | 669 ch_log(channel, "Unregistering part %s", part_names[part]); |
5798 * Returns NULL when out of memory. | 5798 * Returns NULL when out of memory. |
5799 */ | 5799 */ |
5800 job_T * | 5800 job_T * |
5801 job_start( | 5801 job_start( |
5802 typval_T *argvars, | 5802 typval_T *argvars, |
5803 char **argv_arg, | 5803 char **argv_arg UNUSED, |
5804 jobopt_T *opt_arg, | 5804 jobopt_T *opt_arg, |
5805 int is_terminal UNUSED) | 5805 int is_terminal UNUSED) |
5806 { | 5806 { |
5807 job_T *job; | 5807 job_T *job; |
5808 char_u *cmd = NULL; | 5808 char_u *cmd = NULL; |