summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-11-13 02:11:23 (GMT)
committerGitHub <noreply@github.com>2021-11-13 02:11:23 (GMT)
commit4475a12b5fb82bb04cbfc2eebf10481d4a57a3f0 (patch)
treea678997d0e74f741531885656d48dddad0b6c09d /test
parentb9da39d19fa321ebee76db994571ed7a02178db0 (diff)
downloadhdf5-4475a12b5fb82bb04cbfc2eebf10481d4a57a3f0.zip
hdf5-4475a12b5fb82bb04cbfc2eebf10481d4a57a3f0.tar.gz
hdf5-4475a12b5fb82bb04cbfc2eebf10481d4a57a3f0.tar.bz2
Fixes unused parameter warnings in the null VFD (#1179)
Diffstat (limited to 'test')
-rw-r--r--test/null_vfd_plugin.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/null_vfd_plugin.c b/test/null_vfd_plugin.c
index 8031484..f41da00 100644
--- a/test/null_vfd_plugin.c
+++ b/test/null_vfd_plugin.c
@@ -75,42 +75,73 @@ static const H5FD_class_t H5FD_null_g = {
static H5FD_t *
H5FD_null_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
{
+ (void)name;
+ (void)flags;
+ (void)fapl_id;
+ (void)maxaddr;
+
return NULL;
}
static herr_t
H5FD_null_close(H5FD_t *_file)
{
+ (void)_file;
+
return 0;
}
static herr_t
H5FD_null_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, void *buf)
{
+ (void)_file;
+ (void)type;
+ (void)dxpl_id;
+ (void)addr;
+ (void)size;
+ (void)buf;
+
return 0;
}
static herr_t
H5FD_null_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void *buf)
{
+ (void)_file;
+ (void)type;
+ (void)dxpl_id;
+ (void)addr;
+ (void)size;
+ (void)buf;
+
return 0;
}
static haddr_t
H5FD_null_get_eoa(const H5FD_t *_file, H5FD_mem_t type)
{
+ (void)_file;
+ (void)type;
+
return HADDR_UNDEF;
}
static herr_t
H5FD_null_set_eoa(H5FD_t *_file, H5FD_mem_t type, haddr_t addr)
{
+ (void)_file;
+ (void)type;
+ (void)addr;
+
return 0;
}
static haddr_t
H5FD_null_get_eof(const H5FD_t *_file, H5FD_mem_t type)
{
+ (void)_file;
+ (void)type;
+
return HADDR_UNDEF;
}