Skip to content
Snippets Groups Projects
Commit 056bf1ce authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Eliminate effectively unused variable.

parent 94319868
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -3191,7 +3191,6 @@ cdf_define_all_zaxes(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nvar
if (ncvar->varStatus == DataVar && ncvar->zaxisID == CDI_UNDEFID)
{
bool isScalar = false;
bool withBounds = false;
int zdimid = CDI_UNDEFID;
int zvarid = CDI_UNDEFID;
size_t zsize = 1;
......@@ -3285,7 +3284,6 @@ cdf_define_all_zaxes(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nvar
int nvertex = (int) ncdims[ncvars[ncvars[zvarid].bounds].dimids[1 - isScalar]].len;
if (nlevel == zsize && nvertex == 2)
{
withBounds = true;
lbounds = (double *) Malloc(4 * nlevel * sizeof(double));
ubounds = lbounds + nlevel;
double *zbounds = lbounds + 2 * nlevel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment