Skip to content

Commit

Permalink
Merge pull request #123 from misl6/fix/xcode16-disable-incompatible-f…
Browse files Browse the repository at this point in the history
…unction-pointer-types

Disable `-Wincompatible-function-pointer-types` in `testlib`
  • Loading branch information
akshayaurora authored Oct 4, 2024
2 parents 0280bfe + 57b5ac8 commit dccb07c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions objc_classes/test/testlib.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ - (int) useImp:(IMP*(void*, SEL, int, int))imp withA:(int)a andB:(int)b {
}

- (int) getandUseImpWithDefaultValues {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
return (int)[self useImp: [self getImp] withA: 7 andB: 5];
#pragma clang diagnostic pop
}

/******************** </UNKNOWN TYPE TESTS> ***********************/
Expand Down

0 comments on commit dccb07c

Please sign in to comment.