mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 05:29:22 +00:00
evince: fix build with gcc 4.8
warning/errror was:
tiff2ps.c:1131:4: error: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'tsize_t' [-Werror=format=]
chunk_size, tiled_image ? "tiles" : "strips");
^
cc1: some warnings being treated as errors
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
cf4e3bbfe3
commit
2150f733e1
@@ -0,0 +1,33 @@
|
||||
From 00b5e55c90477eeac02bec58f032cb6916a1eb5c Mon Sep 17 00:00:00 2001
|
||||
From: Hib Eris <hib@hiberis.nl>
|
||||
Date: Mon, 20 Feb 2012 21:36:16 +0100
|
||||
Subject: [PATCH] tiff: fix compile warning
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
backend/tiff/tiff2ps.c | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/backend/tiff/tiff2ps.c b/backend/tiff/tiff2ps.c
|
||||
index c0dc0bf..fc63c2e 100644
|
||||
--- a/backend/tiff/tiff2ps.c
|
||||
+++ b/backend/tiff/tiff2ps.c
|
||||
@@ -1127,8 +1127,8 @@ PS_Lvl2page(TIFF2PSContext* ctx, TIFF* tif, uint32 w, uint32 h)
|
||||
}
|
||||
buf_data = (unsigned char *)_TIFFmalloc(chunk_size);
|
||||
if (!buf_data) {
|
||||
- TIFFError(ctx->filename, "Can't alloc %u bytes for %s.",
|
||||
- chunk_size, tiled_image ? "tiles" : "strips");
|
||||
+ TIFFError(ctx->filename, "Can't alloc %u bytes for %s.",
|
||||
+ (uint) chunk_size, tiled_image ? "tiles" : "strips");
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
--
|
||||
1.7.6.5
|
||||
|
||||
@@ -4,11 +4,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=96f2f8d5ee576a2163977938ea36fa7b"
|
||||
SECTION = "x11/office"
|
||||
DEPENDS = "gnome-icon-theme gnome-doc-utils-native libgnome-keyring nautilus tiff libxt ghostscript poppler libxml2 gtk+ gconf libglade"
|
||||
|
||||
PR = "r4"
|
||||
PR = "r5"
|
||||
|
||||
inherit gnome pkgconfig gtk-icon-cache gsettings
|
||||
|
||||
SRC_URI += "file://cross-compile-fix.patch"
|
||||
SRC_URI += " \
|
||||
file://cross-compile-fix.patch \
|
||||
file://0001-tiff-fix-compile-warning.patch \
|
||||
"
|
||||
|
||||
SRC_URI[archive.md5sum] = "ebc3ce6df8dcbf29cb9492f8dd031319"
|
||||
SRC_URI[archive.sha256sum] = "2a4c91ae38f8b5028cebb91b9da9ddc50ea8ae3f3d429df89ba351da2d787ff7"
|
||||
|
||||
Reference in New Issue
Block a user