summaryrefslogtreecommitdiff
path: root/source/pdf/js
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-06-26 13:48:31 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-06-26 13:49:05 +0200
commitc6764044e9cd9e1fd0817448bd43bc77d06eba23 (patch)
tree91e1f59ad7a953d11003f54b328689f308e9b961 /source/pdf/js
parenta9e56e9f94515c109a912a50b4bc80466a11b075 (diff)
downloadmupdf-c6764044e9cd9e1fd0817448bd43bc77d06eba23.tar.xz
Silence compiler warnings.
Diffstat (limited to 'source/pdf/js')
-rw-r--r--source/pdf/js/pdf-js.c2
-rw-r--r--source/pdf/js/pdf-util.js1
2 files changed, 0 insertions, 3 deletions
diff --git a/source/pdf/js/pdf-js.c b/source/pdf/js/pdf-js.c
index 5ea9872f..26c6d6f8 100644
--- a/source/pdf/js/pdf-js.c
+++ b/source/pdf/js/pdf-js.c
@@ -243,9 +243,7 @@ static pdf_jsimp_obj *field_getDisplay(void *jsctx, void *obj)
static void field_setDisplay(void *jsctx, void *obj, pdf_jsimp_obj *val)
{
pdf_js *js = (pdf_js *)jsctx;
- fz_context *ctx = js->doc->ctx;
pdf_obj *field = (pdf_obj *)obj;
-
if (field)
pdf_field_set_display(js->doc, field, (int)pdf_jsimp_to_number(js->imp, val));
}
diff --git a/source/pdf/js/pdf-util.js b/source/pdf/js/pdf-util.js
index 06f4874b..0104f5e4 100644
--- a/source/pdf/js/pdf-util.js
+++ b/source/pdf/js/pdf-util.js
@@ -862,7 +862,6 @@ function AFRange_Validate(lowerCheck, lowerLimit, upperCheck, upperLimit)
event.rc = false;
}
-
if (!event.rc)
{
if (lowerCheck && upperCheck)