summaryrefslogtreecommitdiffstats
path: root/src/digraph.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2022-09-24 15:55:27 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-24 15:55:27 +0100
commitb2209f213e2931cf3313b24868a9165bbb717cc4 (patch)
tree33d452f3b84ea801cac40c9e265f8ae0a563bdb2 /src/digraph.c
parent78aed95c8d11a06590abb079014887a458b28b36 (diff)
patch 9.0.0576: unused loop variablesv9.0.0576
Problem: Unused loop variables. Solution: Use a while loop instead. (closes #11214)
Diffstat (limited to 'src/digraph.c')
-rw-r--r--src/digraph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/digraph.c b/src/digraph.c
index d3ee29655d..5c7300113c 100644
--- a/src/digraph.c
+++ b/src/digraph.c
@@ -1596,7 +1596,7 @@ getexactdigraph(int char1, int char2, int meta_char)
if (retval == 0)
{
dp = digraphdefault;
- for (i = 0; dp->char1 != 0; ++i)
+ while (dp->char1 != 0)
{
if ((int)dp->char1 == char1 && (int)dp->char2 == char2)
{
@@ -1773,7 +1773,7 @@ listdigraphs(int use_headers)
msg_putchar('\n');
dp = digraphdefault;
- for (i = 0; dp->char1 != NUL && !got_int; ++i)
+ while (dp->char1 != NUL && !got_int)
{
#if defined(USE_UNICODE_DIGRAPHS)
digr_T tmp;
@@ -1876,7 +1876,7 @@ digraph_getlist_common(int list_all, typval_T *rettv)
if (list_all)
{
dp = digraphdefault;
- for (i = 0; dp->char1 != NUL && !got_int; ++i)
+ while (dp->char1 != NUL && !got_int)
{
#ifdef USE_UNICODE_DIGRAPHS
digr_T tmp;