diff --git a/tccgen.c b/tccgen.c index c0674d67..d286dd47 100644 --- a/tccgen.c +++ b/tccgen.c @@ -3990,7 +3990,7 @@ ST_FUNC void unary(void) #endif ) tcc_warning("implicit declaration of function '%s'", name); - s = external_global_sym(t, &func_old_type, 0); + s = external_sym(t, &func_old_type, 0, NULL); } if ((s->type.t & (VT_STATIC | VT_INLINE | VT_BTYPE)) == (VT_STATIC | VT_INLINE | VT_FUNC)) {