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

Unified Diff: third_party/tcmalloc/chromium/src/base/abort.h

Issue 10392109: Write to NULL will trigger a Clang compile warning and the compiler may (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: third_party/tcmalloc/chromium/src/base/abort.h
===================================================================
--- third_party/tcmalloc/chromium/src/base/abort.h (revision 137013)
+++ third_party/tcmalloc/chromium/src/base/abort.h (working copy)
@@ -25,7 +25,7 @@
namespace tcmalloc {
inline void Abort() {
// Make a segmentation fault to force abort.
- *reinterpret_cast<int*>(NULL) = 0x2001;
+ *reinterpret_cast<volatile int*>(NULL) = 0x2001;
}
} // namespace tcmalloc
« 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