mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Fix build warnings
When AST_DEVMODE is not defined, ast_asserts are not compiled into the binary. In some cases, this means variables are not referenced or are set but unused which causes warnings to show up. (closes issue ASTERISK-22446) Reported by: Jason Parker (qwell) ........ Merged revisions 398521 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -68,7 +68,9 @@ struct app_forwards {
|
||||
|
||||
static void forwards_dtor(void *obj)
|
||||
{
|
||||
#ifdef AST_DEVMODE
|
||||
struct app_forwards *forwards = obj;
|
||||
#endif /* AST_DEVMODE */
|
||||
|
||||
ast_assert(forwards->topic_forward == NULL);
|
||||
ast_assert(forwards->topic_cached_forward == NULL);
|
||||
|
Reference in New Issue
Block a user