From 57b5ac8b576840423120a5a711e38ffb9e05eda2 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Sun, 29 Sep 2024 15:11:10 +0200 Subject: [PATCH] Disable -Wincompatible-function-pointer-types in testlib --- objc_classes/test/testlib.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objc_classes/test/testlib.m b/objc_classes/test/testlib.m index bb4c69a..f3b1842 100644 --- a/objc_classes/test/testlib.m +++ b/objc_classes/test/testlib.m @@ -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 } /******************** ***********************/