commit beb2422deae7cb24a725b9b23aa818488204b6bc
parent f3c9815580f7e2684a7f517a4e656f13e4347e77
Author: jvoisin <julien.voisin@dustri.org>
Date: Mon, 11 Sep 2023 18:39:49 +0200
Add a warning for _FORTIFY_SOURCE>3
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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)