summaryrefslogtreecommitdiffstats
path: root/test/enum.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-19 13:06:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-19 13:06:57 (GMT)
commit6d7cbd13dce1ae24446ed84a88c64c68598dc6bf (patch)
tree9debd9624be08fb8ff72f91e2416ae853939e2fc /test/enum.c
parenta00188dde45dfd59728e1e68ddbf6cad5e1d014c (diff)
downloadhdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.zip
hdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.tar.gz
hdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.tar.bz2
[svn-r5668] Purpose:
Code cleanup Description: Turn on more warnings in the IRIX builds and clean them up. Platforms tested: IRIX64 6.5 (modi4) w/parallel, both -n32 and the default (-64?) mode
Diffstat (limited to 'test/enum.c')
-rw-r--r--test/enum.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/enum.c b/test/enum.c
index 464db00..c9d5e48 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -372,18 +372,19 @@ test_tr2(hid_t file)
*-------------------------------------------------------------------------
*/
static int
-test_value_dsnt_exist()
+test_value_dsnt_exist(void)
{
hid_t datatype_id; /* identifiers */
- herr_t status;
int val;
char nam[100];
size_t size = 100;
+
TESTING("for non-existing name and value");
+
/* Turn off error reporting since we expect failure in this test */
-
if (H5Eset_auto(NULL, NULL) < 0) goto error;
+
if ((datatype_id = H5Tenum_create(H5T_NATIVE_INT))< 0) goto error;
/* These calls should fail, since no memebrs exist yet */