commit 1275459298109da7a1da8714cee28765ec28ddf3
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Jul 27 18:44:00 2013 +0200
make better use of ATTR_UNUSED
src/drv_maildir.c | 9 +++------
src/sync.c | 3 +--
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index bf26fd6..ad3add7 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -178,9 +178,8 @@ maildir_disown_store( store_t *gctx )
}
static store_t *
-maildir_own_store( store_conf_t *conf )
+maildir_own_store( store_conf_t *conf ATTR_UNUSED )
{
- (void)conf;
return 0;
}
@@ -1244,7 +1243,7 @@ maildir_find_new_msgs( store_t *gctx ATTR_UNUSED,
}
static void
-maildir_set_flags( store_t *gctx, message_t *gmsg, int uid, int add, int del,
+maildir_set_flags( store_t *gctx, message_t *gmsg, int uid ATTR_UNUSED, int
add, int del,
void (*cb)( int sts, void *aux ), void *aux )
{
maildir_store_t *ctx = (maildir_store_t *)gctx;
@@ -1254,7 +1253,6 @@ maildir_set_flags( store_t *gctx, message_t *gmsg, int
uid, int add, int del,
int j, ret, ol, fl, bbl, bl, tl;
char buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX];
- (void) uid;
bbl = nfsnprintf( buf, sizeof(buf), "%s/", gctx->path );
memcpy( nbuf, gctx->path, bbl - 1 );
memcpy( nbuf + bbl - 1, "/cur/", 5 );
@@ -1410,10 +1408,9 @@ maildir_close( store_t *gctx,
}
static void
-maildir_cancel( store_t *gctx,
+maildir_cancel( store_t *gctx ATTR_UNUSED,
void (*cb)( void *aux ), void *aux )
{
- (void)gctx;
cb( aux );
}
diff --git a/src/sync.c b/src/sync.c
index c8b3424..4b964a9 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -1597,10 +1597,9 @@ msg_trashed( int sts, void *aux )
}
static void
-msg_rtrashed( int sts, int uid, copy_vars_t *vars )
+msg_rtrashed( int sts, int uid ATTR_UNUSED, copy_vars_t *vars )
{
SVARS_CHECK_CANCEL_RET;
- (void)uid;
switch (sts) {
case SYNC_OK:
case SYNC_NOGOOD: /* the message is gone or heavily busted */
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel