From 274687f9228b4395c48a359babb73c83a85ba4ca Mon Sep 17 00:00:00 2001 From: Rafal Krypa Date: Mon, 1 Sep 2014 18:49:40 +0200 Subject: [PATCH] Fix inclusion of libunwind when not building for debug Conditional inclusion of libunwind.h didn't properly depend on definition of BUILD_TYPE_DEBUG. But only debug build checks for libunwind dependency. Change-Id: I2158d09ae2880e9869246d75049aa1f23b8c4bcc Signed-off-by: Rafal Krypa --- src/common/log/Backtrace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/log/Backtrace.h b/src/common/log/Backtrace.h index df023ba..c96f29d 100644 --- a/src/common/log/Backtrace.h +++ b/src/common/log/Backtrace.h @@ -25,7 +25,7 @@ #ifndef SRC_COMMON_LOG_BACKTRACE_H_ #define SRC_COMMON_LOG_BACKTRACE_H_ -#ifndef CYNARA_NO_LOGS +#if defined(BUILD_TYPE_DEBUG) && !defined(CYNARA_NO_LOGS) #define UNW_LOCAL_ONLY #include #endif @@ -53,7 +53,7 @@ private: void operator=(Backtrace const &) = delete; const std::string buildBacktrace(void); -#ifndef CYNARA_NO_LOGS +#if defined(BUILD_TYPE_DEBUG) && !defined(CYNARA_NO_LOGS) void getSourceInfo(unw_word_t proc_address); #endif -- 2.7.4