Skip to content

Commit 1143b49

Browse files
misl6akshayaurora
authored andcommitted
Disable -Wincompatible-function-pointer-types in testlib
1 parent a070ec7 commit 1143b49

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)