From: Timo Sirainen Date: Thu, 24 Sep 2015 09:32:24 +0000 (+0300) Subject: Don't try to pass through void function's return value X-Git-Tag: 2.2.19.rc2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f990dde096949bd2b76aab28936211689bd6cadc;p=thirdparty%2Fdovecot%2Fcore.git Don't try to pass through void function's return value I wish gcc or clang complained about these. --- diff --git a/src/lib-dict/dict.c b/src/lib-dict/dict.c index ffc8c603be..cfba523fd0 100644 --- a/src/lib-dict/dict.c +++ b/src/lib-dict/dict.c @@ -133,7 +133,7 @@ void dict_lookup_async(struct dict *dict, const char *key, 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 --git a/src/lib-settings/settings-parser.c b/src/lib-settings/settings-parser.c index dbf131bff1..4bba484cb5 100644 --- a/src/lib-settings/settings-parser.c +++ b/src/lib-settings/settings-parser.c @@ -1296,7 +1296,7 @@ void settings_var_expand(const struct setting_parser_info *info, 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,