Using version 0.12 of the json-c library generates these warnings:
/O
CC (gcc) [M json.so] json_funcs.o
json_funcs.c:64:44: warning: 'json_object_object_get' is deprecated
[-Wdeprecated-declarations]
value = (char*)json_object_to_json_string(json_object_object_get(j,
field_s.s));
^
/usr/local/include/json-c/json_object.h:290:56: note: 'json_object_object_get'
has been explicitly marked deprecated here
THIS_FUNCTION_IS_DEPRECATED(extern struct json_object*
json_object_object_get(struct json_object* obj,
^
/usr/local/include/json-c/json_object.h:17:43: note: expanded from macro
'THIS_FUNCTION_IS_DEPRECATED'
#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))
^
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev