mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
windows warnings
This commit is contained in:
parent
4b8ca5f9bd
commit
1c51f40d02
@ -83,12 +83,13 @@ static int formattedWrite( int fd , const char* format, ... ){
|
||||
}
|
||||
|
||||
static void formattedBacktrace( int fd ){
|
||||
|
||||
#if !defined(_WIN32) && !defined(NOEXECINFO)
|
||||
|
||||
int numFrames;
|
||||
const int MAX_DEPTH = 20;
|
||||
void* stackFrame[MAX_DEPTH];
|
||||
|
||||
#if !defined(_WIN32) && !defined(NOEXECINFO)
|
||||
|
||||
numFrames = backtrace( stackFrame , 20 );
|
||||
for (int i = 0; i < numFrames; i++ ){
|
||||
formattedWrite( fd , "Frame %d: %p\n" , i , stackFrame[i] );
|
||||
|
Loading…
Reference in New Issue
Block a user