summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-04-11 12:16:16 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2010-04-11 12:16:16 +0200
commit7c675e27dcf469d1b5b24d335afe25bdca714a05 (patch)
tree313dda443ed13be6fe72951c33ada8071b02d7f4
parentb9fdbb63e49440ccf31320c2f314c9c8cf009707 (diff)
downloadmupdf-7c675e27dcf469d1b5b24d335afe25bdca714a05.tar.xz
Fixed compiler warnings.
-rw-r--r--apps/pdfapp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 1f78c4e1..893e6754 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -643,13 +643,10 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen)
{
ucsbuf[0] = 0;
- fz_error error;
fz_textspan *ln;
int x, y, c;
int i, p;
- int bx0, bx1, by0, by1;
-
int x0 = app->image->x + app->selr.x0 - app->panx;
int x1 = app->image->x + app->selr.x1 - app->panx;
int y0 = app->image->y + app->selr.y0 - app->pany;
@@ -664,6 +661,8 @@ void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen)
for (i = 0; i < ln->len; i++)
{
#if 0
+ int bx0, bx1, by0, by1;
+
bx0 = ln->text[i].bbox.x0;
bx1 = ln->text[i].bbox.x1;
by0 = ln->text[i].bbox.y0;