From: Michal Nowak Date: Thu, 21 May 2026 13:10:57 +0000 (+0200) Subject: fix: dev: Move last_purge declaration under the same #ifdef as its user X-Git-Tag: v9.21.23~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86029384e28dad054062a3b2f3c522b299f56c91;p=thirdparty%2Fbind9.git fix: dev: Move last_purge declaration under the same #ifdef as its user The static atomic last_purge is only read and written from mem_purge(), which is compiled only when JEMALLOC_API_SUPPORTED or __GLIBC__ is defined. This used to fail on OpenBSD: ../lib/isc/mem.c:405:31: error: unused variable 'last_purge' [-Werror,-Wunused-variable] 405 | static _Atomic(isc_stdtime_t) last_purge = 0; | ^~~~~~~~~~ Merge branch 'mnowak/move-last_purge-to-ifdef' into 'main' See merge request isc-projects/bind9!12058 --- 86029384e28dad054062a3b2f3c522b299f56c91