Commit c42609a6 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: Remove warnings

parent f4e93b94
......@@ -298,7 +298,10 @@ read_numrecs(NC *ncp)
status = ncx_get_size_t(&xp, &ncp->numrecs);
(void) ncp->nciop->rel(ncp->nciop, NC_NUMRECS_OFFSET, 0);
{
ncio_relfunc* func = (ncio_relfunc*)(ncp->nciop->rel);
(void) (func(ncp->nciop, NC_NUMRECS_OFFSET, 0));
}
if(status == NC_NOERR)
fClr(ncp->flags, NC_NDIRTY);
......@@ -327,7 +330,10 @@ write_numrecs(NC *ncp)
status = ncx_put_size_t(&xp, &ncp->numrecs);
(void) ncp->nciop->rel(ncp->nciop, NC_NUMRECS_OFFSET, RGN_MODIFIED);
{
ncio_relfunc* func = (ncio_relfunc*)(ncp->nciop->rel);
(void) (func(ncp->nciop, NC_NUMRECS_OFFSET, RGN_MODIFIED));
}
if(status == NC_NOERR)
fClr(ncp->flags, NC_NDIRTY);
......
......@@ -1133,7 +1133,10 @@ ncio_free(ncio *nciop)
return;
if(nciop->free != NULL)
nciop->free(nciop->pvt);
{
ncio_freefunc* func = (ncio_freefunc*)nciop->free;
func(nciop->pvt);
}
free(nciop);
}
......@@ -1371,7 +1374,10 @@ ncio_close(ncio *nciop, int doUnlink)
if(nciop == NULL)
return EINVAL;
status = nciop->sync(nciop);
{
ncio_syncfunc* func = (ncio_syncfunc*)(nciop->sync);
status = func(nciop);
}
(void) close(nciop->fd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment