poppler/Object.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 4c4c0e44452d07bea88d98b7df0c01fadd7693cc Author: Jakub Wilk <[email protected]> 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 <[email protected]> // Copyright (C) 2008 Kees Cook <[email protected]> // Copyright (C) 2008 Albert Astals Cid <[email protected]> +// Copyright (C) 2009 Jakub Wilk <[email protected]> // // 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(); \ } _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
