diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-05-03 00:25:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 00:25:57 (GMT) |
commit | 08861aa903510e9f7ba89f79590f852e5aae1f37 (patch) | |
tree | f6ca17a30cc666e11d5a1792d1cc6b110093a9ca /test/ntypes.c | |
parent | dad94a100ed813aab7267f261a2abbfb7016a63f (diff) | |
download | hdf5-08861aa903510e9f7ba89f79590f852e5aae1f37.zip hdf5-08861aa903510e9f7ba89f79590f852e5aae1f37.tar.gz hdf5-08861aa903510e9f7ba89f79590f852e5aae1f37.tar.bz2 |
Fixes unused/unset variable warnings from aocc (#1712)
* Fixes unused/unset variable warnings from aocc
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/ntypes.c')
-rw-r--r-- | test/ntypes.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/ntypes.c b/test/ntypes.c index 3518e68..e79f974 100644 --- a/test/ntypes.c +++ b/test/ntypes.c @@ -2957,8 +2957,7 @@ test_ninteger(void) hid_t nid1 = -1; /* native datatype */ hid_t nid2 = -1; /* native datatype */ hsize_t dims[1] = {DIM3}; /* dataspace dimensions */ - hsize_t nelmts; /* number of elements in dataset */ - int rank = 1; /* rank of dataset */ + int rank = 1; /* rank of dataset */ int buf[DIM3]; int chk[DIM3]; int i; @@ -3042,9 +3041,6 @@ test_ninteger(void) /* get dimension */ if (H5Sget_simple_extent_dims(sid1, dims, NULL) < 0) FAIL_STACK_ERROR - nelmts = 1; - for (i = 0; i < rank; i++) - nelmts *= dims[i]; /* read */ if (H5Dread(did1, nid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, chk) < 0) |