summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-11 21:42:13 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-11 21:42:13 +0000
commit40b3ce5c8f579c3fe3d6381d544df7631c703b2c (patch)
tree94ad4d364fd9d565f8858864f85a4f024f985b97
parent9aac1c00350a0ffb72307223f038dcbde88b3ee2 (diff)
suppress warnings when building with DEBUG_CHANNEL_LOCKS (issue #7330, casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--include/asterisk/lock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index 904a7e64e..db85c497b 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -782,6 +782,8 @@ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
#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);