mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00:00
Remove some unused variables.
clang warned about these in the recent bidi work.
This commit is contained in:
parent
54930cf784
commit
e744071a03
@ -3111,7 +3111,7 @@ static void eliminate_separators_between_numbers(BidiContext *ctx)
|
|||||||
* Section 5.2 adjustment: intervening BNs do not break this, so
|
* Section 5.2 adjustment: intervening BNs do not break this, so
|
||||||
* instead of simply looking at types[irs[c-1]] and types[irs[c+1]],
|
* instead of simply looking at types[irs[c-1]] and types[irs[c+1]],
|
||||||
* we must track the last three indices we saw that were not BN. */
|
* we must track the last three indices we saw that were not BN. */
|
||||||
size_t i0 = 0, i1 = 0, i2 = 0;
|
size_t i1 = 0, i2 = 0;
|
||||||
BidiType t0 = ON, t1 = ON, t2 = ON;
|
BidiType t0 = ON, t1 = ON, t2 = ON;
|
||||||
for (size_t c = 0; c < ctx->irslen; c++) {
|
for (size_t c = 0; c < ctx->irslen; c++) {
|
||||||
size_t i = ctx->irs[c];
|
size_t i = ctx->irs[c];
|
||||||
@ -3122,7 +3122,7 @@ static void eliminate_separators_between_numbers(BidiContext *ctx)
|
|||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
i0 = i1; i1 = i2; i2 = i;
|
i1 = i2; i2 = i;
|
||||||
t0 = t1; t1 = t2; t2 = t;
|
t0 = t1; t1 = t2; t2 = t;
|
||||||
if (t0 == t2 && ((t1 == ES && t0 == EN) ||
|
if (t0 == t2 && ((t1 == ES && t0 == EN) ||
|
||||||
(t1 == CS && (t0 == EN || t0 == AN)))) {
|
(t1 == CS && (t0 == EN || t0 == AN)))) {
|
||||||
|
@ -235,13 +235,13 @@ static void char_test(const char *filename, FILE *fp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Break each test line up into its main fields */
|
/* Break each test line up into its main fields */
|
||||||
ptrlen input_pl, para_dir_pl, para_level_pl, levels_pl, order_pl;
|
ptrlen input_pl, para_dir_pl, order_pl;
|
||||||
{
|
{
|
||||||
ptrlen pl = ptrlen_from_asciz(line);
|
ptrlen pl = ptrlen_from_asciz(line);
|
||||||
input_pl = ptrlen_get_word(&pl, ";");
|
input_pl = ptrlen_get_word(&pl, ";");
|
||||||
para_dir_pl = ptrlen_get_word(&pl, ";");
|
para_dir_pl = ptrlen_get_word(&pl, ";");
|
||||||
para_level_pl = ptrlen_get_word(&pl, ";");
|
ptrlen_get_word(&pl, ";"); /* paragraph level, which we ignore */
|
||||||
levels_pl = ptrlen_get_word(&pl, ";");
|
ptrlen_get_word(&pl, ";"); /* embedding levels, which we ignore */
|
||||||
order_pl = ptrlen_get_word(&pl, ";");
|
order_pl = ptrlen_get_word(&pl, ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user