Download raw body.
Fix -Wunused-but-set-parameter in sys/dev/pci/nviic.c
Fix for warning
/sys/dev/pci/nviic.c:218:67: warning: parameter 'flags' set but not used [-Wunused-but-set-parameter]
Index: dev/pci/nviic.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/nviic.c,v
retrieving revision 1.18
diff -u -p -u -p -r1.18 nviic.c
--- dev/pci/nviic.c 11 Mar 2022 18:00:51 -0000 1.18
+++ dev/pci/nviic.c 14 Nov 2026 19:15:58 -0000
@@ -215,7 +215,8 @@ nviic_i2c_release_bus(void *arg, int fla
int
nviic_i2c_exec(void *arg, i2c_op_t op, i2c_addr_t addr,
- const void *cmdbuf, size_t cmdlen, void *buf, size_t len, int flags)
+ const void *cmdbuf, size_t cmdlen, void *buf, size_t len,
+ int flags __unused)
{
struct nviic_controller *nc = arg;
#ifdef NVIIC_DEBUG
Fix -Wunused-but-set-parameter in sys/dev/pci/nviic.c