only define nc_set_log_level() to nothing for netcdf-4 builds

This commit is contained in:
Ed Hartnett 2018-07-16 13:47:18 -06:00
parent 52d7985aec
commit 99c4f82f2e
2 changed files with 2 additions and 1 deletions

View File

@ -51,10 +51,12 @@ void nc_log_hdf5(void);
#define BAIL_QUIET BAIL
#ifdef USE_NETCDF_4
#ifndef ENABLE_SET_LOG_LEVEL
/* Define away any calls to nc_set_log_level(), if its not enabled. */
#define nc_set_log_level(e)
#endif /* ENABLE_SET_LOG_LEVEL */
#endif
#endif /* LOGGING */

View File

@ -34,7 +34,6 @@ main(int argc, char **argv)
size_t dimsize;
int dimid;
int stat = NC_NOERR;
nc_set_log_level(5);
printf("\n*** Testing Max Dimension Sizes\n");
printf("\n|size_t|=%lu\n",(unsigned long)sizeof(size_t));