Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jul 20, 2021
1 parent bf1c94e commit c45535d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdutils/td/utils/port/stacktrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ namespace td {
namespace {

void print_backtrace(void) {
void *buffer[128];
#if TD_PORT_WINDOWS
void *buffer[128];
USHORT nptrs = CaptureStackBackTrace(0, 128, buffer, nullptr);
#elif __GLIBC__
void *buffer[128];
int nptrs = backtrace(buffer, 128);
#else
return;
Expand Down

0 comments on commit c45535d

Please sign in to comment.