summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-04 02:52:55 (GMT)
committerkmu <kmu@hdfgroup.org>2019-12-04 02:52:55 (GMT)
commit132fa33dad6badacec90e80768d8dc8e8aa33172 (patch)
treeb296c329b62c9152fce3ca228c121a8cdf55d0c8 /tools/lib/h5diff.c
parentea0759d047dc6421da90375a9c27f7cde0a8e117 (diff)
downloadhdf5-132fa33dad6badacec90e80768d8dc8e8aa33172.zip
hdf5-132fa33dad6badacec90e80768d8dc8e8aa33172.tar.gz
hdf5-132fa33dad6badacec90e80768d8dc8e8aa33172.tar.bz2
fix intel compile warnings
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 1b4bc56..dc33d58 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -911,8 +911,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");