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 build failure on gcc-14 #70

Closed
wants to merge 2 commits into from
Closed

Conversation

raviksharma
Copy link
Contributor

gcc-14 treats implicitly casting all pointer types to all other pointer types as error now.

https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors

gcc-14 treats implicitly casting all pointer types to all other pointer types as error now.

https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
plugins/tray.c Outdated
@@ -631,7 +631,7 @@ static GtkWidget *tray_constructor(LXPanel *panel, config_setting_t *settings)
/* Add GDK event filter. */
gdk_window_add_filter(NULL, (GdkFilterFunc) tray_event_filter, tr);
/* Reference the window since it is never added to a container. */
tr->invisible = g_object_ref_sink(G_OBJECT(invisible));
tr->invisible = (GtkWidget *) g_object_ref_sink(G_OBJECT(invisible));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, so forgive me if I'm wrong, but should it be GTK_WIDGET(...) instead to be more idiomatic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I tested the build with GTK_WIDGET(...) and I have updated the PR.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

gcc-14 treats implicitly casting all pointer types to all other pointer types as error now.

https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
@ib
Copy link
Member

ib commented Aug 7, 2024

Applied (with slightly revised commit message).

Thank you very much for your contribution.

@ib ib closed this Aug 7, 2024
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.

3 participants