From f835a8d7f48eb33c32508b382b1fb0b80e955c58 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Thu, 27 Aug 2020 08:07:27 -0600 Subject: [PATCH] removing unneeded logging pre-processor macro from CMake build --- src/clib/CMakeLists.txt | 2 -- src/clib/pioc_support.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/src/clib/CMakeLists.txt b/src/clib/CMakeLists.txt index 93c4b3ee4fe..30d25ac0471 100644 --- a/src/clib/CMakeLists.txt +++ b/src/clib/CMakeLists.txt @@ -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) diff --git a/src/clib/pioc_support.c b/src/clib/pioc_support.c index 6e1849075b8..8a681136d86 100644 --- a/src/clib/pioc_support.c +++ b/src/clib/pioc_support.c @@ -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;