summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-06-02 19:03:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-06-02 19:03:01 (GMT)
commitdececc731333713bc63f972fdd2fdb3325ac077e (patch)
tree97dfca141a205db8c6c56055635f193355005c12
parent849a6c299d1e07f0392bfe99d21e178494c035a2 (diff)
downloadhdf5-dececc731333713bc63f972fdd2fdb3325ac077e.zip
hdf5-dececc731333713bc63f972fdd2fdb3325ac077e.tar.gz
hdf5-dececc731333713bc63f972fdd2fdb3325ac077e.tar.bz2
[svn-r12399] Purpose:
Bug fix Description: Disable this file generator unless the group revision flag is enabled. Platforms tested: None, just eyeballed - very minor change
-rw-r--r--test/gen_new_group.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/gen_new_group.c b/test/gen_new_group.c
index 2df351f..bff23ed 100644
--- a/test/gen_new_group.c
+++ b/test/gen_new_group.c
@@ -32,6 +32,7 @@
int main(void)
{
+#ifdef H5_GROUP_REVISION
hid_t fid = -1; /* File ID */
hid_t fcpl = -1; /* File creation property list ID */
hid_t gid = -1; /* Group creation property list ID */
@@ -77,9 +78,11 @@ int main(void)
/* Close file */
if(H5Fclose(fid) < 0) goto error;
+#endif /* H5_GROUP_REVISION */
return 0;
+#ifdef H5_GROUP_REVISION
error:
H5E_BEGIN_TRY {
H5Pclose(did);
@@ -89,5 +92,6 @@ error:
H5Fclose(fid);
} H5E_END_TRY;
return 1;
+#endif /* H5_GROUP_REVISION */
}