From 1143b4932b73f03b0ee78c750a181a2c5db5f4e3 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 @@ typedef union test_un_ { } - (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 } /******************** ***********************/