Branch: Tag:

2011-11-05

2011-11-05 15:47:44 by Martin Nilsson <nilsson@opera.com>

Fix a warning about returning uninitialized pointer by not returning the pointer at all.

61:    int flags,    optimize_fun optimize,    docode_fun docode); - PMOD_EXPORT struct callable *add_efun2(const char *name, + PMOD_EXPORT void add_efun2(const char *name,    c_fun fun,    const char *type,    int flags,    optimize_fun optimize,    docode_fun docode); - PMOD_EXPORT struct callable *add_efun(const char *name, c_fun fun, const char *type, int flags); - PMOD_EXPORT struct callable *quick_add_efun(const char *name, ptrdiff_t name_length, + PMOD_EXPORT void add_efun(const char *name, c_fun fun, const char *type, int flags); + PMOD_EXPORT void quick_add_efun(const char *name, ptrdiff_t name_length,    c_fun fun,    const char *type, ptrdiff_t type_length,    int flags,