aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mareš <mj@ucw.cz>2023-12-08 19:38:28 +0100
committerGitHub <noreply@github.com>2023-12-08 19:38:28 +0100
commit43f1672f2d3ed4c79503454a2b4b8d5257f5f7d2 (patch)
treebab1babce64c4b4e3745aaab2c0c498bf32e3c5a
parent90d270fa720862ee357735b494a0b58643a27061 (diff)
parent878fea5235a68342dc8327ba4d28acbcc580dc74 (diff)
downloadpciutils-43f1672f2d3ed4c79503454a2b4b8d5257f5f7d2.tar.gz
Merge pull request #157 from pali/master
Fix compile warnings about unused variables
-rw-r--r--lib/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c
index 8cab869..1bb4ae9 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -566,7 +566,7 @@ static int sysfs_write(struct pci_dev *d, int pos, byte *buf, int len)
/* pread() is not available and do_read() only works for a single fd, so we
* cannot implement read_vpd properly. */
-static int sysfs_read_vpd(struct pci_dev *d, int pos, byte *buf, int len)
+static int sysfs_read_vpd(struct pci_dev *d UNUSED, int pos UNUSED, byte *buf UNUSED, int len UNUSED)
{
return 0;
}