summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-03-09 16:59:44 (GMT)
committerGitHub <noreply@github.com>2021-03-09 16:59:44 (GMT)
commitc41a1cb2094ae0cc5fb40671181ce4e9f73ba9dc (patch)
treee46cf36de718f68f5bd4bc224c846e1d22b64843 /hl/test
parent5f376ccb3e8d242329a431b89bb4103500b1ad38 (diff)
downloadhdf5-c41a1cb2094ae0cc5fb40671181ce4e9f73ba9dc.zip
hdf5-c41a1cb2094ae0cc5fb40671181ce4e9f73ba9dc.tar.gz
hdf5-c41a1cb2094ae0cc5fb40671181ce4e9f73ba9dc.tar.bz2
Applied clang-tidy readability-non-const-parameter warning fixes auto… (#429)
* Automatically applied clang-tidy readability-avoid-const-params-in-decls fixes Removes useless const declarations. * Fixed most readability-non-const-parameter warnings These changes were made automatically by clang-tidy, but I manually reverted the changes related to the H5Z_func_t signature. * Reformat source with clang v10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_file_image.c2
-rw-r--r--hl/test/test_ld.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/hl/test/test_file_image.c b/hl/test/test_file_image.c
index c20112f..f820568 100644
--- a/hl/test/test_file_image.c
+++ b/hl/test/test_file_image.c
@@ -51,7 +51,7 @@
*-------------------------------------------------------------------------
*/
static int
-test_file_image(size_t open_images, size_t nflags, unsigned *flags)
+test_file_image(size_t open_images, size_t nflags, const unsigned *flags)
{
hid_t * file_id, *dset_id, file_space, plist; /* HDF5 ids */
hsize_t dims1[RANK] = {2, 3}; /* original dimension of datasets */
diff --git a/hl/test/test_ld.c b/hl/test/test_ld.c
index 06cb600..02a56f4 100644
--- a/hl/test/test_ld.c
+++ b/hl/test/test_ld.c
@@ -157,7 +157,8 @@ static herr_t test_LD_elmts_invalid(const char *file);
static herr_t test_LD_elmts_one(const char *file, const char *dname, const char *fields);
static herr_t test_LD_elmts_two(const char *file, const char *dname, const char *fields);
-static herr_t verify_elmts_two(int type, hsize_t *ext_dims, hsize_t *prev_dims, void *_ldbuf, void *_buf);
+static herr_t verify_elmts_two(int type, const hsize_t *ext_dims, const hsize_t *prev_dims, void *_ldbuf,
+ void *_buf);
/* data structures for compound data type */
typedef struct sub22_t {
@@ -1135,7 +1136,7 @@ error:
**************************************************************************************
*/
static herr_t
-verify_elmts_two(int type, hsize_t *ext_dims, hsize_t *prev_dims, void *_ldbuf, void *_buf)
+verify_elmts_two(int type, const hsize_t *ext_dims, const hsize_t *prev_dims, void *_ldbuf, void *_buf)
{
int k, m; /* Local index variable */