Remove warning
Chris Lee @klee93
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/util/bt.c
→
src/util/bt.c
@@ -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)@@ -40,6 +42,8 @@ strncpy(frame->name, "??", BT_FRAME_SIZE);
} bt->frame_count++; } + +#endif #ifdef HAS_BACKTRACE