summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_parse.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-04-03 15:32:18 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-04-03 15:32:18 (GMT)
commitced86830111289d78014f36e04eff1aab0e50fd0 (patch)
treedf1751db3b142f3ea1273963dabbd0b37a4adb15 /tools/h5repack/h5repack_parse.c
parent385f2b485440cfcd54abfcb1872402c91ca9dad9 (diff)
downloadhdf5-ced86830111289d78014f36e04eff1aab0e50fd0.zip
hdf5-ced86830111289d78014f36e04eff1aab0e50fd0.tar.gz
hdf5-ced86830111289d78014f36e04eff1aab0e50fd0.tar.bz2
[svn-r16663] cleaned compiler warnings in linux
tested: linux
Diffstat (limited to 'tools/h5repack/h5repack_parse.c')
-rw-r--r--tools/h5repack/h5repack_parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_parse.c b/tools/h5repack/h5repack_parse.c
index d684da8..154d6e5 100644
--- a/tools/h5repack/h5repack_parse.c
+++ b/tools/h5repack/h5repack_parse.c
@@ -95,7 +95,7 @@ obj_list_t* parse_filter(const char *str,
}
n++;
- obj_list = malloc(n*sizeof(obj_list_t));
+ obj_list = (obj_list_t*) malloc(n*sizeof(obj_list_t));
if (obj_list==NULL)
{
error_msg(progname, "could not allocate object list\n");
@@ -446,6 +446,8 @@ obj_list_t* parse_filter(const char *str,
exit(1);
}
break;
+ default:
+ break;
};
@@ -514,7 +516,7 @@ obj_list_t* parse_layout(const char *str,
}
n++;
- obj_list=malloc(n*sizeof(obj_list_t));
+ obj_list = (obj_list_t*) malloc(n*sizeof(obj_list_t));
if (obj_list==NULL)
{
error_msg(progname, "could not allocate object list\n");