and shared_ports_return_port when compiled without threads.
parse of the header.
- Merge #1480 from petrvaganoff: authzone: fix memory leak in
xfer_set_masters() error path.
+ - Fix unused variable warnings in shared_ports_fetch_random
+ and shared_ports_return_port when compiled without threads.
23 July 2026: Wouter
- Updated credits for Xuanchao Xie in 22 july changelog.
int portno = 0, my_port = 0;
if(!shpif)
return 0;
+# ifdef THREADS_DISABLED
+ (void)shp;
+# endif
lock_basic_lock(&shp->lock);
if(udp_connect) {
/* if we connect() we cannot reuse fds for a port. */
#ifndef DISABLE_EXPLICIT_PORT_RANDOMISATION
if(!shpif)
return;
+# ifdef THREADS_DISABLED
+ (void)shp;
+# endif
lock_basic_lock(&shp->lock);
log_assert(shpif->inuse > 0);
shpif->avail_ports[shpif->avail_total - shpif->inuse] = port;