Branch: Tag:

2019-03-18

2019-03-18 22:27:31 by Tobias S. Josefowitz <tobij@tobij.de>

GC: Silence compiler warnings

GCC 8 warns more agressively about mismatching signatures of function
pointers. To silence it, now we have an explicit do_gc_callback()
function of the correct signature, which calls do_gc(). Adjusted
do_gc()'s signature in the process, as there is no reason for it to be
semi-compatible with callbacks anymore.

3401:   #endif   }    - size_t do_gc(void *UNUSED(ignored), int explicit_call) + size_t do_gc(int explicit_call)   {    ALLOC_COUNT_TYPE start_allocs;    size_t start_num_objs, unreferenced;
4104:    return unreferenced;   }    + void do_gc_callback(struct callback *UNUSED(cb), void *UNUSED(arg1), +  void *UNUSED(arg2)) + { +  do_gc(0); + } +    /*! @decl mapping(string:int|float) gc_status()    *! @belongs Debug    *!