astobj2: Add warn unused attribute to some functions.

* Fixed resulting warnings with improper use of ao2_global_obj_replace().

* Made a couple uses of ao2_global_obj_replace_unref(x, NULL) into the
equivalent and more appropriate ao2_global_obj_release() call.
........

Merged revisions 398533 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-09-06 19:26:48 +00:00
parent 53dbe10f5c
commit f5ae5e27c8
8 changed files with 23 additions and 23 deletions

View File

@@ -3949,7 +3949,7 @@ static int process_config(int reload)
*/
if (!reload && !(aco_set_defaults(&general_option, "general", mod_cfg->general))) {
ast_log(LOG_NOTICE, "Failed to process CDR configuration; using defaults\n");
ao2_global_obj_replace(module_configs, mod_cfg);
ao2_global_obj_replace_unref(module_configs, mod_cfg);
return 0;
}
return 1;