Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: breakpad/linux/generate-test-dump.cc

Issue 6271005: Fix clang warning / miscompile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: breakpad/linux/generate-test-dump.cc
diff --git a/breakpad/linux/generate-test-dump.cc b/breakpad/linux/generate-test-dump.cc
index 5827c295e6fcef490e9c5f57e46ff86a44227950..f933ab48e297a9a784ce784d0ad141bca6ea7d08 100644
--- a/breakpad/linux/generate-test-dump.cc
+++ b/breakpad/linux/generate-test-dump.cc
@@ -57,7 +57,7 @@ static bool DumpCallback(const char* dump_path, const char* minidump_id,
static void DoSomethingWhichCrashes() {
int local_var = 1;
- *reinterpret_cast<char*>(NULL) = 1;
+ *reinterpret_cast<volatile char*>(NULL) = 1;
}
int main() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698