Avoid pointer to integer conversion to let this build with clang 15

This commit is contained in:
jca 2023-01-11 18:50:13 +00:00
parent 606049478a
commit 83bff15553
3 changed files with 25 additions and 1 deletions

View File

@ -2,7 +2,7 @@ COMMENT= RDF Parser Toolkit for Redland
DISTNAME= raptor2-2.0.15
PKGNAME= ${DISTNAME:C/raptor2/raptor/}
CATEGORIES= textproc
REVISION= 4
REVISION= 5
SHARED_LIBS += raptor2 0.0 # 0.0

View File

@ -0,0 +1,12 @@
Index: src/raptor_parse.c
--- src/raptor_parse.c.orig
+++ src/raptor_parse.c
@@ -257,7 +257,7 @@ raptor_world_get_parser_factory(raptor_world *world, c
int
raptor_world_get_parsers_count(raptor_world* world)
{
- RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL);
+ RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, 0);
raptor_world_open(world);

View File

@ -0,0 +1,12 @@
Index: src/raptor_serialize.c
--- src/raptor_serialize.c.orig
+++ src/raptor_serialize.c
@@ -240,7 +240,7 @@ raptor_get_serializer_factory(raptor_world* world, con
int
raptor_world_get_serializers_count(raptor_world* world)
{
- RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL);
+ RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, 0);
raptor_world_open(world);