aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2011-01-24 19:20:10 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2011-01-24 19:20:10 +0000
commitb904343e14b3303f3dc61b0c1e039d33ac159843 (patch)
tree566359c61cd3d2f4202f2e53c6eb5a9d84e798b6 /src
parentAdd module_serializer.cc to libbreakpad.a. Not sure why it wasn't there in th... (diff)
downloadbreakpad-b904343e14b3303f3dc61b0c1e039d33ac159843.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/client/linux/handler/exception_handler_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/linux/handler/exception_handler_unittest.cc b/src/client/linux/handler/exception_handler_unittest.cc
index 67c05f6b..7186db9f 100644
--- a/src/client/linux/handler/exception_handler_unittest.cc
+++ b/src/client/linux/handler/exception_handler_unittest.cc
@@ -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};