dovecot-2.2: Don't try to pass through void function's return value

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 24 09:33:45 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/0ae88b2978e0
changeset: 19207:0ae88b2978e0
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 24 12:32:24 2015 +0300
description:
Don't try to pass through void function's return value
I wish gcc or clang complained about these.

diffstat:

 src/lib-dict/dict.c                |  2 +-
 src/lib-settings/settings-parser.c |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r aa23e99981d7 -r 0ae88b2978e0 src/lib-dict/dict.c
--- a/src/lib-dict/dict.c	Thu Sep 24 10:11:29 2015 +0300
+++ b/src/lib-dict/dict.c	Thu Sep 24 12:32:24 2015 +0300
@@ -133,7 +133,7 @@
 		callback(&result, context);
 		return;
 	}
-	return dict->v.lookup_async(dict, key, callback, context);
+	dict->v.lookup_async(dict, key, callback, context);
 }
 
 struct dict_iterate_context *
diff -r aa23e99981d7 -r 0ae88b2978e0 src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c	Thu Sep 24 10:11:29 2015 +0300
+++ b/src/lib-settings/settings-parser.c	Thu Sep 24 12:32:24 2015 +0300
@@ -1296,7 +1296,7 @@
 			 void *set, pool_t pool,
 			 const struct var_expand_table *table)
 {
-	return settings_var_expand_with_funcs(info, set, pool, table, NULL, NULL);
+	settings_var_expand_with_funcs(info, set, pool, table, NULL, NULL);
 }
 
 void settings_var_expand_with_funcs(const struct setting_parser_info *info,


More information about the dovecot-cvs mailing list