summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-02-21 14:27:41 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-21 14:27:41 +0000
commita23a11b5bf03454b71fdb5deac0d5f641e222160 (patch)
tree5ce9eb5b9668eb891072ee7e03823b1c68214656 /src/normal.c
parentd950984489e50b12d87c85f0cce1d672c880aa23 (diff)
downloadvim-git-9.0.1336.tar.gz
patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336
Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/normal.c b/src/normal.c
index 1ab159922..b3ea5e8bc 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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.