Skip to content

Commit

Permalink
Disable -Wincompatible-function-pointer-types in testlib
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 authored and akshayaurora committed Oct 4, 2024
1 parent a070ec7 commit 1143b49
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 1143b49

Please sign in to comment.