From b0f8c84d3e8e092b0d91c6b64f7dbc998b29e55c Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Mon, 4 Dec 2017 13:41:22 +0800 Subject: [PATCH] Fix a compiler warning. In VS 2015, the warning text is "warning C4550: expression evaluates to a function which is missing an argument list". --- json_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_object.h b/json_object.h index 9105d4a..67db7d0 100644 --- a/json_object.h +++ b/json_object.h @@ -977,7 +977,7 @@ JSON_EXPORT int json_object_equal(struct json_object *obj1, * * @return On success 1 or 2, -1 on errors */ -typedef int (json_c_shallow_copy_fn)(json_object *src, json_object *parent, const char *key, size_t index, json_object **dst); +typedef int (*json_c_shallow_copy_fn)(json_object *src, json_object *parent, const char *key, size_t index, json_object **dst); /** * The default shallow copy implementation for use with json_object_deep_copy(). @@ -991,7 +991,7 @@ typedef int (json_c_shallow_copy_fn)(json_object *src, json_object *parent, cons * * @return 1 on success, -1 on errors, but never 2. */ -json_c_shallow_copy_fn json_c_shallow_copy_default; +int json_c_shallow_copy_default(json_object *src, json_object *parent, const char *key, size_t index, json_object **dst); /** * Copy the contents of the JSON object.