Skip to content
Snippets Groups Projects
Commit 1c590d87 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Fix compiler warnings.

* For some reason gcc 9.1 does not detect that status is never used
  uninitialized.
parent a72a2901
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -48,7 +48,7 @@ TLS struct cdiPioNcCreateLongJmpRetBuf *cdiPioCdfJmpBuf;
static int
cdiPio_nc__create(const char *path, int cmode, size_t initialsz, size_t *chunksizehintp, int *ncidp)
{
int status, ioMode = commInqIOMode();
int status = NC_EINVAL, ioMode = commInqIOMode();
if (ioMode != PIO_NONE)
{
#if CDI_PIO_TRY_PNETCDF
......@@ -141,6 +141,7 @@ cdiPio_enable_nc_par_access(int ncid, int streamID)
int statusInq = nc_inq_format_extended(ncid, &formatNC, &modeNC);
if (statusInq != NC_NOERR) Error("%s", nc_strerror(statusInq));
setVarParAccess = (modeNC & NC_PNETCDF);
(void) streamID;
#else
int cf_format, owner = cdiPioStream2Owner(streamID);
int statusInq = nc_inq_format(ncid, &cf_format);
......
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