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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@398533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-09-06 19:20:06 +00:00
parent a91b9bda2e
commit 994a0da4d9
8 changed files with 23 additions and 23 deletions

View File

@@ -1748,7 +1748,7 @@ static int load_config(void)
}
ast_log(LOG_NOTICE, "Could not load features config; using defaults\n");
ao2_global_obj_replace(globals, features_cfg);
ao2_global_obj_replace_unref(globals, features_cfg);
}
return 0;