From 08ba9859717ed27384675bd687a35f4504701f27 Mon Sep 17 00:00:00 2001 From: arakiken Date: Mon, 12 Aug 2024 22:23:37 +0900 Subject: [PATCH] * ui_im_status_screen-cocoa.m: Fix errors in -Werror=incompatible-pointer-types. --- ChangeLog | 2 ++ uitoolkit/quartz/ui_im_status_screen-cocoa.m | 12 +++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 767b8a222..780a96fe5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2024-08-12 Araki Ken + * ui_im_status_screen-cocoa.m: Fix errors in -Werror=incompatible-pointer-types. + * cocoa.m, cocoatouch.m: Fix errors in -Werror=incompatible-pointer-types. * im_canna.c, quartz/ui_imagelib.c: Fix errors in -Werror=incompatible-pointer-types. diff --git a/uitoolkit/quartz/ui_im_status_screen-cocoa.m b/uitoolkit/quartz/ui_im_status_screen-cocoa.m index b666f7d18..5db47c55f 100644 --- a/uitoolkit/quartz/ui_im_status_screen-cocoa.m +++ b/uitoolkit/quartz/ui_im_status_screen-cocoa.m @@ -17,30 +17,24 @@ * methods of ui_im_status_screen_t */ -static int destroy(ui_im_status_screen_t* stat_screen) { +static void destroy(ui_im_status_screen_t* stat_screen) { NSWindow* window = stat_screen->window.my_window; [window release]; free(stat_screen); - - return 1; } -static int show(ui_im_status_screen_t* stat_screen) { +static void show(ui_im_status_screen_t* stat_screen) { NSWindow* window = stat_screen->window.my_window; [window orderFront:window]; - - return 1; } -static int hide(ui_im_status_screen_t* stat_screen) { +static void hide(ui_im_status_screen_t* stat_screen) { NSWindow* window = stat_screen->window.my_window; [window orderOut:window]; - - return 1; } static int set_spot(ui_im_status_screen_t* stat_screen, int x, int y) {