diff options
| author | jvoisin | 2023-08-20 20:50:31 +0200 |
|---|---|---|
| committer | jvoisin | 2023-08-20 21:09:05 +0200 |
| commit | bfbaa577f6fc46ebb965724e0f261e79e26ec9fb (patch) | |
| tree | 65e422e5f76c71d250dcdb5bd1537ea4c560fae4 /include/fortify-headers.h | |
| parent | d6afda7207b7a8a144923ab5813d8a0816813907 (diff) | |
Make use of __diagnose_as_builtin
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 6f00454..b1e89c3 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -93,6 +93,11 @@ | |||
| 93 | #define __alloc_size(...) | 93 | #define __alloc_size(...) |
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | #if __has_attribute (__diagnose_as_builtin) | ||
| 97 | #define __diagnose_as_builtin(...) __attribute__ ((__diagnose_as_builtin (__VA_ARGS__))) | ||
| 98 | #else | ||
| 99 | #define __diagnose_as_builtin(...) | ||
| 100 | #endif | ||
| 96 | 101 | ||
| 97 | #endif /* __has_attribute */ | 102 | #endif /* __has_attribute */ |
| 98 | 103 | ||
