Skip to content

Commit

Permalink
Fix compilation without NETCDF_HAS_NC4
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Mar 13, 2022
1 parent 6b39167 commit 6a03f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frmts/netcdf/netcdfdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,8 @@ netCDFRasterBand::netCDFRasterBand( const netCDFRasterBand::CONSTRUCTOR_OPEN&,
}
}
else
{
#endif
{
#ifdef NCDF_DEBUG
CPLDebug("GDAL_netCDF", "SetNoDataValue(%f) read", dfNoData);
#endif
Expand Down Expand Up @@ -1542,8 +1542,8 @@ CPLErr netCDFRasterBand::SetNoDataValueAsInt64( int64_t nNoData )
status = nc_put_att_longlong (cdfid, nZId, _FillValue,
nc_datatype, 1, &tmp);
}
#endif
else
#endif
{
double dfNoData = static_cast<double>(nNoData);
status = nc_put_att_double(cdfid, nZId, _FillValue,
Expand Down Expand Up @@ -1626,8 +1626,8 @@ CPLErr netCDFRasterBand::SetNoDataValueAsUInt64( uint64_t nNoData )
status = nc_put_att_ulonglong (cdfid, nZId, _FillValue,
nc_datatype, 1, &tmp);
}
#endif
else
#endif
{
double dfNoData = static_cast<double>(nNoData);
status = nc_put_att_double(cdfid, nZId, _FillValue,
Expand Down

0 comments on commit 6a03f69

Please sign in to comment.