From d2ad9fe828a789a53d0099827f52d3c1ea7cbd5b Mon Sep 17 00:00:00 2001 From: lbonn Date: Tue, 27 Feb 2024 13:34:22 +0100 Subject: [PATCH] [Wayland] Fix remaining non-strict C prototypes --- include/display-internal.h | 2 +- include/view-internal.h | 2 +- source/modes/wayland-window.c | 2 +- source/wayland/display.c | 2 +- source/wayland/view.c | 2 +- source/xcb/view.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/display-internal.h b/include/display-internal.h index d30d5e230..5d8001b4b 100644 --- a/include/display-internal.h +++ b/include/display-internal.h @@ -49,7 +49,7 @@ typedef struct _display_proxy { void (*set_input_focus)(guint window); void (*revert_input_focus)(void); char *(*get_clipboard_data)(int type); - void (*set_fullscreen_mode)(); + void (*set_fullscreen_mode)(void); guint (*scale)(void); diff --git a/include/view-internal.h b/include/view-internal.h index c4ac5404e..509a5fab1 100644 --- a/include/view-internal.h +++ b/include/view-internal.h @@ -190,7 +190,7 @@ typedef struct _view_proxy { void (*set_size)(RofiViewState *state, gint width, gint height); void (*get_size)(RofiViewState *state, gint *width, gint *height); - void (*pool_refresh)(); + void (*pool_refresh)(void); } view_proxy; typedef struct { diff --git a/source/modes/wayland-window.c b/source/modes/wayland-window.c index d2f62ef29..c1393bcd0 100644 --- a/source/modes/wayland-window.c +++ b/source/modes/wayland-window.c @@ -286,7 +286,7 @@ static void handle_global_remove(G_GNUC_UNUSED void *data, static struct wl_registry_listener registry_listener = { .global = &handle_global, .global_remove = &handle_global_remove}; -static int wayland_window_mode_parse_fields() { +static int wayland_window_mode_parse_fields(void) { int result = 0; char *savept = NULL; // Make a copy, as strtok will modify it. diff --git a/source/wayland/display.c b/source/wayland/display.c index cc31ba983..1b3c06f67 100644 --- a/source/wayland/display.c +++ b/source/wayland/display.c @@ -1724,7 +1724,7 @@ static char *wayland_get_clipboard_data(int type) { return NULL; } -static void wayland_set_fullscreen_mode() { +static void wayland_set_fullscreen_mode(void) { if (!wayland->wlr_surface) { return; } diff --git a/source/wayland/view.c b/source/wayland/view.c index fbb95b657..9812cfaf6 100644 --- a/source/wayland/view.c +++ b/source/wayland/view.c @@ -425,7 +425,7 @@ static int wayland_rofi_view_calculate_window_height(RofiViewState *state) { static void wayland_rofi_view_hide(void) { display_early_cleanup(); } -static void wayland_rofi_view_cleanup() { +static void wayland_rofi_view_cleanup(void) { g_debug("Cleanup."); if (WlState.idle_timeout > 0) { g_source_remove(WlState.idle_timeout); diff --git a/source/xcb/view.c b/source/xcb/view.c index 8a3959bfa..8a562dc23 100644 --- a/source/xcb/view.c +++ b/source/xcb/view.c @@ -957,7 +957,7 @@ static void xcb_rofi_view_hide(void) { } } -static void xcb_rofi_view_cleanup() { +static void xcb_rofi_view_cleanup(void) { // Clear clipboard data. xcb_stuff_set_clipboard(NULL); g_debug("Cleanup.");