Commit ef1aeb51 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix warnings

parent bf25490f
......@@ -60,7 +60,7 @@ pdf_document_open(zathura_document_t* document)
zathura_document_set_number_of_pages(document, fz_count_pages(mupdf_document->ctx, mupdf_document->document));
zathura_document_set_data(document, mupdf_document);
return error;
return ZATHURA_ERROR_OK;
error_free:
......
......@@ -109,8 +109,8 @@ pdf_page_image_get_cairo(zathura_page_t* page, void* data,
unsigned char* s = fz_pixmap_samples(mupdf_page->ctx, pixmap);
unsigned int n = fz_pixmap_components(mupdf_page->ctx, pixmap);
for (unsigned int y = 0; y < fz_pixmap_height(mupdf_page->ctx, pixmap); y++) {
for (unsigned int x = 0; x < fz_pixmap_width(mupdf_page->ctx, pixmap); x++) {
for (int y = 0; y < fz_pixmap_height(mupdf_page->ctx, pixmap); y++) {
for (int x = 0; x < fz_pixmap_width(mupdf_page->ctx, pixmap); x++) {
guchar* p = surface_data + y * rowstride + x * 4;
// RGB
......
......@@ -6,7 +6,7 @@
static zathura_error_t
pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, mupdf_page_t* mupdf_page,
unsigned char* image, int rowstride, int components,
unsigned char* image, int GIRARA_UNUSED(rowstride), int GIRARA_UNUSED(components),
unsigned int page_width, unsigned int page_height,
double scalex, double scaley)
{
......
......@@ -9,7 +9,7 @@ mupdf_page_extract_text(mupdf_document_t* mupdf_document, mupdf_page_t* mupdf_pa
return;
}
fz_device* text_device = NULL;
fz_device* volatile text_device = NULL;
fz_try (mupdf_page->ctx) {
text_device = fz_new_stext_device(mupdf_page->ctx, mupdf_page->text, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment