git: ccfd87fe2ac0 - main - libefivar: Use a void cast in unimplemented stubs.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jun 2023 17:19:38 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f commit ccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-27 17:19:31 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-27 17:19:31 +0000 libefivar: Use a void cast in unimplemented stubs. This "consumes" an otherwise unused argument. Differential Revision: https://reviews.freebsd.org/D40650 --- lib/libefivar/efivar-dp-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libefivar/efivar-dp-parse.c b/lib/libefivar/efivar-dp-parse.c index b47f3401c835..b9a2a138d18b 100644 --- a/lib/libefivar/efivar-dp-parse.c +++ b/lib/libefivar/efivar-dp-parse.c @@ -45,8 +45,8 @@ __FBSDID("$FreeBSD$"); #include "uefi-dplib.h" /* XXX STUBS -- this stuff doesn't work yet */ -#define StrToIpv4Address(str, unk, ipv4ptr, unk2) -#define StrToIpv6Address(str, unk, ipv6ptr, unk2) +#define StrToIpv4Address(str, unk, ipv4ptr, unk2) (void)(str) +#define StrToIpv6Address(str, unk, ipv6ptr, unk2) (void)(str) /* * OK. Now this is evil. Can't typedef it again. Sure beats changing them all.