From beb2422deae7cb24a725b9b23aa818488204b6bc Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 11 Sep 2023 18:39:49 +0200 Subject: Add a warning for _FORTIFY_SOURCE>3 --- include/fortify-headers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 74c814b..5be4271 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -25,6 +25,10 @@ #define __builtin_trap abort #endif +#if _FORTIFY_SOURCE > 3 +#warning _FORTIFY_SOURCE > 3 is treated as 3 +#endif + #ifdef __clang__ #if _FORTIFY_SOURCE > 2 && __has_builtin (__builtin_dynamic_object_size) && __has_attribute(pass_dynamic_object_size) -- cgit v1.3