diff options
| author | jvoisin | 2023-09-11 18:39:49 +0200 |
|---|---|---|
| committer | jvoisin | 2023-09-11 18:39:49 +0200 |
| commit | beb2422deae7cb24a725b9b23aa818488204b6bc (patch) | |
| tree | 7ae30496b01ef7eb29f6c1e1b2c60532fe8fe9ec | |
| parent | f3c9815580f7e2684a7f517a4e656f13e4347e77 (diff) | |
Add a warning for _FORTIFY_SOURCE>3
| -rw-r--r-- | include/fortify-headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
| 25 | #define __builtin_trap abort | 25 | #define __builtin_trap abort |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | #if _FORTIFY_SOURCE > 3 | ||
| 29 | #warning _FORTIFY_SOURCE > 3 is treated as 3 | ||
| 30 | #endif | ||
| 31 | |||
| 28 | #ifdef __clang__ | 32 | #ifdef __clang__ |
| 29 | 33 | ||
| 30 | #if _FORTIFY_SOURCE > 2 && __has_builtin (__builtin_dynamic_object_size) && __has_attribute(pass_dynamic_object_size) | 34 | #if _FORTIFY_SOURCE > 2 && __has_builtin (__builtin_dynamic_object_size) && __has_attribute(pass_dynamic_object_size) |
