Skip to content

Replace __attribute__((unused)) with ISC_ATTR_UNUSED attribute macro

Ondřej Surý requested to merge ondrej/add-maybe_unused-attribute-macro into main

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.

Edited by Ondřej Surý

Merge request reports