diff options
-rw-r--r-- | include/mupdf/fitz/stream.h | 4 | ||||
-rw-r--r-- | platform/ios/Classes/MuPageViewReflow.m | 2 | ||||
-rw-r--r-- | platform/ios/Classes/MuPrintPageRenderer.m | 6 |
3 files changed, 2 insertions, 10 deletions
diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h index 607e88da..f7eb6f16 100644 --- a/include/mupdf/fitz/stream.h +++ b/include/mupdf/fitz/stream.h @@ -218,7 +218,7 @@ void fz_read_line(fz_stream *stm, char *buf, int max); static inline int fz_available(fz_stream *stm, int max) { int len = stm->wp - stm->rp; - int c; + int c = EOF; if (len) return len; @@ -244,7 +244,7 @@ static inline int fz_available(fz_stream *stm, int max) static inline int fz_read_byte(fz_stream *stm) { - int c; + int c = EOF; if (stm->rp != stm->wp) return *stm->rp++; diff --git a/platform/ios/Classes/MuPageViewReflow.m b/platform/ios/Classes/MuPageViewReflow.m index 8c003160..bc0e2c79 100644 --- a/platform/ios/Classes/MuPageViewReflow.m +++ b/platform/ios/Classes/MuPageViewReflow.m @@ -21,8 +21,6 @@ NSString *textAsHtml(fz_document *doc, int pageNum) fz_try(ctx) { - int b, l, s, c; - ctm = fz_identity; sheet = fz_new_text_sheet(ctx); text = fz_new_text_page(ctx); diff --git a/platform/ios/Classes/MuPrintPageRenderer.m b/platform/ios/Classes/MuPrintPageRenderer.m index fc4adba8..36f66ee9 100644 --- a/platform/ios/Classes/MuPrintPageRenderer.m +++ b/platform/ios/Classes/MuPrintPageRenderer.m @@ -101,12 +101,6 @@ static void freePage(fz_document *doc, fz_page *page) }); } -static void dropPixmap(fz_pixmap *pix) -{ - dispatch_sync(queue, ^{ - fz_drop_pixmap(ctx, pix); - }); -} static void renderPage(fz_document *doc, fz_page *page, fz_pixmap *pix, fz_matrix *ctm) { dispatch_sync(queue, ^{ |