Browse Source

Fix a compiler warning.

In VS 2015, the warning text is "warning C4550: expression evaluates to a function which is missing an argument list".
pull/383/head
ssrlive GitHub 7 years ago
parent
commit
b0f8c84d3e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      json_object.h

+ 2
- 2
json_object.h View File

@@ -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.


Loading…
Cancel
Save