summaryrefslogtreecommitdiffstats
path: root/test/gen_nullspace.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-19 15:38:02 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-19 15:38:02 (GMT)
commit7b4131c2ae997f8e870ed57a9fca2f7f6d3ea233 (patch)
tree39039e0a303502b831ca50305661ad714221d66d /test/gen_nullspace.c
parent47b79b7422c91e53ae5d87bcda45d52798a64fb6 (diff)
parent50aac126d7c4082c2aeb0f3a68cad26bd1cd9783 (diff)
downloadhdf5-7b4131c2ae997f8e870ed57a9fca2f7f6d3ea233.zip
hdf5-7b4131c2ae997f8e870ed57a9fca2f7f6d3ea233.tar.gz
hdf5-7b4131c2ae997f8e870ed57a9fca2f7f6d3ea233.tar.bz2
Merge pull request #2367 in HDFFV/hdf5 from ~DYOUNG/werror:unused to develop
* commit '50aac126d7c4082c2aeb0f3a68cad26bd1cd9783': Start to document the function/parameter/variable attribute macros. Filter all of the new _USED / _UNUSED type modifiers. H5_HAVE_PARALLEL, _DEBUG_API, etc. Add attributes to some variables and parameters that are unused under some configurations.
Diffstat (limited to 'test/gen_nullspace.c')
-rw-r--r--test/gen_nullspace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gen_nullspace.c b/test/gen_nullspace.c
index 9d76deb..e4e75ac 100644
--- a/test/gen_nullspace.c
+++ b/test/gen_nullspace.c
@@ -24,8 +24,8 @@
* put into the 'test' directory in the 1.6.x branch of the library.
*/
-#include "hdf5.h"
#include <assert.h>
+#include "testhdf5.h"
#define NULLFILE "tnullspace.h5"
#define NULLDATASET "null_dataset"
@@ -39,7 +39,7 @@ main(void)
hid_t sid; /* Dataspace ID */
hid_t did; /* Dataset ID */
hid_t attr; /* Attribute ID */
- herr_t ret; /* Generic return value */
+ herr_t H5_ATTR_NDEBUG_UNUSED ret; /* Generic return value */
/* Create the file */
fid = H5Fcreate(NULLFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);