summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-10-09 16:55:33 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-10-09 16:55:33 (GMT)
commit9d954e1136e8b511d0f44eac25c9eafd3b155549 (patch)
treec44e2a0e45714f09f7c1c274cdbcb2a897e98afe /tools
parent53827d4017a258a6e4bfd911d4fef3fbc21bd484 (diff)
downloadhdf5-9d954e1136e8b511d0f44eac25c9eafd3b155549.zip
hdf5-9d954e1136e8b511d0f44eac25c9eafd3b155549.tar.gz
hdf5-9d954e1136e8b511d0f44eac25c9eafd3b155549.tar.bz2
[svn-r24270] checkin coverity changes from 10/4/2013.
tested with h5committest
Diffstat (limited to 'tools')
-rw-r--r--tools/h5diff/h5diffgentest.c2
-rw-r--r--tools/h5repack/h5repack_main.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/h5diff/h5diffgentest.c b/tools/h5diff/h5diffgentest.c
index 2271703..d7389d3 100644
--- a/tools/h5diff/h5diffgentest.c
+++ b/tools/h5diff/h5diffgentest.c
@@ -4874,7 +4874,7 @@ static void test_data_nocomparables (const char * fname, int make_diffs)
int data1[DIM_ARRY] = {0,0,0};
int data2[DIM_ARRY] = {1,1,1};
int data3[DIM_ARRY+1] = {1,1,1,1};
- int data1_dim2[DIM_ARRY][1] = {0,0,0};
+ int data1_dim2[DIM_ARRY][1] = {{0},{0},{0}};
int rank_attr;
char data1_str[DIM_ARRY][STR_SIZE]= {"ab","cd","ef"};
herr_t status = SUCCEED;
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c
index 7d92e4b..bc7b4e5 100644
--- a/tools/h5repack/h5repack_main.c
+++ b/tools/h5repack/h5repack_main.c
@@ -21,6 +21,8 @@
#define PROGRAMNAME "h5repack"
static int parse_command_line(int argc, const char **argv, pack_opt_t* options);
+static void leave(int ret) NORETURN;
+
/* module-scoped variables */
static int has_i_o = 0;
@@ -563,7 +565,6 @@ done:
int main(int argc, const char **argv) {
pack_opt_t options; /*the global options */
- int ret = -1;
h5tools_setprogname(PROGRAMNAME);
h5tools_setstatus(EXIT_SUCCESS);