summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-08-16 12:56:28 +0200
committerRobin Watts <robin.watts@artifex.com>2012-08-23 15:43:59 +0100
commit293ea3cb17baf14ad935880345092fbc531ab705 (patch)
treed70941f6ccc7ccec8715fc7dcf885566a44e03c2 /pdf
parent90aba2b728774bf3816562ad5e5a37eaab70a1a7 (diff)
downloadmupdf-293ea3cb17baf14ad935880345092fbc531ab705.tar.xz
Silence some warnings.
Mountian Lion causes various different warnings to be given, possibly because a change to clang by default. Fix them here.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_annot.c2
-rw-r--r--pdf/pdf_nametree.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/pdf/pdf_annot.c b/pdf/pdf_annot.c
index d6b5096e..427ad964 100644
--- a/pdf/pdf_annot.c
+++ b/pdf/pdf_annot.c
@@ -198,6 +198,8 @@ pdf_parse_action(pdf_document *xref, pdf_obj *action)
pdf_obj *obj, *dest;
fz_context *ctx = xref->ctx;
+ UNUSED(ctx);
+
ld.kind = FZ_LINK_NONE;
if (!action)
diff --git a/pdf/pdf_nametree.c b/pdf/pdf_nametree.c
index 7d8ac319..d163dc08 100644
--- a/pdf/pdf_nametree.c
+++ b/pdf/pdf_nametree.c
@@ -118,6 +118,8 @@ pdf_load_name_tree_imp(pdf_obj *dict, pdf_document *xref, pdf_obj *node)
pdf_obj *names = pdf_dict_gets(node, "Names");
int i;
+ UNUSED(ctx);
+
if (kids && !pdf_dict_mark(node))
{
int len = pdf_array_len(kids);