From 3fc1c7e452fc9c27e1789dfd67a41f5ced588d48 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Mon, 6 Jan 2025 16:33:22 +0000 Subject: [PATCH] gcc11 -Wall -Wpedantic document for the next person --- utils/magic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/magic.h b/utils/magic.h index 8aa2c662..7b4356d6 100644 --- a/utils/magic.h +++ b/utils/magic.h @@ -201,6 +201,7 @@ extern char AbortMessage[]; #define ANALYSER_CSTRING(n) __attribute__((null_terminated_string_arg(n))) #define ANALYSER_FD_ARG(fd) __attribute__((fd_arg(fd))) #define ANALYSER_MALLOC(dealloc, idx) __attribute__((malloc, malloc(dealloc, idx))) + /* looking to squash excessive -Wpedantic warnings ? add into defs.mak: CPPFLAGS += -Wno-variadic-macros */ #define ANALYSER_NONNULL(n...) __attribute__((nonnull(n))) #define ANALYSER_RETURNS_NONNULL __attribute__((returns_nonnull)) #else