PDF shim: fz_var for locals set inside fz_try (gcc -Wclobbered on Linux)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 20:05:25 -04:00
1 parent 76b78782d5
commit 3b23a92b3c
10 files changed
+20

No files matched your search

+3
View File
@@ -86,6 +86,7 @@ static pdf_obj *spliced(fz_context *ctx, pdf_document *pdf, pdf_obj *action, int
if (pdf_mark_obj(ctx, action))
return NULL;
(*n)++;
fz_var(out);
fz_try(ctx)
out = spliced(ctx, pdf, pdf_dict_get(ctx, action, PDF_NAME(Next)), n);
fz_always(ctx)
@@ -212,6 +213,8 @@ restart:
if (unseen(ctx, pdf_annot_obj(ctx, widget)))
{
pdf_obj *field = pdf_keep_obj(ctx, pdf_annot_obj(ctx, widget));
fz_var(widget);
fz_var(n);
fz_try(ctx)
{
pdf_delete_annot(ctx, page, widget);