diff options
author | Simon Bünzli <zeniko@gmail.com> | 2014-01-02 22:13:52 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-01-06 13:13:36 +0000 |
commit | fc0432b9121d528d9b775cd9ed103732c6440973 (patch) | |
tree | 535f81099ad080269b043cc37300effa1b3c5a06 /source/img/muimage.c | |
parent | 9b92bac1ec135862132b1c49b977b53891b73d88 (diff) | |
download | mupdf-fc0432b9121d528d9b775cd9ed103732c6440973.tar.xz |
fix MSVC warnings C4054 and C4152
These warnings are caused by casting function pointers to void*
instead of proper function types.
Diffstat (limited to 'source/img/muimage.c')
-rw-r--r-- | source/img/muimage.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/img/muimage.c b/source/img/muimage.c index 7a6dfc3a..26f4a0f3 100644 --- a/source/img/muimage.c +++ b/source/img/muimage.c @@ -145,12 +145,12 @@ image_rebind(image_document *doc, fz_context *ctx) static void image_init_document(image_document *doc) { - doc->super.close = (void*)image_close_document; - doc->super.count_pages = (void*)image_count_pages; - doc->super.load_page = (void*)image_load_page; - doc->super.bound_page = (void*)image_bound_page; - doc->super.run_page_contents = (void*)image_run_page; - doc->super.free_page = (void*)image_free_page; - doc->super.meta = (void*)image_meta; - doc->super.rebind = (void*)image_rebind; + doc->super.close = (fz_document_close_fn *)image_close_document; + doc->super.count_pages = (fz_document_count_pages_fn *)image_count_pages; + doc->super.load_page = (fz_document_load_page_fn *)image_load_page; + doc->super.bound_page = (fz_document_bound_page_fn *)image_bound_page; + doc->super.run_page_contents = (fz_document_run_page_contents_fn *)image_run_page; + doc->super.free_page = (fz_document_free_page_fn *)image_free_page; + doc->super.meta = (fz_document_meta_fn *)image_meta; + doc->super.rebind = (fz_document_rebind_fn *)image_rebind; } |