[poppler] poppler/Object.h
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Aug 8 08:28:04 PDT 2009
poppler/Object.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 4c4c0e44452d07bea88d98b7df0c01fadd7693cc
Author: Jakub Wilk <ubanus at users.sf.net>
Date: Sat Aug 8 17:26:14 2009 +0200
Silence some warnings when using internal headers and not compiling with -Wno-write-strings
People should not be using internal headers but it's just two lines
diff --git a/poppler/Object.h b/poppler/Object.h
index 01bff6b..eb3fc33 100644
--- a/poppler/Object.h
+++ b/poppler/Object.h
@@ -16,6 +16,7 @@
// Copyright (C) 2007 Julien Rebetez <julienr at svn.gnome.org>
// Copyright (C) 2008 Kees Cook <kees at outflux.net>
// Copyright (C) 2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2009 Jakub Wilk <ubanus at users.sf.net>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -46,14 +47,14 @@
#define OBJECT_TYPE_CHECK(wanted_type) \
if (unlikely(type != wanted_type)) { \
- error(0, "Call to Object where the object was type %d, " \
+ error(0, (char *) "Call to Object where the object was type %d, " \
"not the expected type %d", type, wanted_type); \
abort(); \
}
#define OBJECT_2TYPES_CHECK(wanted_type1, wanted_type2) \
if (unlikely(type != wanted_type1) && unlikely(type != wanted_type2)) { \
- error(0, "Call to Object where the object was type %d, " \
+ error(0, (char *) "Call to Object where the object was type %d, " \
"not the expected type %d or %d", type, wanted_type1, wanted_type2); \
abort(); \
}
More information about the poppler
mailing list