Commit 1ba52359 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for Release mode in RHEL 8.2

parent 160dc286
...@@ -377,6 +377,7 @@ int amf_config::load(const std::string& config_file) { ...@@ -377,6 +377,7 @@ int amf_config::load(const std::string& config_file) {
"%s : %s, using defaults", nfex.what(), nfex.getPath()); "%s : %s, using defaults", nfex.what(), nfex.getPath());
return -1; return -1;
} }
return 1;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
...@@ -86,6 +86,7 @@ int amf_modules::load(const std::string& config_file) { ...@@ -86,6 +86,7 @@ int amf_modules::load(const std::string& config_file) {
Logger::config().error("wrong NGAP message configuration"); Logger::config().error("wrong NGAP message configuration");
} }
} }
return 1;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
...@@ -121,6 +121,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") ...@@ -121,6 +121,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
add_boolean_option(LOG_OAI_MINIMAL True "Thread safe logging API, log only levels above NOTICE") add_boolean_option(LOG_OAI_MINIMAL True "Thread safe logging API, log only levels above NOTICE")
SET(ASAN asan) SET(ASAN asan)
endif() endif()
if (CMAKE_BUILD_TYPE STREQUAL "Release")
SET(ASAN asan)
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug") if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_boolean_option(LOG_OAI True "Thread safe logging API") add_boolean_option(LOG_OAI True "Thread safe logging API")
SET(ASAN asan) SET(ASAN asan)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment