Commit f8c6dc1e authored by Chris Lee's avatar Chris Lee

Remove warning

parent 11c46881
......@@ -28,6 +28,8 @@
#include "bt.h"
#include "bool.h"
#if defined(HAS_BACKTRACE) || defined(HAS_LIBUNWIND) || defined(HAS_EXECINFO)
static void bt_add_frame(struct backtrace *bt, const char *fname)
{
if (bt->frame_count >= BT_MAX_FRAMES)
......@@ -41,6 +43,8 @@ static void bt_add_frame(struct backtrace *bt, const char *fname)
bt->frame_count++;
}
#endif
#ifdef HAS_BACKTRACE
#include <backtrace.h>
......
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