diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-04-11 15:26:45 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-04-11 15:26:45 +0000 |
commit | d0d78d573256ae0b89545c26b5966c9662395395 (patch) | |
tree | a37d6f9f93f054a8d5918baf63e918180b4a7bde /tests/test_stringfields.c | |
parent | 4cf7d0bf011069fce2e304d76d59771d89e1401e (diff) |
clang compiler warnings: Fix various warnings for tests
This patch fixes a variety of clang compiler warnings for unit tests. This
includes autological comparison issues, ignored return values, and
interestingly enough, one embedded function. Fun!
Review: https://reviewboard.asterisk.org/r/4555
ASTERISK-24917
Reported by: dkdegroot
patches:
rb4555.patch submitted by dkdegroot (License 6600)
........
Merged revisions 434705 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@434706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_stringfields.c')
-rw-r--r-- | tests/test_stringfields.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_stringfields.c b/tests/test_stringfields.c index 712348064..2eeb83d45 100644 --- a/tests/test_stringfields.c +++ b/tests/test_stringfields.c @@ -212,7 +212,7 @@ AST_TEST_DEFINE(string_field_test) } if (AST_STRING_FIELD_ALLOCATION(test_struct.string2) != strlen("hippopotamus face") + 1) { - ast_test_status_update(test, "The allocation amount is incorrect for string2. We expect %lu but it has %hu\n", + ast_test_status_update(test, "The allocation amount is incorrect for string2. We expect %lu but it has %d\n", (unsigned long) strlen("hippopotamus face"), AST_STRING_FIELD_ALLOCATION(test_struct.string2) + 1); goto error; } else { |