summaryrefslogtreecommitdiff
path: root/tests/pb
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2016-05-12 11:54:34 -0700
committerJoshua Haberman <jhaberman@gmail.com>2016-05-12 11:54:34 -0700
commitfa338b70a602d9f5657528d0322535959a92d4b0 (patch)
treea7ec8b8d61a1ff3657aff99316ec51a8b81726ad /tests/pb
parente16ed470be7d0d459e85e1d7b43893358a625d34 (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.cc6
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;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback