summaryrefslogtreecommitdiffstats
path: root/examples/h5_attribute.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-11-13 21:06:27 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-11-13 21:06:27 (GMT)
commit5f41cdba4dc7cbc2c1eeca6d24ac2e94002bdbb2 (patch)
treef1a699d465f2003c112d783d6050e9e0686ac96f /examples/h5_attribute.c
parentc675002809c26bee00025d1e2a6769df7740e463 (diff)
downloadhdf5-5f41cdba4dc7cbc2c1eeca6d24ac2e94002bdbb2.zip
hdf5-5f41cdba4dc7cbc2c1eeca6d24ac2e94002bdbb2.tar.gz
hdf5-5f41cdba4dc7cbc2c1eeca6d24ac2e94002bdbb2.tar.bz2
[svn-r2883] Purpose:
Removed warnings about unused parameters. Solution: ``Used'' the parameters by assigning them to themselves. Platforms tested: Linux
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.
*/