From 6542d33cd1e546f9e58e7cba93049e2858ec9dc2 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sat, 11 Jul 2020 15:03:00 +0000 Subject: [PATCH] Issue #641: Add a cast to void * to address some theoretically undefined printf behavior. --- json_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_object.c b/json_object.c index 73daa4c..2ee39ea 100644 --- a/json_object.c +++ b/json_object.c @@ -1635,7 +1635,7 @@ static int json_object_copy_serializer_data(struct json_object *src, struct json { _json_c_set_last_err( "json_object_deep_copy: unable to copy unknown serializer data: %p\n", - dst->_to_json_string); + (void *)dst->_to_json_string); return -1; } dst->_user_delete = src->_user_delete; -- 2.50.1