summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-04 02:52:55 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:25 (GMT)
commit1d46e823172046f259eb054370ea721eacad79b1 (patch)
tree11528139965614d2398171c275243eb55d1bd0b5 /tools/lib
parentfb8f955a73a41de8fa457424c4622f6dc072f53d (diff)
downloadhdf5-1d46e823172046f259eb054370ea721eacad79b1.zip
hdf5-1d46e823172046f259eb054370ea721eacad79b1.tar.gz
hdf5-1d46e823172046f259eb054370ea721eacad79b1.tar.bz2
fix intel compile warnings
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5diff.c10
-rw-r--r--tools/lib/h5diff_attr.c10
2 files changed, 16 insertions, 4 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 82c1a50..4babc7d 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -912,8 +912,14 @@ h5diff(const char *fname1,
parallel_print("---------------------------------------\n");
for(u = 0; u < match_list->nobjs; u++) {
char c1, c2;
- c1 = (match_list->objs[u].flags[0]) ? 'x' : ' ';
- c2 = (match_list->objs[u].flags[1]) ? 'x' : ' ';
+ if (match_list->objs[u].flags[0])
+ c1 = 'x';
+ else
+ c1 = ' ';
+ if (match_list->objs[u].flags[1])
+ c2 = 'x';
+ else
+ c2 = ' ';
parallel_print("%5c %6c %-15s\n", c1, c2, match_list->objs[u].name);
} /* end for */
parallel_print ("\n");
diff --git a/tools/lib/h5diff_attr.c b/tools/lib/h5diff_attr.c
index c93293b..5bd27d4 100644
--- a/tools/lib/h5diff_attr.c
+++ b/tools/lib/h5diff_attr.c
@@ -279,8 +279,14 @@ static herr_t build_match_list_attrs(hid_t loc1_id, hid_t loc2_id, table_attrs_t
parallel_print(" --------------------------------------\n");
for(i = 0; i < (unsigned int) table_lp->nattrs; i++) {
char c1, c2;
- c1 = (table_lp->attrs[i].exist[0]) ? 'x' : ' ';
- c2 = (table_lp->attrs[i].exist[1]) ? 'x' : ' ';
+ if (table_lp->attrs[i].exist[0])
+ c1 = 'x';
+ else
+ c1 = ' ';
+ if (table_lp->attrs[i].exist[1])
+ c2 = 'x';
+ else
+ c2 = ' ';
parallel_print("%5c %6c %-15s\n", c1, c2, table_lp->attrs[i].name);
} /* end for */
}