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.

164:   #define DO_RETURN DO_DUMB_RETURN   #else   #define DO_RETURN { \ -  if(d_flag>3) do_gc(NULL, 0); \ +  if(d_flag>3) do_gc(0); \    if(d_flag>4) do_debug(); \    DO_DUMB_RETURN; \   }
1781:    * call return -1, so we must call the callbacks here to    * prevent false alarms! /Hubbe    */ -  if(d_flag>3) do_gc(NULL, 0); +  if(d_flag>3) do_gc(0);    if(d_flag>4) do_debug();    );    if (!(Pike_fp->flags & PIKE_FRAME_SAVE_LOCALS)) {