mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Replace __attribute__((unused)) with ISC_ATTR_UNUSED attribute macro
Instead of marking the unused entities with UNUSED(x) macro in the function body, use a `ISC_ATTR_UNUSED` attribute macro that expans to C23 [[maybe_unused]] or __attribute__((__unused__)) as fallback.
This commit is contained in:
@@ -374,13 +374,11 @@ isc_nm_getloadbalancesockets(isc_nm_t *mgr) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_nm_setloadbalancesockets(isc_nm_t *mgr, bool enabled) {
|
||||
isc_nm_setloadbalancesockets(isc_nm_t *mgr, ISC_ATTR_UNUSED bool enabled) {
|
||||
REQUIRE(VALID_NM(mgr));
|
||||
|
||||
#if HAVE_SO_REUSEPORT_LB
|
||||
mgr->load_balance_sockets = enabled;
|
||||
#else
|
||||
UNUSED(enabled);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user