From: David M. Lee Date: Wed, 8 May 2013 19:00:55 +0000 (+0000) Subject: Fixed set-but-not-used warning caught by newer GCC X-Git-Tag: 13.0.0-beta1~1833 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07e2eb71e991eb1bb0ad2e9b2cb7679803859a63;p=thirdparty%2Fasterisk.git Fixed set-but-not-used warning caught by newer GCC git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388014 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/tests/test_stasis_endpoints.c b/tests/test_stasis_endpoints.c index 30d0d09ae0..8b4f1fae9b 100644 --- a/tests/test_stasis_endpoints.c +++ b/tests/test_stasis_endpoints.c @@ -112,6 +112,7 @@ AST_TEST_DEFINE(state_changes) ast_endpoint_set_state(uut, AST_ENDPOINT_OFFLINE); actual_count = stasis_message_sink_wait_for_count(sink, 1, STASIS_SINK_DEFAULT_WAIT); + ast_test_validate(test, 1 == actual_count); msg = sink->messages[0]; type = stasis_message_type(msg); ast_test_validate(test, ast_endpoint_snapshot_type() == type); @@ -121,6 +122,7 @@ AST_TEST_DEFINE(state_changes) ast_endpoint_set_max_channels(uut, 8675309); actual_count = stasis_message_sink_wait_for_count(sink, 2, STASIS_SINK_DEFAULT_WAIT); + ast_test_validate(test, 2 == actual_count); msg = sink->messages[1]; type = stasis_message_type(msg); ast_test_validate(test, ast_endpoint_snapshot_type() == type);