diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-10-20 17:11:32 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-10-20 17:11:32 -0400 |
commit | 98c383e7e7b7f7e0bc9964e3d18f9aaa3539ff59 (patch) | |
tree | 6f6c8fbe44d49e129b836b7426a6f7c05bb05586 /src/mongo/util/exception_filter_win32.cpp | |
parent | f13e5ad084191e1b38992817c5796bbf6e6e9551 (diff) | |
download | mongo-98c383e7e7b7f7e0bc9964e3d18f9aaa3539ff59.tar.gz |
SERVER-17414 Enable Warnings As Errors on Windows, and disable/fix warnings
Diffstat (limited to 'src/mongo/util/exception_filter_win32.cpp')
-rw-r--r-- | src/mongo/util/exception_filter_win32.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/util/exception_filter_win32.cpp b/src/mongo/util/exception_filter_win32.cpp index db0e3e9bb56..32dffed8d85 100644 --- a/src/mongo/util/exception_filter_win32.cpp +++ b/src/mongo/util/exception_filter_win32.cpp @@ -32,7 +32,12 @@ #include "mongo/platform/basic.h" +#pragma warning(push) +// C4091: 'typedef ': ignored on left of '' when no variable is declared +#pragma warning(disable : 4091) #include <DbgHelp.h> +#pragma warning(pop) + #include <ostream> #include "mongo/config.h" @@ -150,7 +155,7 @@ LONG WINAPI exceptionFilter(struct _EXCEPTION_POINTERS* excPointers) { } sprintf_s(addressString, sizeof(addressString), - " 0x%p", + " 0x%llx", excPointers->ExceptionRecord->ExceptionInformation[1]); log() << "*** access violation was a " << acTypeString << addressString; } |