]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't try to pass through void function's return value
authorTimo Sirainen <tss@iki.fi>
Thu, 24 Sep 2015 09:32:24 +0000 (12:32 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 24 Sep 2015 09:32:24 +0000 (12:32 +0300)
I wish gcc or clang complained about these.

src/lib-dict/dict.c
src/lib-settings/settings-parser.c

index ffc8c603beef1adb1369a688ee81ec8aa0139698..cfba523fd0fa3dc24e01d8a2a2ca08aa8cc9c171 100644 (file)
@@ -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 *
index dbf131bff1ffc4818efc1a60556aa3795534677e..4bba484cb50182dc17328546683d39c8f57df2ba 100644 (file)
@@ -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,