aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/evaluate.c
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2016-11-02 18:16:23 +0100
committerChristopher Li <sparse@chrisli.org>2017-02-13 09:34:43 +0800
commitd589636c2475bf049b518a55e1b0d8519335936d (patch)
tree97526f4924958795b48dd1f0016542852e1dece3 /evaluate.c
parent0a367bdf4b13b984c6572d623456971d62601641 (diff)
downloadsparse-d589636c2475bf049b518a55e1b0d8519335936d.tar.gz
cleanup: remove evaluate_arguments()'s unused argument
Was slightly confusing when reading some code. Better to remove it. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'evaluate.c')
-rw-r--r--evaluate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/evaluate.c b/evaluate.c
index 012fa861..6c4c5a54 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -2172,7 +2172,7 @@ static struct symbol *evaluate_alignof(struct expression *expr)
return size_t_ctype;
}
-static int evaluate_arguments(struct symbol *f, struct symbol *fn, struct expression_list *head)
+static int evaluate_arguments(struct symbol *fn, struct expression_list *head)
{
struct expression *expr;
struct symbol_list *argument_types = fn->arguments;
@@ -2885,7 +2885,7 @@ static struct symbol *evaluate_call(struct expression *expr)
if (!sym->op->args(expr))
return NULL;
} else {
- if (!evaluate_arguments(sym, ctype, arglist))
+ if (!evaluate_arguments(ctype, arglist))
return NULL;
args = expression_list_size(expr->args);
fnargs = symbol_list_size(ctype->arguments);