dovecot-1.1: Added ATTR_UNUSED to function parameters that won't...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 5 00:46:56 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/c6e9fd175bdf
changeset: 7501:c6e9fd175bdf
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 05 00:46:51 2008 +0300
description:
Added ATTR_UNUSED to function parameters that won't be implemented for v1.1.

diffstat:

3 files changed, 11 insertions(+), 8 deletions(-)
src/lib-dict/dict-db.c                         |    5 +++--
src/lib-sql/driver-mysql.c                     |    9 +++++----
src/lib-storage/index/dbox/dbox-sync-rebuild.c |    5 +++--

diffs (49 lines):

diff -r 74e2c7b68c71 -r c6e9fd175bdf src/lib-dict/dict-db.c
--- a/src/lib-dict/dict-db.c	Mon May 05 00:37:52 2008 +0300
+++ b/src/lib-dict/dict-db.c	Mon May 05 00:46:51 2008 +0300
@@ -406,8 +406,9 @@ static void db_dict_unset(struct dict_tr
 	dict->pdb->del(dict->pdb, ctx->tid, &dkey, 0);
 }
 
-static void db_dict_atomic_inc(struct dict_transaction_context *_ctx,
-			       const char *key, long long diff)
+static void
+db_dict_atomic_inc(struct dict_transaction_context *_ctx ATTR_UNUSED,
+		   const char *key ATTR_UNUSED, long long diff ATTR_UNUSED)
 {
 	/* FIXME */
 }
diff -r 74e2c7b68c71 -r c6e9fd175bdf src/lib-sql/driver-mysql.c
--- a/src/lib-sql/driver-mysql.c	Mon May 05 00:37:52 2008 +0300
+++ b/src/lib-sql/driver-mysql.c	Mon May 05 00:46:51 2008 +0300
@@ -534,10 +534,11 @@ driver_mysql_result_get_field_value(stru
 }
 
 static const unsigned char *
-driver_mysql_result_get_field_value_binary(struct sql_result *_result,
-					   unsigned int idx, size_t *size_r)
-{
-	// FIXME
+driver_mysql_result_get_field_value_binary(struct sql_result *_result ATTR_UNUSED,
+					   unsigned int idx ATTR_UNUSED,
+					   size_t *size_r ATTR_UNUSED)
+{
+	/* FIXME */
 	return NULL;
 }
 
diff -r 74e2c7b68c71 -r c6e9fd175bdf src/lib-storage/index/dbox/dbox-sync-rebuild.c
--- a/src/lib-storage/index/dbox/dbox-sync-rebuild.c	Mon May 05 00:37:52 2008 +0300
+++ b/src/lib-storage/index/dbox/dbox-sync-rebuild.c	Mon May 05 00:46:51 2008 +0300
@@ -225,8 +225,9 @@ dbox_sync_index_uid_file(struct dbox_syn
 }
 
 static int
-dbox_sync_index_multi_file(struct dbox_sync_rebuild_context *ctx,
-			   const char *dir, const char *fname)
+dbox_sync_index_multi_file(struct dbox_sync_rebuild_context *ctx ATTR_UNUSED,
+			   const char *dir ATTR_UNUSED,
+			   const char *fname ATTR_UNUSED)
 {
 	/* FIXME */
 	return 0;


More information about the dovecot-cvs mailing list