From ccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 27 Jun 2023 10:19:31 -0700 Subject: 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. -- cgit v1.2.3