Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatible function pointers.... #151

Open
teuben opened this issue Aug 9, 2024 · 2 comments
Open

incompatible function pointers.... #151

teuben opened this issue Aug 9, 2024 · 2 comments

Comments

@teuben
Copy link
Owner

teuben commented Aug 9, 2024

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
Copy link
Owner Author

teuben commented Sep 24, 2024

the full list includes snapcmp, quadforce, snapmstat

@teuben teuben added the bug label Sep 24, 2024
@teuben teuben added this to NEMO Sep 29, 2024
@teuben teuben moved this to Todo in NEMO Sep 29, 2024
teuben added a commit that referenced this issue Oct 20, 2024
@teuben
Copy link
Owner Author

teuben commented Oct 21, 2024

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);
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant