summaryrefslogtreecommitdiffstats
path: root/test/gen_specmetaread.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-10 20:41:20 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-10 20:41:20 (GMT)
commitf9a8fd5a4c8f3c8f2d707dd384582181a0c33077 (patch)
treed2091ee5bd75847e86ba7a8b8a137214b14187a5 /test/gen_specmetaread.c
parente5ae3101095db4b57fedf120c1dadbc257dd92c3 (diff)
downloadhdf5-f9a8fd5a4c8f3c8f2d707dd384582181a0c33077.zip
hdf5-f9a8fd5a4c8f3c8f2d707dd384582181a0c33077.tar.gz
hdf5-f9a8fd5a4c8f3c8f2d707dd384582181a0c33077.tar.bz2
H5_HAVE_PARALLEL, _DEBUG_API, etc. Add attributes to some variables and
parameters that are unused under some configurations.
Diffstat (limited to 'test/gen_specmetaread.c')
-rw-r--r--test/gen_specmetaread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/gen_specmetaread.c b/test/gen_specmetaread.c
index d06bd59..fd484d1 100644
--- a/test/gen_specmetaread.c
+++ b/test/gen_specmetaread.c
@@ -23,9 +23,10 @@
* the library on the trunk as of when this file is checked in.
*/
-#include "hdf5.h"
#include <assert.h>
+#include "testhdf5.h"
+
#define FILENAME "specmetaread.h5"
#define DIM 10
@@ -39,7 +40,7 @@ main(void)
hsize_t dim[1] = {DIM};
unsigned data[DIM];
unsigned u;
- herr_t ret; /* Generic return value */
+ herr_t H5_ATTR_NDEBUG_UNUSED ret;
/* Initialize the data */
for(u = 0; u < DIM; u++)