cJSON
cJSON copied to clipboard
/* memory fail */
compiling cJSON.c... ..\NET\cJSON\cJSON.c(55): warning: #1293-D: assignment in condition if (!(copy = (char*)cJSON_malloc(len))) return 0; ..\NET\cJSON\cJSON.c(280): warning: #1293-D: assignment in condition ptr=str;while ((token=ptr) && ++len) {if (strchr(""\\b\f\n\r\t",token)) len++; else if (token<32) len+=5;ptr++;} ..\NET\cJSON\cJSON.c(354): warning: #111-D: statement is unreachable return p.buffer; ..\NET\cJSON\cJSON.c(425): warning: #1293-D: assignment in condition if (!(new_item=cJSON_New_Item())) return 0; / memory fail / ..\NET\cJSON\cJSON.c(537): warning: #1293-D: assignment in condition if (!(new_item=cJSON_New_Item())) return 0; / memory fail */ ..\NET\cJSON\cJSON.c: 5 warnings, 0 errors
The code snippet in error log seems doesn't exist in the latest source code, could you provide more information?