Date: Tue, 20 Jun 2023 16:29:31 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c555dcddceec - main - libalias tests: Mark an unused variable with __unused. Message-ID: <202306201629.35KGTV3j045320@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c555dcddceec0c27242f9159755a43959853dc2f commit c555dcddceec0c27242f9159755a43959853dc2f Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-20 16:29:00 +0000 libalias tests: Mark an unused variable with __unused. It is not trivial to remove this set but unused variable since it assigned to inside of a macro body, so just mark it with __unused instead. --- tests/sys/netinet/libalias/2_natout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/netinet/libalias/2_natout.c b/tests/sys/netinet/libalias/2_natout.c index 4dfffdc055e2..c6f5797b2db7 100644 --- a/tests/sys/netinet/libalias/2_natout.c +++ b/tests/sys/netinet/libalias/2_natout.c @@ -202,7 +202,7 @@ ATF_TC_BODY(6_cleartable, dummy) { struct libalias *la = LibAliasInit(NULL); struct ip *po, *pi; - struct udphdr *ui, *uo; + struct udphdr *ui __unused, *uo; uint16_t sport = 0x1234; uint16_t dport = 0x5678; uint16_t aport;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306201629.35KGTV3j045320>