git: 38731172ee2a - main - xen: Use __diagused for a variable only used in KASSERT().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:16 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=38731172ee2a487673ffeb294741fdde08a722d3 commit 38731172ee2a487673ffeb294741fdde08a722d3 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-13 23:08:20 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-13 23:08:20 +0000 xen: Use __diagused for a variable only used in KASSERT(). --- sys/xen/xenbus/xenbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/xen/xenbus/xenbus.c b/sys/xen/xenbus/xenbus.c index 415279ec2311..9570abac6a58 100644 --- a/sys/xen/xenbus/xenbus.c +++ b/sys/xen/xenbus/xenbus.c @@ -105,7 +105,7 @@ xenbus_strstate(XenbusState state) void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) { - int ret; + int ret __diagused; unsigned int len; char *printf_buffer = NULL, *path_buffer = NULL;