Skip to content

Commit

Permalink
Remove warning for non occurring static parameter in method definition (
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored and JeffBezanson committed Sep 11, 2017
1 parent 49776dd commit 8757abf
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,23 +764,7 @@ JL_DLLEXPORT void jl_method_def(jl_svec_t *argdata,
m->line);
}

int ishidden = !!strchr(jl_symbol_name(name), '#');
if (!ishidden) {
jl_value_t *atemp = argtype;
while (jl_is_unionall(atemp)) {
jl_unionall_t *ua = (jl_unionall_t*)atemp;
jl_tvar_t *tv = ua->var;
if (!jl_has_typevar(ua->body, tv)) {
jl_printf(JL_STDERR, "WARNING: static parameter %s does not occur in signature for %s",
jl_symbol_name(tv->name), jl_symbol_name(name));
print_func_loc(JL_STDERR, m);
jl_printf(JL_STDERR, ".\n");
}
atemp = ua->body;
}
}
jl_check_static_parameter_conflicts(m, f, tvars);

jl_method_table_insert(mt, m, NULL);
if (jl_newmeth_tracer)
jl_call_tracer(jl_newmeth_tracer, (jl_value_t*)m);
Expand Down

1 comment on commit 8757abf

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

Please sign in to comment.