summaryrefslogtreecommitdiffstats
path: root/examples/h5_attribute.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_attribute.c')
-rw-r--r--examples/h5_attribute.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c
index 03207b6..ee81d10 100644
--- a/examples/h5_attribute.c
+++ b/examples/h5_attribute.c
@@ -208,6 +208,10 @@ attr_info(hid_t loc_id, const char *name, void *opdata)
int i;
size_t npoints; /* Number of elements in the array attribute. */
float *float_array; /* Pointer to the array attribute. */
+
+ /* avoid warnings */
+ opdata = opdata;
+
/*
* Open the attribute using its name.
*/