summaryrefslogtreecommitdiffstats
path: root/test/stab.c
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 /test/stab.c
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 'test/stab.c')
-rw-r--r--test/stab.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/stab.c b/test/stab.c
index 697bce0..45010d5 100644
--- a/test/stab.c
+++ b/test/stab.c
@@ -178,7 +178,7 @@ error:
H5Gclose(g3);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
}
@@ -261,7 +261,7 @@ error:
HDfree(name2);
HDfree(name1);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end test_long() */
@@ -335,7 +335,7 @@ error:
H5Gclose(cwg);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end test_large() */
@@ -622,7 +622,7 @@ error:
H5Gclose(gid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end lifecycle() */
@@ -785,7 +785,7 @@ error:
H5Gclose(gid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (objname)
HDfree(objname);
@@ -895,7 +895,7 @@ error:
H5Gclose(gid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end read_old() */
@@ -1036,7 +1036,7 @@ error:
H5Gclose(gid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end no_compact() */
@@ -1189,7 +1189,7 @@ error:
H5Gclose(fcpl);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end gcpl_on_root() */
@@ -1293,7 +1293,7 @@ error:
H5Gclose(gid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
#endif /* H5_NO_DEPRECATED_SYMBOLS */
} /* end old_api() */
@@ -1387,7 +1387,7 @@ error:
H5Dclose(did);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
} /* end corrupt_stab_msg() */