Skip to content

Commit dccb07c

Browse files
authored
Merge pull request #123 from misl6/fix/xcode16-disable-incompatible-function-pointer-types
Disable `-Wincompatible-function-pointer-types` in `testlib`
2 parents 0280bfe + 57b5ac8 commit dccb07c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

objc_classes/test/testlib.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ - (int) useImp:(IMP*(void*, SEL, int, int))imp withA:(int)a andB:(int)b {
159159
}
160160

161161
- (int) getandUseImpWithDefaultValues {
162+
#pragma clang diagnostic push
163+
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
162164
return (int)[self useImp: [self getImp] withA: 7 andB: 5];
165+
#pragma clang diagnostic pop
163166
}
164167

165168
/******************** </UNKNOWN TYPE TESTS> ***********************/

0 commit comments

Comments
 (0)