mjson icon indicating copy to clipboard operation
mjson copied to clipboard

make sure to include alloca.h before using it

Open benpicco opened this issue 2 years ago • 0 comments

We have to include alloca.h if we want to use the alloca() function.

build/pkg/mjson/src/mjson.c: In function ‘mjson_merge’:
build/pkg/mjson/src/mjson.c:823:27: error: implicit declaration of function ‘alloca’ [-Werror=implicit-function-declaration]
     char *path = (char *) alloca((size_t) klen + 1);
                           ^
cc1: all warnings being treated as errors

benpicco avatar Dec 07 '23 15:12 benpicco