summaryrefslogtreecommitdiff
path: root/include/fortify-headers.h
diff options
context:
space:
mode:
authorjvoisin2025-11-14 16:25:52 +0100
committerjvoisin2025-11-14 16:56:09 +0100
commit611069d07c14bf7ace7a75fa2bc9147db8ac097d (patch)
tree03c6f2e57f91bfc945952739c8d47c4d52929bc8 /include/fortify-headers.h
parente9b6cb7e2eb7029902ae92ef43fb905e5072785b (diff)
Add __diagnose_if annotations3.0
Diffstat (limited to 'include/fortify-headers.h')
-rw-r--r--include/fortify-headers.h6
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