diff options
Diffstat (limited to 'Build/source/texk/makeindexk/genind.c')
-rw-r--r-- | Build/source/texk/makeindexk/genind.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/makeindexk/genind.c b/Build/source/texk/makeindexk/genind.c index 44e364871a0..185a8bb7a7d 100644 --- a/Build/source/texk/makeindexk/genind.c +++ b/Build/source/texk/makeindexk/genind.c @@ -221,7 +221,7 @@ char *term; static void new_entry(VOID_ARG) { - int let = -1; + int let = -1; /* see comment below */ FIELD_PTR ptr; #ifdef HAVE_SETLOCALE char *prev_locale; @@ -251,6 +251,11 @@ new_entry(VOID_ARG) PUT(group_skip); ind_lc += skiplen; /* beginning of a new letter? */ + /* Although we may use let unassigned here, it doesn't matter, + because put_header will not use its arg except in case + ALPHA, when it is assigned in the midst of condition above. + Let's not perturb the logic, just initialize it (above) to + avoid the warning. */ put_header(let); make_item(NIL); } else |