aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-06-27 17:19:31 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-06-27 17:19:31 +0000
commitccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f (patch)
tree91744567a5c7bd9b369917b7fc9fceca3a0b8f13
parent36c2fec31dd6e7663acf8f9aac12e66dfff71889 (diff)
downloadsrc-ccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f.tar.gz
src-ccfd87fe2ac0e2e6aeb1911a7d7cce6712a8564f.zip
libefivar: Use a void cast in unimplemented stubs.
This "consumes" an otherwise unused argument. Differential Revision: https://reviews.freebsd.org/D40650
-rw-r--r--lib/libefivar/efivar-dp-parse.c4
1 files 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.