summaryrefslogtreecommitdiffstats
path: root/tools/src/h5import
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2023-06-16 04:49:02 (GMT)
committerGitHub <noreply@github.com>2023-06-16 04:49:02 (GMT)
commit68eba3da69e659fab69bbef5901ce42e82cea1dc (patch)
treef36805f798df6c04092c14dc6803d2cb82f6eff2 /tools/src/h5import
parent10093f7c4345061bdbebc12888debbf08fe85a5b (diff)
downloadhdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.zip
hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.tar.gz
hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.tar.bz2
Many clang -Wextra-semi-stmt fixes (#2537)
* Adds semicolons to function-like macros * Adds a do..while(0) loop to some macros * Removes semicolons when inappropriate, especially H5E_TRY_BEGIN/END
Diffstat (limited to 'tools/src/h5import')
-rw-r--r--tools/src/h5import/h5import.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index 5a2fae3..428d32f 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -1021,7 +1021,7 @@ processStrData(FILE *strm, struct Input *in, hid_t file_id)
/*enable error reporting */
}
- H5E_END_TRY;
+ H5E_END_TRY
if ((space_id = H5Screate_simple(1, dims, NULL)) < 0)
goto out;
@@ -1147,7 +1147,7 @@ processStrHDFData(FILE *strm, struct Input *in, hid_t file_id)
/*enable error reporting */
}
- H5E_END_TRY;
+ H5E_END_TRY
#ifdef H5DEBUGIMPORT
HDprintf("processStrHDFData DATATYPE STRING groups created\n");
#endif
@@ -1249,7 +1249,7 @@ out:
H5Sclose(mspace_id);
H5Tclose(type_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return (-1);
}
@@ -4629,7 +4629,7 @@ process(struct Options *opt)
}
}
}
- H5E_END_TRY;
+ H5E_END_TRY
for (k = 0; k < opt->fcount; k++) {
in = &(opt->infiles[k].in);
@@ -4677,7 +4677,7 @@ process(struct Options *opt)
/*enable error reporting */
}
- H5E_END_TRY;
+ H5E_END_TRY
/*create data type */
intype = createInputDataType(in);
@@ -4733,7 +4733,7 @@ process(struct Options *opt)
/*enable error reporting */
}
- H5E_END_TRY;
+ H5E_END_TRY
/* write dataset */
if (H5Dwrite(dataset, intype, H5S_ALL, H5S_ALL, H5P_DEFAULT, (VOIDP)in->data) < 0) {