From 1f10d269987e1973a6f70b951c4e8688d30f5d6d Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sun, 12 Mar 2023 11:02:04 +1100 Subject: [PATCH] suppress clang warning --- src/native/macosx/MacMiniFB.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/native/macosx/MacMiniFB.m b/src/native/macosx/MacMiniFB.m index f20f39e..e6b9c61 100644 --- a/src/native/macosx/MacMiniFB.m +++ b/src/native/macosx/MacMiniFB.m @@ -423,6 +423,8 @@ void mfb_set_title(void* window, const char* title) [win setTitle: ns_title]; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-parameter" void mfb_set_cursor_visibility(void *window, bool visibility) { if (visibility){ @@ -432,6 +434,7 @@ void mfb_set_cursor_visibility(void *window, bool visibility) [NSCursor hide]; } } +#pragma clang diagnostic pop ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////