Skip to content

Commit

Permalink
tests: explicitly cast incompatible function pointers
Browse files Browse the repository at this point in the history
also needed for Darwin CI
  • Loading branch information
fw-immunant committed Oct 22, 2024
1 parent 792ae54 commit 4fd5439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/casts/src/casts.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ void cast_stuff(void) {
const int *cintp = 0;
char *x1 = (char*) intp;
int *x2 = (int*) intp;
void(*f)(unsigned, int*) = cast_stuff;
void(*g)(unsigned, int*) = &cast_stuff;
void(*f)(unsigned, int*) = (void(*)(unsigned, int*))cast_stuff;
void(*g)(unsigned, int*) = (void(*)(unsigned, int*))&cast_stuff;
//(union intfloat)1;
int *x3 = (int*)inta;
int *x4 = (int*)0;
Expand Down

0 comments on commit 4fd5439

Please sign in to comment.