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

Unified Diff: runtime/third_party/jscre/pcre_internal.h

Issue 11823067: Fixed warnings reported by clang compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | runtime/vm/os.h » ('j') | runtime/vm/os.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/third_party/jscre/pcre_internal.h
===================================================================
--- runtime/third_party/jscre/pcre_internal.h (revision 16936)
+++ runtime/third_party/jscre/pcre_internal.h (working copy)
@@ -83,8 +83,8 @@
#ifndef DFTABLES
// TODO(xxx): Hook this up to something that checks assertions.
-#define ASSERT(x) if (!(x)) *(reinterpret_cast<int*>(NULL)) = NULL
-#define ASSERT_NOT_REACHED() *(reinterpret_cast<int*>(NULL)) = NULL
+#define ASSERT(x) if (!(x)) *(reinterpret_cast<volatile int*>(NULL)) = NULL
Kevin Millikin (Google) 2013/01/11 11:30:59 Drive by: shouldn't this be fixed upstream in WebK
+#define ASSERT_NOT_REACHED() *(reinterpret_cast<volatile int*>(NULL)) = NULL
#ifdef WIN32
#pragma warning(disable: 4232)
« no previous file with comments | « no previous file | runtime/vm/os.h » ('j') | runtime/vm/os.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698