diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-24 14:25:17 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-24 14:25:17 (GMT) |
commit | f4c99bf7d568a6aa9b0183e29126437348f125b9 (patch) | |
tree | 395c767a75f060c70501c1d141d346d6338774f7 /src | |
parent | 27d6096b64bb0e2df18301b201a62cfb8467a63d (diff) | |
download | hdf5-f4c99bf7d568a6aa9b0183e29126437348f125b9.zip hdf5-f4c99bf7d568a6aa9b0183e29126437348f125b9.tar.gz hdf5-f4c99bf7d568a6aa9b0183e29126437348f125b9.tar.bz2 |
[svn-r370] Fixed a couple of compiler warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5.c | 2 | ||||
-rw-r--r-- | src/H5A.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -455,7 +455,7 @@ H5close (void) int HDfprintf (FILE *stream, const char *fmt, ...) { - int n, nout = 0; + int n=0, nout = 0; int fwidth, prec; int zerofill; int leftjust; @@ -253,7 +253,7 @@ H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type, const H5 /* Hold the symbol table entry (and file) open */ if (H5O_open(&(attr->ent)) < 0) { - HGOTO_ERROR(H5E_ATTR, H5E_CANTOPENOBJ, NULL, "unable to open"); + HGOTO_ERROR(H5E_ATTR, H5E_CANTOPENOBJ, FAIL, "unable to open"); } attr->ent_opened=1; @@ -489,7 +489,7 @@ H5A_open(H5G_entry_t *ent, unsigned idx) /* Read in attribute with H5O_read() */ if (NULL==(H5O_read(ent, H5O_ATTR, idx, attr))) { - HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, NULL, + HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to load attribute info from dataset header"); } @@ -1163,7 +1163,7 @@ H5Adelete(hid_t loc_id, const char *name) idx++; } /* end while */ if(found_attr==NULL) { - HRETURN_ERROR(H5E_ATTR, H5E_NOTFOUND, NULL, + HRETURN_ERROR(H5E_ATTR, H5E_NOTFOUND, FAIL, "attribute not found"); } |