From 45ade68cb48baad5f4f994fae6fe52211f379f70 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 15 Apr 2014 18:01:47 +0000 Subject: Remove unused RAII_VAR() declarations. * Remove unused RAII_VAR() declarations. The compiler cannot catch these because the cleanup function "references" the unused variable. Some actually allocated and released resources that were never used. * Fixed some whitespace issues in stasis_bridges.c. ........ Merged revisions 412399 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412400 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_stasis_recording.c | 1 - 1 file changed, 1 deletion(-) (limited to 'res/res_stasis_recording.c') diff --git a/res/res_stasis_recording.c b/res/res_stasis_recording.c index 080ee7b81..a256fe999 100644 --- a/res/res_stasis_recording.c +++ b/res/res_stasis_recording.c @@ -211,7 +211,6 @@ enum ast_record_if_exists stasis_app_recording_if_exists_parse( static void recording_publish(struct stasis_app_recording *recording, const char *cause) { RAII_VAR(struct ast_json *, json, NULL, ast_json_unref); - RAII_VAR(struct ast_channel_snapshot *, snapshot, NULL, ao2_cleanup); RAII_VAR(struct stasis_message *, message, NULL, ao2_cleanup); ast_assert(recording != NULL); -- cgit v1.2.3