0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 9.0.1336: functions without arguments are not always declared properly

Problem:    Functions without arguments are not always declared properly.
Solution:   Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
This commit is contained in:
Yegappan Lakshmanan
2023-02-21 14:27:41 +00:00
committed by Bram Moolenaar
parent d950984489
commit a23a11b5bf
34 changed files with 75 additions and 72 deletions

View File

@@ -3309,7 +3309,7 @@ f_popup_getoptions(typval_T *argvars, typval_T *rettv)
* Return FALSE when the job has ended.
*/
int
error_if_term_popup_window()
error_if_term_popup_window(void)
{
if (WIN_IS_POPUP(curwin) && curbuf->b_term != NULL
&& term_job_running(curbuf->b_term))
@@ -3543,7 +3543,7 @@ popup_no_mapping(void)
* cursor moved far enough.
*/
void
popup_check_cursor_pos()
popup_check_cursor_pos(void)
{
win_T *wp;