[asterisk-commits] kmoore: branch kmoore/stasis-channel_events r383716 - /team/kmoore/stasis-cha...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 25 10:43:24 CDT 2013


Author: kmoore
Date: Mon Mar 25 10:43:21 2013
New Revision: 383716

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383716
Log:
Remove some set-but-unused warnings

Modified:
    team/kmoore/stasis-channel_events/main/channel.c

Modified: team/kmoore/stasis-channel_events/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-channel_events/main/channel.c?view=diff&rev=383716&r1=383715&r2=383716
==============================================================================
--- team/kmoore/stasis-channel_events/main/channel.c (original)
+++ team/kmoore/stasis-channel_events/main/channel.c Mon Mar 25 10:43:21 2013
@@ -7398,18 +7398,12 @@
 
 void ast_channel_set_caller_event(struct ast_channel *chan, const struct ast_party_caller *caller, const struct ast_set_party_caller *update)
 {
-	const char *pre_set_number;
-	const char *pre_set_name;
-
 	if (ast_channel_caller(chan) == caller) {
 		/* Don't set to self */
 		return;
 	}
 
 	ast_channel_lock(chan);
-	pre_set_number =
-		S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL);
-	pre_set_name = S_COR(ast_channel_caller(chan)->id.name.valid, ast_channel_caller(chan)->id.name.str, NULL);
 	ast_party_caller_set(ast_channel_caller(chan), caller, update);
 	publish_channel_state(chan);
 	if (ast_channel_cdr(chan)) {




More information about the asterisk-commits mailing list