Comment 2 for bug 1996921

Revision history for this message
Douglas Katzman (dougk) wrote :

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 *)'

Can you provide a better fix please?