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:
Ondřej Surý
2023-01-10 10:20:44 +01:00
parent 1176bf0552
commit 2c0a9575d7
39 changed files with 158 additions and 180 deletions

View File

@@ -35,8 +35,7 @@ static size_t output_len = 1024;
static uint8_t render_buf[64 * 1024 - 1];
int
LLVMFuzzerInitialize(int *argc __attribute__((unused)),
char ***argv __attribute__((unused))) {
LLVMFuzzerInitialize(int *argc ISC_ATTR_UNUSED, char ***argv ISC_ATTR_UNUSED) {
isc_mem_create(&mctx);
output = isc_mem_get(mctx, output_len);