utils/magic.h: ANALYSER_xxxxxxxxxx __attribute__
This commit is contained in:
parent
2fcd024bdb
commit
1aee10ef4d
|
|
@ -177,6 +177,12 @@ extern char AbortMessage[];
|
||||||
#define ATTR_UNREACHABLE __builtin_unreachable()
|
#define ATTR_UNREACHABLE __builtin_unreachable()
|
||||||
#define ATTR_NORETURN __attribute__((noreturn))
|
#define ATTR_NORETURN __attribute__((noreturn))
|
||||||
#define __unused__(x) x __attribute__((unused))
|
#define __unused__(x) x __attribute__((unused))
|
||||||
|
|
||||||
|
#define ANALYSER_CSTRING(n) __attribute__((null_terminated_string_arg(n)))
|
||||||
|
#define ANALYSER_FD_ARG(fd) __attribute__((fd_arg(fd)))
|
||||||
|
#define ANALYSER_MALLOC(dealloc, idx) __attribute__((malloc, malloc(dealloc, idx)))
|
||||||
|
#define ANALYSER_NONNULL(n...) __attribute__((nonnull(n)))
|
||||||
|
#define ANALYSER_RETURNS_NONNULL __attribute__((returns_nonnull))
|
||||||
#else
|
#else
|
||||||
#define ATTR_FORMAT_PRINTF_1 /* */
|
#define ATTR_FORMAT_PRINTF_1 /* */
|
||||||
#define ATTR_FORMAT_PRINTF_2 /* */
|
#define ATTR_FORMAT_PRINTF_2 /* */
|
||||||
|
|
@ -184,6 +190,12 @@ extern char AbortMessage[];
|
||||||
#define ATTR_UNREACHABLE /* */
|
#define ATTR_UNREACHABLE /* */
|
||||||
#define ATTR_NORETURN /* */
|
#define ATTR_NORETURN /* */
|
||||||
#define __unused__(x) x
|
#define __unused__(x) x
|
||||||
|
|
||||||
|
#define ANALYSER_CSTRING(n) /* */
|
||||||
|
#define ANALYSER_FD_ARG(fd) /* */
|
||||||
|
#define ANALYSER_MALLOC(dealloc, idx) /* */
|
||||||
|
#define ANALYSER_NONNULL(n...) /* */
|
||||||
|
#define ANALYSER_RETURNS_NONNULL /* */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ---------------- Start of Machine Configuration Section ----------------- */
|
/* ---------------- Start of Machine Configuration Section ----------------- */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue