type mismatch on cpuset.h

Marco Atzeri marco.atzeri@gmail.com
Mon Mar 6 06:57:44 GMT 2023


Hi,

building latest gdal I noticed a type mismatch, that forced me to build
with "-fpermissive"

on /usr/include/sys/cpuset.h

  #define CPU_ALLOC(num)      __builtin_malloc (CPU_ALLOC_SIZE(num))


but on
https://linux.die.net/man/3/cpu_alloc

  cpu_set_t *CPU_ALLOC(int num_cpus)


so void* versus cpu_set_t*

I have not checked if the other definitions are correct.

Regard
Marco


More information about the Cygwin mailing list