diff options
| author | jvoisin | 2023-09-21 15:50:32 +0200 |
|---|---|---|
| committer | jvoisin | 2023-09-21 15:50:32 +0200 |
| commit | 8c2352b985b1bf69efb965ba15f5e300eb7e8e12 (patch) | |
| tree | 9901e915156ca32c0b9f006f3139ba34958f68ef /include/fortify-headers.h | |
| parent | 46add4c4aecbbb8edb4b70ac5ed3a8c144f497ee (diff) | |
Properly enable diagnose_as_builtin attribute
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index bc7bf00..46d5610 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -100,8 +100,8 @@ | |||
| 100 | #define __alloc_size(...) | 100 | #define __alloc_size(...) |
| 101 | #endif | 101 | #endif |
| 102 | 102 | ||
| 103 | #if __has_attribute (__diagnose_as_builtin) | 103 | #if __has_attribute (diagnose_as_builtin) |
| 104 | #define __diagnose_as_builtin(...) __attribute__ ((__diagnose_as_builtin (__VA_ARGS__))) | 104 | #define __diagnose_as_builtin(...) __attribute__ ((diagnose_as_builtin (__VA_ARGS__))) |
| 105 | #else | 105 | #else |
| 106 | #define __diagnose_as_builtin(...) | 106 | #define __diagnose_as_builtin(...) |
| 107 | #endif | 107 | #endif |
