diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2016-05-12 11:54:34 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2016-05-12 11:54:34 -0700 |
commit | fa338b70a602d9f5657528d0322535959a92d4b0 (patch) | |
tree | a7ec8b8d61a1ff3657aff99316ec51a8b81726ad /tests/test_util.h | |
parent | e16ed470be7d0d459e85e1d7b43893358a625d34 (diff) |
Added UPB_ASSERT() that helps avoid unused var warnings.
* Added UPB_ASSERT() that helps avoid unused var warnings.
* Addressed PR comments.
* Fixed assert in the JIT.
Diffstat (limited to 'tests/test_util.h')
-rw-r--r-- | tests/test_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_util.h b/tests/test_util.h index 5d165de..f616c36 100644 --- a/tests/test_util.h +++ b/tests/test_util.h @@ -123,7 +123,7 @@ class VerboseParserEnvironment { skipped_with_null_ = true; } else { buf2 = (char*)malloc(bytes); - assert(buf2); + UPB_ASSERT(buf2); memcpy(buf2, buf_ + ofs_, bytes); } |