Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/regex



In article <5c9e716-7ec1-9c7d-a7cb-21f089460e8%invisible.ca@localhost>,
Jared McNeill  <jmcneill%invisible.ca@localhost> wrote:
>Building tools on macOS:
>
>/Users/jmcneill/netbsd/git-src/tools/compat/../../lib/libc/regex/regcomp.c:1585:8: 
>error: implicit declaration of function 'reallocarray' is invalid
>       in C99 [-Werror,-Wimplicit-function-declaration]
>         ncs = reallocarray(p->g->sets, p->g->ncsets + 1, sizeof(*ncs));
>               ^
>/Users/jmcneill/netbsd/git-src/tools/compat/../../lib/libc/regex/regcomp.c:1585:8: 
>note: did you mean 'reallocarr'?
>/Users/jmcneill/netbsd/git-src/tools/compat/compat_defs.h:556:5: note: 
>'reallocarr' declared here
>int reallocarr(void *, size_t, size_t);
>     ^

Fixed, thanks!

christos



Home | Main Index | Thread Index | Old Index