From c1642e5a43de3affa75d52c3577ee1be4c874a5d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 13 Mar 2026 01:07:17 +0100 Subject: Fixes compilation with clang and -D_FORTIFY_SOURCE=2 This commit fixes the typo pass_object_size__ for pass_object_size. It also adds tests in the CI to prevent this from happening again. Ref https://clang.llvm.org/docs/AttributeReference.html#pass-object-size-pass-dynamic-object-size Co-Authored-By: Sertonix --- include/fortify-headers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/fortify-headers.h') diff --git a/include/fortify-headers.h b/include/fortify-headers.h index c32d5fb..3dc33b7 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -23,7 +23,7 @@ #define _FORTIFY_POSN(n) const __attribute__((pass_dynamic_object_size(n))) #else /* clang uses overloads; see https://github.com/llvm/llvm-project/issues/53516 */ -#define _FORTIFY_POSN(n) const __attribute__((pass_object_size__(n))) +#define _FORTIFY_POSN(n) const __attribute__((pass_object_size(n))) #endif /* we can't use extern inline with overloads without making them external */ -- cgit v1.3