]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1924 v7.4.1924
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2016 19:18:43 +0000 (21:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2016 19:18:43 +0000 (21:18 +0200)
Problem:    Missing "void" for functions without argument.
Solution:   Add "void". (Hirohito Higashi)

src/channel.c
src/edit.c
src/ex_cmds2.c
src/ops.c
src/screen.c
src/version.c

index d6ab030de69fec0dc88171bf27496261e88df367..9a98c3a6c25cc3f83a53708acbac4af255abbe45 100644 (file)
@@ -132,7 +132,7 @@ ch_logfile(char_u *fname, char_u *opt)
 }
 
     int
-ch_log_active()
+ch_log_active(void)
 {
     return log_fd != NULL;
 }
@@ -1462,7 +1462,7 @@ channel_buffer_free(buf_T *buf)
  * Write any lines waiting to be written to a channel.
  */
     void
-channel_write_any_lines()
+channel_write_any_lines(void)
 {
     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.
  */
     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.
  */
     void
-job_stop_on_exit()
+job_stop_on_exit(void)
 {
     job_T      *job;
 
@@ -4509,7 +4509,7 @@ job_stop_on_exit()
  * job_check_ended() should be called once in a while.
  */
     int
-has_pending_job()
+has_pending_job(void)
 {
     job_T          *job;
 
index 73ed472d7e32eaf3183af1c0ba8f7e8b3545262a..0ba2627ca7a3b20a46d118ab2a8101807b7eb6de 100644 (file)
@@ -2770,7 +2770,7 @@ ins_compl_make_cyclic(void)
  * 'completeopt' value.
  */
     void
-completeopt_was_set()
+completeopt_was_set(void)
 {
     compl_no_insert = FALSE;
     compl_no_select = FALSE;
index e0a392deeb5552e3b4898879a89eb27404f32cec..e6ef3811455ee334c1620b4bb5ff84329e6e79ea 100644 (file)
@@ -1174,7 +1174,7 @@ timer_callback(timer_T *timer)
  * Return the time in msec until the next timer is due.
  */
     long
-check_due_timer()
+check_due_timer(void)
 {
     timer_T    *timer;
     long       this_due;
index ed291d06e9f620cca7487ce87141619b9f1902a8..44cd47366d3034e8c7e9572d7c9c4131637b2d4b 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -5819,14 +5819,14 @@ static yankreg_T *y_read_regs = NULL;
  * Prepare for reading viminfo registers when writing viminfo later.
  */
     void
-prepare_viminfo_registers()
+prepare_viminfo_registers(void)
 {
      y_read_regs = (yankreg_T *)alloc_clear(NUM_REGISTERS
                                                    * (int)sizeof(yankreg_T));
 }
 
     void
-finish_viminfo_registers()
+finish_viminfo_registers(void)
 {
     int                i;
     int                j;
index ea557b98dc1825c1da5d56aa7f11f5f33b846114..f55dba68f43b570a7a5a09140b05b3b9200fab65 100644 (file)
@@ -416,7 +416,7 @@ redraw_asap(int type)
  * it belongs. If highlighting was changed a redraw is needed.
  */
     void
-redraw_after_callback()
+redraw_after_callback(void)
 {
     if (State == HITRETURN || State == ASKMORE)
        ; /* do nothing */
@@ -10252,7 +10252,7 @@ unshowmode(int force)
  * Clear the mode message.
  */
     void
-clearmode()
+clearmode(void)
 {
     msg_pos_mode();
     if (Recording)
index 530e36331448b5d4363001f7a07d38d3b5d53266..01b9c4fcbf71493a5cfc15378ddae9e33b9cbefe 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1924,
 /**/
     1923,
 /**/