Fix clang warning / miscompile.

Patch by Nico Weber <thakis@chromium.org>

Review URL: http://breakpad.appspot.com/256001


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@760 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
mmentovai 2011-01-24 19:20:10 +00:00
parent b7fdc7396d
commit b904343e14

View file

@ -107,7 +107,7 @@ TEST(ExceptionHandlerTest, ChildCrash) {
close(fds[0]);
ExceptionHandler handler(TEMPDIR, NULL, DoneCallback, (void*) fds[1],
true);
*reinterpret_cast<int*>(NULL) = 0;
*reinterpret_cast<volatile int*>(NULL) = 0;
}
close(fds[1]);
@ -714,7 +714,7 @@ TEST(ExceptionHandlerTest, ExternalDumper) {
close(fds[0]);
ExceptionHandler handler("/tmp1", NULL, NULL, (void*) fds[1], true);
handler.set_crash_handler(CrashHandler);
*reinterpret_cast<int*>(NULL) = 0;
*reinterpret_cast<volatile int*>(NULL) = 0;
}
close(fds[1]);
struct msghdr msg = {0};