Problem in gf.c? warning: assignment from incompatible pointer type

128 views
Skip to first unread message

Rick Graham

unread,
Sep 25, 2014, 6:50:30 AM9/25/14
to juli...@googlegroups.com
Are these warnings okay, or is it an issue?

    CC src/gf.o
gf
.c: In function jl_mt_assoc_by_type’:
gf
.c:1013:18: warning: assignment from incompatible pointer type [enabled by default]
             func
= m->func;
                 
^
gf
.c:1015:22: warning: assignment from incompatible pointer type [enabled by default]
                 func
= jl_instantiate_staged(m,tt);
                     
^
gf
.c:1018:17: warning: return from incompatible pointer type [enabled by default]
                 
return func;
                 
^
gf
.c:1019:13: warning: passing argument 3 of cache_method from incompatible pointer type [enabled by default]
             
return cache_method(mt, tt, func, (jl_tuple_t*)m->sig, jl_null, m->isstaged);
             
^
gf
.c:454:23: note: expected struct jl_function_t *’ but argument is of type struct jl_tuple_t *’
 
static jl_function_t *cache_method(jl_methtable_t *mt, jl_tuple_t *type,
                       
^
gf
.c:1026:10: warning: assignment from incompatible pointer type [enabled by default]
     func
= m->func;
         
^
gf
.c:1029:14: warning: assignment from incompatible pointer type [enabled by default]
         func
= jl_instantiate_staged(m,tt);
             
^
gf
.c:1047:12: warning: assignment from incompatible pointer type [enabled by default]
         nf
= func;
           
^
gf
.c:1049:9: warning: passing argument 3 of cache_method from incompatible pointer type [enabled by default]
         nf
= cache_method(mt, tt, func, newsig, env, 0);
         
^
gf
.c:454:23: note: expected struct jl_function_t *’ but argument is of type struct jl_tuple_t *’
 
static jl_function_t *cache_method(jl_methtable_t *mt, jl_tuple_t *type,
                       
^



Jeff Waller

unread,
Sep 25, 2014, 1:49:08 PM9/25/14
to juli...@googlegroups.com
I think pull will fix:


func is declared as jl_function_t after that
Reply all
Reply to author
Forward
0 new messages