Browse Source

Merge pull request #183 from cryogen/master

Apply compile warning fix to master branch
tags/json-c-0.13-20171207
Eric Haszlakiewicz 10 years ago
parent
commit
a8bbefbbb4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      json_object.h

+ 2
- 2
json_object.h View File

@@ -352,8 +352,8 @@ extern void json_object_object_del(struct json_object* obj, const char *key);
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && __STDC_VERSION__ >= 199901L #if defined(__GNUC__) && !defined(__STRICT_ANSI__) && __STDC_VERSION__ >= 199901L


# define json_object_object_foreach(obj,key,val) \ # define json_object_object_foreach(obj,key,val) \
char *key; \
struct json_object *val __attribute__((__unused__)); \
char *key = NULL; \
struct json_object *val = NULL; \
for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \ for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \
({ if(entry ## key) { \ ({ if(entry ## key) { \
key = (char*)entry ## key->k; \ key = (char*)entry ## key->k; \


Loading…
Cancel
Save