0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -976,14 +976,14 @@ normal_end:
// Reset finish_op, in case it was set
#ifdef CURSOR_SHAPE
c = finish_op;
int prev_finish_op = finish_op;
#endif
finish_op = FALSE;
may_trigger_modechanged();
#ifdef CURSOR_SHAPE
// Redraw the cursor with another shape, if we were in Operator-pending
// mode or did a replace command.
if (c || ca.cmdchar == 'r')
if (prev_finish_op || ca.cmdchar == 'r')
{
ui_cursor_shape(); // may show different cursor shape
# ifdef FEAT_MOUSESHAPE
@@ -1110,14 +1110,14 @@ call_yank_do_autocmd(int regname)
* from do_pending_operator().
*/
void
end_visual_mode()
end_visual_mode(void)
{
end_visual_mode_keep_button();
reset_held_button();
}
void
end_visual_mode_keep_button()
end_visual_mode_keep_button(void)
{
#ifdef FEAT_CLIPBOARD
// If we are using the clipboard, then remember what was selected in case
@@ -3190,7 +3190,7 @@ nv_colon(cmdarg_T *cap)
else if (cap->oap->op_type != OP_NOP
&& (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
|| cap->oap->start.col >
(colnr_T)STRLEN(ml_get(cap->oap->start.lnum))
(colnr_T)STRLEN(ml_get(cap->oap->start.lnum))
|| did_emsg
))
// The start of the operator has become invalid by the Ex command.