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

Fix compiler warnings.

* For some reason gcc 9.1 does not detect that status is never used
  uninitialized.
parent fe78a000
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ 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
......@@ -148,6 +148,7 @@ cdiPio_enable_nc_par_access(int ncid, int streamID)
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