From 9138958c4a887d25659f7baf87cf62b593e4fcbf Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 2 Jan 2013 14:15:46 +0000 Subject: Squash 2 warnings about fz_warn without a string literal. --- pdf/pdf_write.c | 4 ++-- 1 file 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 { -- cgit v1.2.3