[OpenWrt-Devel] [PATCH 2/5] [libubox] examples: remove set but unused variable

Luka Perkov luka at openwrt.org
Thu Jul 3 06:28:21 EDT 2014


Fixes build failure.

Signed-off-by: Luka Perkov <luka at openwrt.org>
---
 examples/blobmsg-example.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index 5d0a8d0..01c0915 100644
--- a/examples/blobmsg-example.c
+++ b/examples/blobmsg-example.c
@@ -16,7 +16,7 @@ static void dump_attr_data(void *data, int len, int type, int indent, int next_i
 static void
 dump_table(struct blob_attr *head, int len, int indent, bool array)
 {
-	struct blob_attr *attr, *last_attr;
+	struct blob_attr *attr;
 	struct blobmsg_hdr *hdr;
 
 	indent_printf(indent, "{\n");
@@ -25,7 +25,6 @@ dump_table(struct blob_attr *head, int len, int indent, bool array)
 		if (!array)
 			indent_printf(indent + 1, "%s : ", hdr->name);
 		dump_attr_data(blobmsg_data(attr), blobmsg_data_len(attr), blob_id(attr), 0, indent + 1);
-		last_attr = attr;
 	}
 	indent_printf(indent, "}\n");
 }
-- 
2.0.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list