]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix a VS 2015 compiler warning.
authorssrlive <30760636+ssrlive@users.noreply.github.com>
Mon, 4 Dec 2017 06:43:25 +0000 (14:43 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2017 06:43:25 +0000 (14:43 +0800)
In VS 2015, the warning text is "warning C4550: expression evaluates to a function which is missing an argument list".

json_object.h

index 9105d4a81ee3fac111d56dc9945a270750c1b8de..215c2914e5dda2819d1e6c88fd3d91c28dd3945f 100644 (file)
@@ -1009,7 +1009,7 @@ json_c_shallow_copy_fn json_c_shallow_copy_default;
  *          or if the destination pointer is non-NULL
  */
 
-JSON_EXPORT int json_object_deep_copy(struct json_object *src, struct json_object **dst, json_c_shallow_copy_fn shallow_copy); 
+JSON_EXPORT int json_object_deep_copy(struct json_object *src, struct json_object **dst, json_c_shallow_copy_fn *shallow_copy); 
 #ifdef __cplusplus
 }
 #endif