Skip to content

Conversation

@pastalian
Copy link
Contributor

In C23, void foo() is equivalent to void foo(void), making implicit type casting invalid.
https://gcc.gnu.org/gcc-15/porting_to.html

Downstream Bug: https://bugs.gentoo.org/945236

../src/gui/monitor.c:54:12: error: initialization of ‘void (*)(void *, struct wl_surface *, struct wl_output *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
   54 |   .leave = monitor_noop
      |            ^~~~~~~~~~~~

In C23, `void foo()` is equivalent to `void foo(void)`, making implicit
type casting invalid.

Downstream Bug: https://bugs.gentoo.org/945236
@LBCrion
Copy link
Owner

LBCrion commented Jan 27, 2025

Thank you!

@LBCrion LBCrion merged commit e13e6cf into LBCrion:main Jan 27, 2025
1 check passed
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.

2 participants