From bfbaa577f6fc46ebb965724e0f261e79e26ec9fb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Aug 2023 20:50:31 +0200 Subject: Make use of __diagnose_as_builtin --- include/fortify-headers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/fortify-headers.h') diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 6f00454..b1e89c3 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -93,6 +93,11 @@ #define __alloc_size(...) #endif +#if __has_attribute (__diagnose_as_builtin) +#define __diagnose_as_builtin(...) __attribute__ ((__diagnose_as_builtin (__VA_ARGS__))) +#else +#define __diagnose_as_builtin(...) +#endif #endif /* __has_attribute */ -- cgit v1.3