Add back in the __attribute__((__unused__)) that was lost in the previous commit.
It's needed to squash a "variable 'val' set but not used" warning.
This commit is contained in:
@@ -353,7 +353,7 @@ extern void json_object_object_del(struct json_object* obj, const char *key);
|
|||||||
|
|
||||||
# define json_object_object_foreach(obj,key,val) \
|
# define json_object_object_foreach(obj,key,val) \
|
||||||
char *key = NULL; \
|
char *key = NULL; \
|
||||||
struct json_object *val = NULL; \
|
struct json_object *val __attribute__((__unused__)) = 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; \
|
||||||
|
|||||||
Reference in New Issue
Block a user