librelp icon indicating copy to clipboard operation
librelp copied to clipboard

relp: fix build against upcoming `gcc-14` (`-Werror=calloc-transposed…

Open kraj opened this issue 1 year ago • 0 comments
trafficstars

…-args`)

gcc-14 added a new -Wcalloc-transposed-args warning recently. It detected minor infelicity in calloc() API usage

Fixes ../../git/src/relp.c: In function 'addToEpollSet': ../../git/src/relp.c:101:39: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 101 | CHKmalloc(epd = calloc(sizeof(epolld_t), 1)); | ^~~~~~~~

kraj avatar May 07 '24 01:05 kraj