diff options
Diffstat (limited to '')
| -rw-r--r-- | include/fortify-headers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 67c4792..1581076 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -73,6 +73,12 @@ | |||
| 73 | #define __format(...) | 73 | #define __format(...) |
| 74 | #endif | 74 | #endif |
| 75 | 75 | ||
| 76 | #if __has_attribute (__diagnose_if) | ||
| 77 | #define __warning_if(cond, msg) __attribute__ ((__diagnose_if (cond, msg, "warning"))) | ||
| 78 | #else | ||
| 79 | #define __warning_if(cond, msg) | ||
| 80 | #endif | ||
| 81 | |||
| 76 | #endif | 82 | #endif |
| 77 | 83 | ||
| 78 | #endif | 84 | #endif |
