Branch: Tag:

2022-05-07

2022-05-07 14:23:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Ignore the return value for functions returning void.

5656:    if (!bret) bret = bi->cdr;       /* NB: Ignore the return type if matching against void. */ +  if (bret != void_type_string) {    tmp = low_type_binop(PT_BINOP_MINUS, aret, bret, remap,    PT_FLAG_CMP_VOIDABLE, 0, remap_flags);   
5669:    push_type(PIKE_T_UNKNOWN);    }    } else { +  push_type(PIKE_T_UNKNOWN); +  } +  } else {    /* Recurse. */    tmp = low_type_binop(PT_BINOP_MINUS, ai, bi, remap,    aflags, bflags, remap_flags);