From 1847a4e12df75e2cbc246b9e7b9e6008be5f1b00 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 27 Jul 2013 18:44:00 +0200 Subject: [PATCH] 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 */