akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 809 forks source link

Enable and fix additional warnings #587

Closed danielkempenich closed 1 year ago

danielkempenich commented 3 years ago

Enable pedantic and strict prototypes

Resolve several cases of: function declaration isn’t a prototype [-Werror=strict-prototypes]

Resolve: format ‘%p’ expects argument of type ‘void ’, but argument 4 has type ‘const json_t {aka const struct json_t *}’ [-Werror=format=]

Resolve: specified bound depends on the length of the source argument [-Wstringop-overflow=] In function ‘jsonp_error_set_source’