Re: Portability issues of inline on macOS with GCC11

2021-09-12 Thread Akim Demaille
> Le 13 sept. 2021 à 07:30, Bruno Haible a écrit : > > Akim Demaille wrote: >> The preprocessed source is >> >>> static [[__maybe_unused__]] void *xnrealloc (void *p, size_t n, size_t s) >>> __attribute__ ((__alloc_size__ (2, 3))); >>> static [[__maybe_unused__]] void * >>> xnrealloc (void *

Re: Portability issues of inline on macOS with GCC11

2021-09-12 Thread Bruno Haible
Akim Demaille wrote: > The preprocessed source is > > > static [[__maybe_unused__]] void *xnrealloc (void *p, size_t n, size_t s) > > __attribute__ ((__alloc_size__ (2, 3))); > > static [[__maybe_unused__]] void * > > xnrealloc (void *p, size_t n, size_t s) > > { > > return xreallocarray (p, n

Portability issues of inline on macOS with GCC11

2021-09-12 Thread Akim Demaille
Hi, If I try to update gnulib in Bison, I have the following errors using GCC 11.2.0 on macOS. > In file included from /Users/akim/src/gnu/bison/src/system.h:74, > from /Users/akim/src/gnu/bison/src/Sbitset.c:21: > /Users/akim/src/gnu/bison/lib/xalloc.h:139:1: error: 'maybe_unus