Skip to content

Commit

Permalink
removing unneeded logging pre-processor macro from CMake build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 27, 2020
1 parent 9d8c81a commit f835a8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/clib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ if (NetCDF_C_FOUND)
target_link_libraries (pioc
PUBLIC ${NetCDF_C_LIBRARIES})
if (${NetCDF_C_LOGGING_ENABLED})
target_compile_definitions (pioc
PUBLIC NETCDF_C_LOGGING_ENABLED)
# netcdf.h needs this to be defined to use netCDF logging.
target_compile_definitions (pioc
PUBLIC LOGGING)
Expand Down
8 changes: 0 additions & 8 deletions src/clib/pioc_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@ PIOc_set_log_level(int level)
/* Set the log level. */
pio_log_level = level;

#if NETCDF_C_LOGGING_ENABLED
int ret;

/* If netcdf logging is available turn it on starting at level = 4. */
if (level > NC_LEVEL_DIFF)
if ((ret = nc_set_log_level(level - NC_LEVEL_DIFF)))
return pio_err(NULL, NULL, ret, __FILE__, __LINE__);
#endif /* NETCDF_C_LOGGING_ENABLED */
#endif /* PIO_ENABLE_LOGGING */

return PIO_NOERR;
Expand Down

0 comments on commit f835a8d

Please sign in to comment.