Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2023 06:31:22 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 16e9ec4406c8 - main - stand: mark unused argment as unused
Message-ID:  <202304220631.33M6VMYQ026765@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=16e9ec4406c8bf4e06d72e97ebd47bc8dd6c0319

commit 16e9ec4406c8bf4e06d72e97ebd47bc8dd6c0319
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-04-22 06:29:03 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-04-22 06:30:43 +0000

    stand: mark unused argment as unused
    
    We don't use the 'ver' argument for uuids sometimes, so mark it unused.
    
    Sponsored by:           Netflix
---
 stand/libsa/smbios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c
index 257aa15bd5f5..657e1635e6e1 100644
--- a/stand/libsa/smbios.c
+++ b/stand/libsa/smbios.c
@@ -198,7 +198,7 @@ smbios_setenv(const char *name, caddr_t addr, const int offset)
 #define	UUID_GET(base, off)	(*(UUID_TYPE *)((base) + (off)))
 
 static void
-smbios_setuuid(const char *name, const caddr_t addr, const int ver)
+smbios_setuuid(const char *name, const caddr_t addr, const int ver __unused)
 {
 	char		uuid[37];
 	int		byteorder, i, ones, zeros;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304220631.33M6VMYQ026765>