From e4bf9af03cf0b7ff589f3ed67838aa210903cc86 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 9 Jan 2002 05:27:27 +0000 Subject: Add UNUSED(paramname) macro to be used in parameter lists, to quieten gcc warnings about unused parameters. msg_pool_usage: assert msg_type is as expected. (This used to be commit 3ef135e91aaebf9648c4dd13f59686f57f4cff70) --- source3/lib/tallocmsg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c index fabc06fb93..8d99db666c 100644 --- a/source3/lib/tallocmsg.c +++ b/source3/lib/tallocmsg.c @@ -30,10 +30,13 @@ * Respond to a POOL_USAGE message by sending back string form of memory * usage stats. **/ -void msg_pool_usage(int msg_type, pid_t src_pid, void *buf, size_t len) +void msg_pool_usage(int msg_type, pid_t src_pid, + void *UNUSED(buf), size_t UNUSED(len)) { char *reply; TALLOC_CTX *reply_pool = talloc_init_named("msg_pool_usage"); + + SMB_ASSERT(msg_type == MSG_REQ_POOL_USAGE); DEBUG(2,("Got POOL_USAGE\n")); -- cgit