Remove warning
This commit is contained in:
parent
11c468816d
commit
f8c6dc1ecc
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
||||||
#include "bt.h"
|
#include "bt.h"
|
||||||
#include "bool.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)
|
static void bt_add_frame(struct backtrace *bt, const char *fname)
|
||||||
{
|
{
|
||||||
if (bt->frame_count >= BT_MAX_FRAMES)
|
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++;
|
bt->frame_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAS_BACKTRACE
|
#ifdef HAS_BACKTRACE
|
||||||
|
|
||||||
#include <backtrace.h>
|
#include <backtrace.h>
|
||||||
|
|
Loading…
Reference in a new issue