summaryrefslogtreecommitdiff
path: root/pdf/pdf_write.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-01-02 14:15:46 +0000
committerRobin Watts <robin.watts@artifex.com>2013-01-03 13:05:25 +0000
commit9138958c4a887d25659f7baf87cf62b593e4fcbf (patch)
tree723a44dd4c3a00ab2e51f53cc1affb10b665f1f5 /pdf/pdf_write.c
parent511a2bf0411f29e4620d0a23dea8771976cd1a37 (diff)
downloadmupdf-9138958c4a887d25659f7baf87cf62b593e4fcbf.tar.xz
Squash 2 warnings about fz_warn without a string literal.
Diffstat (limited to 'pdf/pdf_write.c')
-rw-r--r--pdf/pdf_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_write.c b/pdf/pdf_write.c
index c3eda9d8..9f4852ff 100644
--- a/pdf/pdf_write.c
+++ b/pdf/pdf_write.c
@@ -1589,7 +1589,7 @@ static void writeobject(pdf_document *xref, pdf_write_options *opts, int num, in
fprintf(opts->out, "%d %d obj\nnull\nendobj\n", num, gen);
if (opts->errors)
(*opts->errors)++;
- fz_warn(ctx, fz_caught(ctx));
+ fz_warn(ctx, "%s", fz_caught(ctx));
return;
}
else
@@ -1669,7 +1669,7 @@ static void writeobject(pdf_document *xref, pdf_write_options *opts, int num, in
fprintf(opts->out, "%d %d obj\nnull\nendobj\n", num, gen);
if (opts->errors)
(*opts->errors)++;
- fz_warn(ctx, fz_caught(ctx));
+ fz_warn(ctx, "%s", fz_caught(ctx));
}
else
{