diff options
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 3eaed7c..bc7bf00 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -106,9 +106,9 @@ | |||
| 106 | #define __diagnose_as_builtin(...) | 106 | #define __diagnose_as_builtin(...) |
| 107 | #endif | 107 | #endif |
| 108 | 108 | ||
| 109 | #if __has_attribute (__diagnose_if) | 109 | #if __has_attribute (diagnose_if) |
| 110 | #define __warning_if(cond, msg) __attribute__ ((__diagnose_if (cond, msg, "warning"))) | 110 | #define __warning_if(cond, msg) __attribute__ ((diagnose_if (cond, msg, "warning"))) |
| 111 | #define __error_if(cond, msg) __attribute__ ((__diagnose_if (cond, msg, "error"))) | 111 | #define __error_if(cond, msg) __attribute__ ((diagnose_if (cond, msg, "error"))) |
| 112 | #else | 112 | #else |
| 113 | #define __warning_if(cond, msg) | 113 | #define __warning_if(cond, msg) |
| 114 | #define __error_if(cond, msg) | 114 | #define __error_if(cond, msg) |
