0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.1924

Problem:    Missing "void" for functions without argument.
Solution:   Add "void". (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar 2016-06-12 21:18:43 +02:00
parent ae3150ec8d
commit cf08946349
6 changed files with 13 additions and 11 deletions

View File

@ -132,7 +132,7 @@ ch_logfile(char_u *fname, char_u *opt)
} }
int int
ch_log_active() ch_log_active(void)
{ {
return log_fd != NULL; return log_fd != NULL;
} }
@ -1462,7 +1462,7 @@ channel_buffer_free(buf_T *buf)
* Write any lines waiting to be written to a channel. * Write any lines waiting to be written to a channel.
*/ */
void void
channel_write_any_lines() channel_write_any_lines(void)
{ {
channel_T *channel; channel_T *channel;
@ -1653,7 +1653,7 @@ channel_get_all(channel_T *channel, int part)
} }
/* /*
* Consume "len" bytes from the head of "channel"/"part". * Consume "len" bytes from the head of "node".
* Caller must check these bytes are available. * Caller must check these bytes are available.
*/ */
void void
@ -4495,7 +4495,7 @@ job_set_options(job_T *job, jobopt_T *opt)
* Called when Vim is exiting: kill all jobs that have the "stoponexit" flag. * Called when Vim is exiting: kill all jobs that have the "stoponexit" flag.
*/ */
void void
job_stop_on_exit() job_stop_on_exit(void)
{ {
job_T *job; job_T *job;
@ -4509,7 +4509,7 @@ job_stop_on_exit()
* job_check_ended() should be called once in a while. * job_check_ended() should be called once in a while.
*/ */
int int
has_pending_job() has_pending_job(void)
{ {
job_T *job; job_T *job;

View File

@ -2770,7 +2770,7 @@ ins_compl_make_cyclic(void)
* 'completeopt' value. * 'completeopt' value.
*/ */
void void
completeopt_was_set() completeopt_was_set(void)
{ {
compl_no_insert = FALSE; compl_no_insert = FALSE;
compl_no_select = FALSE; compl_no_select = FALSE;

View File

@ -1174,7 +1174,7 @@ timer_callback(timer_T *timer)
* Return the time in msec until the next timer is due. * Return the time in msec until the next timer is due.
*/ */
long long
check_due_timer() check_due_timer(void)
{ {
timer_T *timer; timer_T *timer;
long this_due; long this_due;

View File

@ -5819,14 +5819,14 @@ static yankreg_T *y_read_regs = NULL;
* Prepare for reading viminfo registers when writing viminfo later. * Prepare for reading viminfo registers when writing viminfo later.
*/ */
void void
prepare_viminfo_registers() prepare_viminfo_registers(void)
{ {
y_read_regs = (yankreg_T *)alloc_clear(NUM_REGISTERS y_read_regs = (yankreg_T *)alloc_clear(NUM_REGISTERS
* (int)sizeof(yankreg_T)); * (int)sizeof(yankreg_T));
} }
void void
finish_viminfo_registers() finish_viminfo_registers(void)
{ {
int i; int i;
int j; int j;

View File

@ -416,7 +416,7 @@ redraw_asap(int type)
* it belongs. If highlighting was changed a redraw is needed. * it belongs. If highlighting was changed a redraw is needed.
*/ */
void void
redraw_after_callback() redraw_after_callback(void)
{ {
if (State == HITRETURN || State == ASKMORE) if (State == HITRETURN || State == ASKMORE)
; /* do nothing */ ; /* do nothing */
@ -10252,7 +10252,7 @@ unshowmode(int force)
* Clear the mode message. * Clear the mode message.
*/ */
void void
clearmode() clearmode(void)
{ {
msg_pos_mode(); msg_pos_mode();
if (Recording) if (Recording)

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1924,
/**/ /**/
1923, 1923,
/**/ /**/