TBH we got 1 warning less without this patch. Now we get:
traceroot.c: In function 'deduce_thread':
traceroot.c:258:37: warning: passing argument 1 of 'context_scanner' from incompatible pointer type [-Wincompatible-pointer-types]
258 | context_scanner(compare_pointer, c);
| ^~~~~~~~~~~~~~~
| |
| void (*)(void *)
traceroot.c:258:37: note: expected 'void (*)(void)' but argument is of type 'void (*)(void *)'
TBH we got 1 warning less without this patch. Now we get:
traceroot.c: In function 'deduce_thread': -pointer- types] scanner( compare_ pointer, c);
traceroot.c:258:37: warning: passing argument 1 of 'context_scanner' from incompatible pointer type [-Wincompatible
258 | context_
| ^~~~~~~~~~~~~~~
| |
| void (*)(void *)
traceroot.c:258:37: note: expected 'void (*)(void)' but argument is of type 'void (*)(void *)'
Can you provide a better fix please?