From: Eric Haszlakiewicz Date: Sun, 23 Aug 2015 03:59:49 +0000 (-0400) Subject: Add back in the __attribute__((__unused__)) that was lost in the previous commit. X-Git-Tag: json-c-0.13-20171207~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93b1fe63e5189a2e65643b14c3ae70c3b90a31cf;p=json-c 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. --- diff --git a/json_object.h b/json_object.h index c9c583e..a6b6c01 100644 --- a/json_object.h +++ b/json_object.h @@ -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) \ 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; \ ({ if(entry ## key) { \ key = (char*)entry ## key->k; \