From fc0432b9121d528d9b775cd9ed103732c6440973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=BCnzli?= Date: Thu, 2 Jan 2014 22:13:52 +0100 Subject: fix MSVC warnings C4054 and C4152 These warnings are caused by casting function pointers to void* instead of proper function types. --- source/cbz/mucbz.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/cbz') diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index d9be58f3..fa654a54 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -421,12 +421,12 @@ cbz_rebind(cbz_document *doc, fz_context *ctx) static void cbz_init_document(cbz_document *doc) { - doc->super.close = (void*)cbz_close_document; - doc->super.count_pages = (void*)cbz_count_pages; - doc->super.load_page = (void*)cbz_load_page; - doc->super.bound_page = (void*)cbz_bound_page; - doc->super.run_page_contents = (void*)cbz_run_page; - doc->super.free_page = (void*)cbz_free_page; - doc->super.meta = (void*)cbz_meta; - doc->super.rebind = (void *)cbz_rebind; + doc->super.close = (fz_document_close_fn *)cbz_close_document; + doc->super.count_pages = (fz_document_count_pages_fn *)cbz_count_pages; + doc->super.load_page = (fz_document_load_page_fn *)cbz_load_page; + doc->super.bound_page = (fz_document_bound_page_fn *)cbz_bound_page; + doc->super.run_page_contents = (fz_document_run_page_contents_fn *)cbz_run_page; + doc->super.free_page = (fz_document_free_page_fn *)cbz_free_page; + doc->super.meta = (fz_document_meta_fn *)cbz_meta; + doc->super.rebind = (fz_document_rebind_fn *)cbz_rebind; } -- cgit v1.2.3