pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1026:    func, which_argument, expected_type);    ERROR_DONE();   }      /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void math_error(    const char *func, int args,    struct svalue *number,    const char *desc, ...) ATTRIBUTE((noreturn))   { -  INIT_ERROR(math); +     const struct svalue *base_sp = Pike_sp - args; -  +  INIT_ERROR(math);    if(number)    {    ERROR_COPY_SVALUE(math, number);    }else{    SET_SVAL(ERROR_STRUCT(math,o)->number, PIKE_T_INT, NUMBER_UNDEFINED,    integer, 0);    }    ERROR_DONE();   }   
pike.git/src/error.c:1059:    ERROR_STRUCT(resource,o)->resource_type=make_shared_string("memory");    ERROR_DONE();   }      PMOD_EXPORT DECLSPEC(noreturn) void out_of_memory_error (    const char *func, int args,    size_t amount)   {    resource_error (func, args, amount,    amount ? msg_out_of_mem_2 : msg_out_of_mem, amount); -  UNREACHABLE(); +  UNREACHABLE(return);   }      /* coverity[+kill] */   PMOD_EXPORT void wrong_number_of_args_error(const char *name, int args, int expected)   {    if(expected>args)    {    bad_arg_error (name, args, expected, NULL, NULL,    "Too few arguments to %s(). Expected at least %d (got %d).\n",    name, expected, args);