Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatible function pointer types #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elig0n
Copy link

@elig0n elig0n commented Oct 11, 2024

Fixes

[ 88%] Built target manpage
/tmp/yay-build/rofi-file-browser-extended-git/src/rofi-file-browser-extended/src/filebrowser.c:380:27: error: initialization of ‘cairo_surface_t * (*)(const Mode *, unsigned int,  unsigned int)’ {aka ‘struct _cairo_surface * (*)(const struct rofi_mode *, unsigned int,  unsigned int)’} from incompatible pointer type ‘cairo_surface_t * (*)(const Mode *, unsigned int,  int)’ {aka ‘struct _cairo_surface * (*)(const struct rofi_mode *, unsigned int,  int)’} [-Wincompatible-pointer-types]
  380 |     ._get_icon          = file_browser_get_icon,
      |                           ^~~~~~~~~~~~~~~~~~~~~
/tmp/yay-build/rofi-file-browser-extended-git/src/rofi-file-browser-extended/src/filebrowser.c:380:27: note: (near initialization for ‘mode._get_icon’)
make[2]: *** [CMakeFiles/filebrowser.dir/build.make:90: CMakeFiles/filebrowser.dir/src/filebrowser.c.o] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant