mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
only define nc_set_log_level() to nothing for netcdf-4 builds
This commit is contained in:
parent
52d7985aec
commit
99c4f82f2e
@ -51,10 +51,12 @@ void nc_log_hdf5(void);
|
|||||||
|
|
||||||
#define BAIL_QUIET BAIL
|
#define BAIL_QUIET BAIL
|
||||||
|
|
||||||
|
#ifdef USE_NETCDF_4
|
||||||
#ifndef ENABLE_SET_LOG_LEVEL
|
#ifndef ENABLE_SET_LOG_LEVEL
|
||||||
/* Define away any calls to nc_set_log_level(), if its not enabled. */
|
/* Define away any calls to nc_set_log_level(), if its not enabled. */
|
||||||
#define nc_set_log_level(e)
|
#define nc_set_log_level(e)
|
||||||
#endif /* ENABLE_SET_LOG_LEVEL */
|
#endif /* ENABLE_SET_LOG_LEVEL */
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* LOGGING */
|
#endif /* LOGGING */
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ main(int argc, char **argv)
|
|||||||
size_t dimsize;
|
size_t dimsize;
|
||||||
int dimid;
|
int dimid;
|
||||||
int stat = NC_NOERR;
|
int stat = NC_NOERR;
|
||||||
nc_set_log_level(5);
|
|
||||||
printf("\n*** Testing Max Dimension Sizes\n");
|
printf("\n*** Testing Max Dimension Sizes\n");
|
||||||
|
|
||||||
printf("\n|size_t|=%lu\n",(unsigned long)sizeof(size_t));
|
printf("\n|size_t|=%lu\n",(unsigned long)sizeof(size_t));
|
||||||
|
Loading…
Reference in New Issue
Block a user