Going through the release version of BLFS7.9. I notice the fix for JSON-C dropping out of make with an "unused variable" warning in json_tokener.c. BLFS fixes this by disabling -Werror on the whole build. The day after 0.12 was released there was a commit for this that removed the unused variable, allowing Make to finish, which seems like a more elegant fix. Works either way.

https://github.com/json-c/json-c/commit/3859e99f50abe11a8dade28efa9ea3d99dfaac11

diff file:

--- ./json_tokener.c    2016-03-18 11:51:45.068414027 -0500
+++ ./json_tokener.c    2016-03-18 11:52:30.768481806 -0500
@@ -352,12 +352,10 @@

     case json_tokener_state_inf: /* aka starts with 'i' */
       {
-       int size;
        int size_inf;
        int is_negative = 0;

        printbuf_memappend_fast(tok->pb, &c, 1);
-       size = json_min(tok->st_pos+1, json_null_str_len);
        size_inf = json_min(tok->st_pos+1, json_inf_str_len);
        char *infbuf = tok->pb->buf;
        if (*infbuf == '-')

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to