fix Clang warnings in windows.cpp

This commit is contained in:
Joel Dice 2012-08-07 17:18:04 -06:00
parent 6aba7bef5a
commit 3af278b5e6

View File

@ -876,7 +876,7 @@ class MySystem: public System {
virtual void abort() {
// trigger an EXCEPTION_ACCESS_VIOLATION, which we will catch and
// generate a debug dump for
*static_cast<int*>(0) = 0;
*static_cast<volatile int*>(0) = 0;
}
virtual void dispose() {
@ -929,7 +929,7 @@ dump(LPEXCEPTION_POINTERS e, const char* directory)
char name[MAX_PATH];
_timeb tb;
FTIME(&tb);
vm::snprintf(name, MAX_PATH, "%s\\crash-%"LLD".mdmp", directory,
vm::snprintf(name, MAX_PATH, "%s\\crash-%" LLD ".mdmp", directory,
(static_cast<int64_t>(tb.time) * 1000)
+ static_cast<int64_t>(tb.millitm));