summaryrefslogtreecommitdiff
path: root/include/fortify-headers.h
diff options
context:
space:
mode:
authorjvoisin2026-03-13 01:07:17 +0100
committerjvoisin2026-03-13 01:11:26 +0100
commitc1642e5a43de3affa75d52c3577ee1be4c874a5d (patch)
tree2684196a7af91ff9b6c97a91e94fb92eb6ef9f24 /include/fortify-headers.h
parent9db427391bb5dc5b2722345cb91edbba65c10623 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/fortify-headers.h2
1 files changed, 1 insertions, 1 deletions
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 @@
23#define _FORTIFY_POSN(n) const __attribute__((pass_dynamic_object_size(n))) 23#define _FORTIFY_POSN(n) const __attribute__((pass_dynamic_object_size(n)))
24#else 24#else
25/* clang uses overloads; see https://github.com/llvm/llvm-project/issues/53516 */ 25/* clang uses overloads; see https://github.com/llvm/llvm-project/issues/53516 */
26#define _FORTIFY_POSN(n) const __attribute__((pass_object_size__(n))) 26#define _FORTIFY_POSN(n) const __attribute__((pass_object_size(n)))
27#endif 27#endif
28 28
29/* we can't use extern inline with overloads without making them external */ 29/* we can't use extern inline with overloads without making them external */