equal
deleted
inserted
replaced
|
1 Patch from upstream git master branch to fix build failures due to |
|
2 newer gcc issuing a unused variable warning here that the -Werror |
|
3 hardcoded in the Makefiles makes fatal. |
|
4 |
|
5 https://github.com/json-c/json-c/issues/159 |
|
6 |
|
7 From 3859e99f50abe11a8dade28efa9ea3d99dfaac11 Mon Sep 17 00:00:00 2001 |
|
8 From: =?UTF-8?q?Petar=20Koreti=C4=87?= <[email protected]> |
|
9 Date: Fri, 11 Apr 2014 10:03:40 +0200 |
|
10 Subject: [PATCH] Remove unused variable 'size' |
|
11 |
|
12 --- |
|
13 json_tokener.c | 2 -- |
|
14 1 file changed, 2 deletions(-) |
|
15 |
|
16 diff --git a/json_tokener.c b/json_tokener.c |
|
17 index 19de8ef..9a76293 100644 |
|
18 --- a/json_tokener.c |
|
19 +++ b/json_tokener.c |
|
20 @@ -352,12 +352,10 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok, |
|
21 |
|
22 case json_tokener_state_inf: /* aka starts with 'i' */ |
|
23 { |
|
24 - int size; |
|
25 int size_inf; |
|
26 int is_negative = 0; |
|
27 |
|
28 printbuf_memappend_fast(tok->pb, &c, 1); |
|
29 - size = json_min(tok->st_pos+1, json_null_str_len); |
|
30 size_inf = json_min(tok->st_pos+1, json_inf_str_len); |
|
31 char *infbuf = tok->pb->buf; |
|
32 if (*infbuf == '-') |
|
33 -- |
|
34 2.7.4 |
|
35 |