diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-11 15:30:13 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-11 15:30:13 +0000 |
commit | 469b5d8f31adfd054c5c493fc3df2f9c89c9fa00 (patch) | |
tree | f51c77713647680335a341aeb6c5a7fa019a000b /x11-misc/rofi-file-browser-extended/files | |
parent | 7d6f532c36268a2a8f53fa33c8e547c59702faa6 (diff) |
gentoo auto-resync : 11:11:2022 - 15:30:13
Diffstat (limited to 'x11-misc/rofi-file-browser-extended/files')
-rw-r--r-- | x11-misc/rofi-file-browser-extended/files/rofi-file-browser-extended-1.3.1-fix-function-pointer-initialization.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/x11-misc/rofi-file-browser-extended/files/rofi-file-browser-extended-1.3.1-fix-function-pointer-initialization.patch b/x11-misc/rofi-file-browser-extended/files/rofi-file-browser-extended-1.3.1-fix-function-pointer-initialization.patch new file mode 100644 index 000000000000..0cfff4286608 --- /dev/null +++ b/x11-misc/rofi-file-browser-extended/files/rofi-file-browser-extended-1.3.1-fix-function-pointer-initialization.patch @@ -0,0 +1,23 @@ +From 6f62a2d0784a6937d35ac8f6df2e22c23bbfc8f4 Mon Sep 17 00:00:00 2001 +From: Florian Schmaus <flo@geekplace.eu> +Date: Fri, 11 Nov 2022 15:03:32 +0100 +Subject: [PATCH] Fix function pointer initialization + +Fix + +src/filebrowser.c:380:27: warning: incompatible function pointer types initializing '_mode_get_icon' (aka 'struct _cairo_surface *(*)(const struct rofi_mode *, unsigned int, unsigned int)') with an expression of type 'cairo_surface_t *(const Mode *, unsigned int, int)' (aka 'struct _cairo_surface *(const struct rofi_mode *, unsigned int, int)') [-Wincompatible-function-pointer-types] + ._get_icon = file_browser_get_icon, + ^~~~~~~~~~~~~~~~~~~~~ + +See also https://bugs.gentoo.org/880985 +--- a/src/filebrowser.c ++++ b/src/filebrowser.c +@@ -263,7 +263,7 @@ static char *file_browser_get_display_value ( const Mode *sw, unsigned int selec + } + } + +-static cairo_surface_t *file_browser_get_icon ( const Mode *sw, unsigned int selected_line, int height ) ++static cairo_surface_t *file_browser_get_icon ( const Mode *sw, unsigned int selected_line, unsigned int height ) + { + FileBrowserModePrivateData *pd = ( FileBrowserModePrivateData * ) mode_get_private_data ( sw ); + FileBrowserFileData *fd = &pd->file_data; |