mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
fixed HDF4 abort warning
This commit is contained in:
parent
00a43c5374
commit
6416abe887
@ -40,10 +40,13 @@ extern "C" {
|
||||
|
||||
extern int
|
||||
NC_HDF4_open(const char *path, int mode, int basepe, size_t *chunksizehintp,
|
||||
void* parameters, NC_Dispatch*, NC*);
|
||||
void *parameters, NC_Dispatch *, NC *);
|
||||
|
||||
extern int
|
||||
NC_HDF4_close(int ncid);
|
||||
NC_HDF4_abort(int ncid);
|
||||
|
||||
extern int
|
||||
NC_HDF4_close(int ncid, void *ignore);
|
||||
|
||||
extern int
|
||||
NC_HDF4_inq_format(int ncid, int *formatp);
|
||||
|
@ -24,7 +24,7 @@ NC_HDF4_open,
|
||||
NC_RO_redef,
|
||||
NC_RO__enddef,
|
||||
NC_RO_sync,
|
||||
NC_HDF4_close,
|
||||
NC_HDF4_abort,
|
||||
NC_HDF4_close,
|
||||
NC_RO_set_fill,
|
||||
NC_NOTNC3_inq_base_pe,
|
||||
|
@ -662,7 +662,7 @@ NC_HDF4_open(const char *path, int mode, int basepe, size_t *chunksizehintp,
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Close the HDF4 file.
|
||||
* @internal Abort (close) the HDF4 file.
|
||||
*
|
||||
* @param ncid File ID.
|
||||
*
|
||||
@ -671,7 +671,23 @@ NC_HDF4_open(const char *path, int mode, int basepe, size_t *chunksizehintp,
|
||||
* @author Ed Hartnett
|
||||
*/
|
||||
int
|
||||
NC_HDF4_close(int ncid)
|
||||
NC_HDF4_abort(int ncid)
|
||||
{
|
||||
return NC_HDF4_close(ncid, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Close the HDF4 file.
|
||||
*
|
||||
* @param ncid File ID.
|
||||
* @param ignore Ignore this pointer.
|
||||
*
|
||||
* @return ::NC_NOERR No error.
|
||||
* @return ::NC_EBADID Bad ncid.
|
||||
* @author Ed Hartnett
|
||||
*/
|
||||
int
|
||||
NC_HDF4_close(int ncid, void *ignore)
|
||||
{
|
||||
NC_GRP_INFO_T *grp;
|
||||
NC *nc;
|
||||
|
Loading…
Reference in New Issue
Block a user