001-backport_compile_fix.patch 708 B

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