Skip to content

Commit 9b7c4dd

Browse files
author
Brahmajit Das
committed
Fix build with GCC 14 and above
Newer compilers such as GCC 14 ( and above ) have enabled a few compiler flags by default, -Wincompatible-pointer-types being one of them. Thus resulting in build errors such as: frame.c: In function ‘frame_set_numbers_extl’: frame.c:799:32: error: passing argument 1 of ‘ioncore_grab_establish’ from incompatible pointer type [-Wincompatible-pointer-types] 799 | ioncore_grab_establish(frame, numbers_grab_handler, NULL, | ^~~~~ | | | WFrame * {aka struct WFrame_struct *} For now a type casting can be used to supress the error, as change the type of frame would require touching other parts of the codebase. First reported on Gentoo Linux with GCC 14, for more details please reffer https://bugs.gentoo.org/919249 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
1 parent 82c48d5 commit 9b7c4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ioncore/frame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ bool frame_set_numbers_extl(WFrame *frame, const char *how)
796796
{
797797
if(how!=NULL && strcmp(how, "during_grab")==0){
798798
bool new_state = frame_set_numbers(frame, SETPARAM_SET);
799-
ioncore_grab_establish(frame, numbers_grab_handler, NULL,
799+
ioncore_grab_establish((WRegion *)frame, numbers_grab_handler, NULL,
800800
0, GRAB_DEFAULT_FLAGS&~GRAB_POINTER);
801801
return new_state;
802802
}

0 commit comments

Comments
 (0)