mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:51:19 +00:00
Fix clang compilation error in jscre.
../../dart/runtime/third_party/jscre/pcre_internal.h:412:5: error: implicit conversion of NULL constant to 'int' [-Werror,-Wnull-conversion] ASSERT(isBracketStartOpcode(*opcodePtr) || *opcodePtr == OP_ALT); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../dart/runtime/third_party/jscre/pcre_internal.h:86:72: note: expanded from macro 'ASSERT' #define ASSERT(x) if (!(x)) *(reinterpret_cast<volatile int*>(NULL)) = NULL BUG=http://dartbug.com/19324 R=iposva@google.com Review URL: https://codereview.chromium.org//469423004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39276 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
d2f6dddc57
commit
ccf8156e82
4
runtime/third_party/jscre/pcre_internal.h
vendored
4
runtime/third_party/jscre/pcre_internal.h
vendored
|
@ -83,8 +83,8 @@ total length. */
|
|||
#ifndef DFTABLES
|
||||
|
||||
// TODO(xxx): Hook this up to something that checks assertions.
|
||||
#define ASSERT(x) if (!(x)) *(reinterpret_cast<volatile int*>(NULL)) = NULL
|
||||
#define ASSERT_NOT_REACHED() *(reinterpret_cast<volatile int*>(NULL)) = NULL
|
||||
#define ASSERT(x) if (!(x)) abort()
|
||||
#define ASSERT_NOT_REACHED() abort()
|
||||
|
||||
#ifdef WIN32
|
||||
#pragma warning(disable: 4232)
|
||||
|
|
Loading…
Reference in a new issue