The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=85e0cdeeb75a8fffc7910032d409417124dfee26
commit 85e0cdeeb75a8fffc7910032d409417124dfee26 Author: John Baldwin <[email protected]> AuthorDate: 2024-12-06 22:26:27 +0000 Commit: Dimitry Andric <[email protected]> CommitDate: 2025-12-29 21:48:36 +0000 cdefs: Add __deprecated1 which accepts a message as an argument This message will be included in any warning issued by the compiler for use of the deprecated function. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47701 (cherry picked from commit 6da04bcff9efedeae7d4046553002b9e3b2bc24f) --- sys/sys/cdefs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index fc0a6c2f294c..1a91b8de567b 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -215,6 +215,7 @@ #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) #define __deprecated __attribute__((__deprecated__)) +#define __deprecated1(msg) __attribute__((__deprecated__(msg))) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x)))
