mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-27 23:54:16 +01:00
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:
parent
b7fdc7396d
commit
b904343e14
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user