summaryrefslogtreecommitdiffstats
path: root/examples/h5_group.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_group.c')
-rw-r--r--examples/h5_group.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c
index 00f9426..e1181ba 100644
--- a/examples/h5_group.c
+++ b/examples/h5_group.c
@@ -153,6 +153,10 @@ main(void)
*/
herr_t file_info(hid_t loc_id, const char *name, void *opdata)
{
+ /* avoid warnings */
+ loc_id = loc_id;
+ opdata = opdata;
+
/*
* Display group name. The name is passed to the function by
* the Library. Some magic :-)
@@ -177,6 +181,10 @@ herr_t group_info(hid_t loc_id, const char *name, void *opdata)
hsize_t chunk_dims_out[2];
int rank_chunk;
+
+ /* avoid warnings */
+ opdata = opdata;
+
/*
* Open the datasets using their names.
*/