[dovecot-cvs] dovecot/src/lib mempool-alloconly.c,1.31,1.32
cras at dovecot.org
cras at dovecot.org
Sat Apr 23 23:21:44 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv2619
Modified Files:
mempool-alloconly.c
Log Message:
Remove compiler warnings with non-DEBUG.
Index: mempool-alloconly.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mempool-alloconly.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- mempool-alloconly.c 27 Mar 2005 16:38:38 -0000 1.31
+++ mempool-alloconly.c 23 Apr 2005 20:21:42 -0000 1.32
@@ -69,7 +69,7 @@
FALSE
};
-pool_t pool_alloconly_create(const char *name, size_t size)
+pool_t pool_alloconly_create(const char *name __attr_unused__, size_t size)
{
struct alloconly_pool apool, *new_apool;
size_t min_alloc = sizeof(struct alloconly_pool) + SIZEOF_POOLBLOCK;
@@ -121,9 +121,9 @@
static const char *pool_alloconly_get_name(pool_t pool)
{
+#ifdef DEBUG
struct alloconly_pool *apool = (struct alloconly_pool *) pool;
-#ifdef DEBUG
return apool->name;
#else
return "alloconly";
More information about the dovecot-cvs
mailing list