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/pb | |
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/pb')
-rw-r--r-- | tests/pb/test_decoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pb/test_decoder.cc b/tests/pb/test_decoder.cc index a01e999..702366a 100644 --- a/tests/pb/test_decoder.cc +++ b/tests/pb/test_decoder.cc @@ -116,11 +116,11 @@ void vappendf(string* str, const char *format, va_list args) { int count = vsnprintf(NULL, 0, format, args); if (count >= 0) { - assert(count < 32768); + UPB_ASSERT(count < 32768); char *buffer = new char[count + 1]; - assert(buffer); + UPB_ASSERT(buffer); count = vsnprintf(buffer, count + 1, format, copy); - assert(count >= 0); + UPB_ASSERT(count >= 0); str->append(buffer, count); delete [] buffer; } |