From d29b3786f14e51fce0b4854cf45a4dce6cbcaa1d Mon Sep 17 00:00:00 2001 From: VKamyshniy Date: Wed, 11 Feb 2015 18:17:59 +0200 Subject: [PATCH] [Summary] Grigoriy has no time to push it: he should review it in the afterwards. --- libs/pbd/stacktrace.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/pbd/stacktrace.cc b/libs/pbd/stacktrace.cc index 8b21c9e6ae..2f3d2092b1 100644 --- a/libs/pbd/stacktrace.cc +++ b/libs/pbd/stacktrace.cc @@ -123,6 +123,7 @@ PBD::demangle (std::string const & l) /* JE - !!!! 'PBD' namespace might possibl void PBD::stacktrace( std::ostream& out, int) { +#ifdef DEBUG const size_t levels = 62; // does not support more then 62 levels of stacktrace unsigned int i; void * stack[ levels ]; @@ -152,6 +153,7 @@ PBD::stacktrace( std::ostream& out, int) out.flush(); free( symbol ); +#endif } void