We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eca4f6 commit c08c9b9Copy full SHA for c08c9b9
1 file changed
ase/logging.cc
@@ -222,7 +222,7 @@ logging_configure (bool to_file, Logging level)
222
223
// == Stacktrace ==
224
/// Find GDB and construct command line
225
-static std::string
+[[maybe_unused]] static std::string
226
backtrace_command (const char *dbgr)
227
{
228
#if 0 && defined (__linux__)
@@ -299,6 +299,7 @@ debug_key_value (const char *conditional)
299
return String (sv);
300
}
301
302
+#ifndef NDEBUG
303
static void
304
print_backtrace (FILE *stdio, const std::vector<void*> &frames)
305
@@ -338,6 +339,7 @@ print_backtrace (FILE *stdio, const std::vector<void*> &frames)
338
339
340
free (symbols);
341
342
+#endif // NDEBUG
343
344
/// Print confiogurable stack trace.
345
0 commit comments