[asterisk-commits] kpfleming: branch 1.4 r43952 - /branches/1.4/include/asterisk/lock.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Sep 28 15:42:19 MST 2006


Author: kpfleming
Date: Thu Sep 28 17:42:18 2006
New Revision: 43952

URL: http://svn.digium.com/view/asterisk?rev=43952&view=rev
Log:
eliminate compiler warning when DEBUG_CHANNEL_LOCKS is enabled and users of this header file don't also include channel.h

Modified:
    branches/1.4/include/asterisk/lock.h

Modified: branches/1.4/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/lock.h?rev=43952&r1=43951&r2=43952&view=diff
==============================================================================
--- branches/1.4/include/asterisk/lock.h (original)
+++ branches/1.4/include/asterisk/lock.h Thu Sep 28 17:42:18 2006
@@ -705,6 +705,8 @@
 #define ast_channel_trylock(x)		ast_mutex_trylock(&x->lock)
 #else
 
+struct ast_channel;
+
 /*! \brief Lock AST channel (and print debugging output)
 \note You need to enable DEBUG_CHANNEL_LOCKS for this function */
 int ast_channel_lock(struct ast_channel *chan);



More information about the asterisk-commits mailing list