From 195db8ebaed712d5e6d7913d0450af34532754eb Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sat, 29 Dec 2007 14:56:30 +0000 Subject: [PATCH] Fix compile warnings. 2007-12-29 Carlos Garcia Campos * backend/djvu/djvu-links.c: (get_djvu_link_dest), (get_djvu_hyperlink_area), (djvu_links_find_link_dest): * backend/djvu/djvu-text.h: * backend/tiff/tiff-document.c: (tiff_document_render): Fix compile warnings. svn path=/trunk/; revision=2789 --- ChangeLog | 9 +++++++++ backend/djvu/djvu-links.c | 4 +--- backend/djvu/djvu-text.h | 1 + backend/tiff/tiff-document.c | 3 --- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e182f29..f7fee3df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-12-29 Carlos Garcia Campos + + * backend/djvu/djvu-links.c: (get_djvu_link_dest), + (get_djvu_hyperlink_area), (djvu_links_find_link_dest): + * backend/djvu/djvu-text.h: + * backend/tiff/tiff-document.c: (tiff_document_render): + + Fix compile warnings. + 2007-12-28 Christian Persch * **/*.c: Include config.h. Bug #504721. diff --git a/backend/djvu/djvu-links.c b/backend/djvu/djvu-links.c index a6ab01fc..6a516fc3 100644 --- a/backend/djvu/djvu-links.c +++ b/backend/djvu/djvu-links.c @@ -64,7 +64,6 @@ static EvLinkDest * get_djvu_link_dest (const DjvuDocument *djvu_document, const gchar *link_name, int base_page) { guint64 page_num = 0; - gchar *end_ptr; /* #pagenum, #+pageoffset, #-pageoffset */ if (g_str_has_prefix (link_name, "#")) { @@ -229,7 +228,6 @@ get_djvu_hyperlink_area (ddjvu_pageinfo_t *page_info, EvLinkMapping *ev_link_mapping) { miniexp_t iter; - ddjvu_pageinfo_t info; iter = sexp; @@ -402,7 +400,7 @@ djvu_links_find_link_dest (EvDocumentLinks *document_links, DjvuDocument *djvu_document = DJVU_DOCUMENT (document_links); EvLinkDest *ev_dest = NULL; - ev_dest = get_djvu_link_dest (DJVU_DOCUMENT (document_links), link_name, -1); + ev_dest = get_djvu_link_dest (djvu_document, link_name, -1); if (!ev_dest) { g_warning ("DjvuLibre error: unknown link destination %s", link_name); diff --git a/backend/djvu/djvu-text.h b/backend/djvu/djvu-text.h index f77d1706..b7371dfe 100644 --- a/backend/djvu/djvu-text.h +++ b/backend/djvu/djvu-text.h @@ -29,6 +29,7 @@ DjvuText *djvu_text_new (DjvuDocument *djvu_document, int start_page, gboolean case_sensitive, const char *text); +void djvu_text_free (DjvuText *djvu_text); const char *djvu_text_get_text (DjvuText *djvu_text); int djvu_text_n_results (DjvuText *djvu_text, int page); diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index 8452f79d..d8bee9e5 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -215,9 +215,6 @@ tiff_document_render (EvDocument *document, gint rowstride, bytes; guchar *pixels = NULL; guchar *p; - GdkPixbuf *pixbuf; - GdkPixbuf *scaled_pixbuf; - GdkPixbuf *rotated_pixbuf; cairo_surface_t *surface; cairo_surface_t *rotated_surface; static const cairo_user_data_key_t key; -- 2.43.5