nemo icon indicating copy to clipboard operation
nemo copied to clipboard

incompatible function pointers....

Open teuben opened this issue 1 year ago • 2 comments

For future strict compilers: snapgrid and snapmradii warn about incompatible function pointer usage. this now failed on a recent mac, but not on current linux yet (gcc 14 also fails this)

teuben avatar Aug 09 '24 17:08 teuben

the full list includes snapcmp, quadforce, snapmstat

teuben avatar Sep 24 '24 14:09 teuben

The proper protype should be:

local int cmpreal(const void *ap, const void *bp)
 {

  real *a = (real *) ap;
  real *b = (real *) bp;
  return (*a < *b ? -1 : *a > *b ? 1 : 0);
 }

teuben avatar Oct 21 '24 02:10 teuben