From c07ed5e6a14fb801cfd6bbb2a582caf726e5324e Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Fri, 30 Jan 2004 07:52:48 +0000 Subject: [PATCH] added (void *) type override to prevent warning on Solaris (Bug 132671) * xpath.c: added (void *) type override to prevent warning on Solaris (Bug 132671) --- ChangeLog | 5 +++++ xpath.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0430baef..f48fd5a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 29 23:51:48 PST 2004 William Brack + + * xpath.c: added (void *) type override to prevent + warning on Solaris (Bug 132671) + Wed Jan 28 07:20:37 MST 2004 John Fleck * doc/examples/Makefile.am diff --git a/xpath.c b/xpath.c index 6d6e3366..c42e0092 100644 --- a/xpath.c +++ b/xpath.c @@ -563,13 +563,13 @@ xmlXPathCompExprAdd(xmlXPathCompExprPtr comp, int ch1, int ch2, (op == XPATH_OP_COLLECT))) { if (value4 != NULL) { comp->steps[comp->nbStep].value4 = - xmlDictLookup(comp->dict, value4, -1); + (void *)xmlDictLookup(comp->dict, value4, -1); xmlFree(value4); } else comp->steps[comp->nbStep].value4 = NULL; if (value5 != NULL) { comp->steps[comp->nbStep].value5 = - xmlDictLookup(comp->dict, value5, -1); + (void *)xmlDictLookup(comp->dict, value5, -1); xmlFree(value5); } else comp->steps[comp->nbStep].value5 = NULL;