Marc Nieper-Wißkirchen:
> If "stack.h" is included by client code that is supposed to be
> compiled with "-Wsign-compare", the compiler will complain about the
> comparison on line 121.

Indeed: although we don't care about -Wsign-compare warnings in Gnulib
code, consumers of .h files from Gnulib may well do.

> The simplest fix is to replace the comparison by:
> 
> stack->size == (size_t) stack->allocated

Another possible fix would be to change
  size_t size;
to
  idx_t size;
in the struct.

Bruno




Reply via email to