mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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:
@@ -1503,7 +1503,7 @@ int ast_cel_engine_init(void)
|
||||
*/
|
||||
if (!aco_set_defaults(&general_option, "general", cel_cfg->general)) {
|
||||
ast_log(LOG_NOTICE, "Failed to process CEL configuration; using defaults\n");
|
||||
ao2_global_obj_replace(cel_configs, cel_cfg);
|
||||
ao2_global_obj_replace_unref(cel_configs, cel_cfg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user