add chaos_calmer branch
[15.05/openwrt.git] / package / libs / libjson-c / patches / 001-backport_compile_fix.patch
1 commit 3859e99f50abe11a8dade28efa9ea3d99dfaac11
2 Author: Petar Koretić <petar.koretic@gmail.com>
3 Date:   Fri Apr 11 10:03:40 2014 +0200
4
5     Remove unused variable 'size'
6
7 diff --git a/json_tokener.c b/json_tokener.c
8 index 19de8ef..9a76293 100644
9 --- a/json_tokener.c
10 +++ b/json_tokener.c
11 @@ -352,12 +352,10 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
12  
13      case json_tokener_state_inf: /* aka starts with 'i' */
14        {
15 -       int size;
16         int size_inf;
17         int is_negative = 0;
18  
19         printbuf_memappend_fast(tok->pb, &c, 1);
20 -       size = json_min(tok->st_pos+1, json_null_str_len);
21         size_inf = json_min(tok->st_pos+1, json_inf_str_len);
22         char *infbuf = tok->pb->buf;
23         if (*infbuf == '-')