Skip to content

[BUG] Multiple incompatible-pointer-type warnings during native build #892

@amielke

Description

@amielke

Describe the bug

Building ProtonPlus 0.5.17 from source triggers multiple compiler warnings about incompatible pointer types during the native build.

The application still builds successfully, but these warnings may indicate real type mismatches in the generated or project C code.

To Reproduce

  1. Build ProtonPlus 0.5.17 from source
  2. Observe the compiler warnings during compilation

Expected behavior

The project should build without incompatible-pointer-type warnings.

Actual behavior

The build succeeds, but emits warnings such as:

src/protonplus.p/widgets/application.c:395:84: warning: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/application.c:402:91: warning: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/preferences/theme-row.c:531:33: warning: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/runners/runner-group.c:599:33: warning: passing argument 2 of ‘g_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/games/games-box.c:752:43: warning: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/games/games-box.c:1559:59: warning: passing argument 2 of ‘gtk_widget_set_css_classes’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/games/games-box.c:1765:43: warning: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/games/mass-edit-button.c:383:43: warning: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/games/mass-edit-button.c:475:43: warning: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/widgets/games/default-tool-dialog.c:462:33: warning: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/models/launcher.c:1688:42: warning: passing argument 2 of ‘g_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/models/vdf/binary.c:1130:25: warning: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘void **’ [-Wincompatible-pointer-types]
src/protonplus.p/utils/filesystem.c:827:63: warning: passing argument 2 of ‘archive_read_data_block’ from incompatible pointer type [-Wincompatible-pointer-types]
src/protonplus.p/utils/filesystem.c:1083:53: warning: passing argument 3 of ‘g_file_load_contents’ from incompatible pointer type [-Wincompatible-pointer-types]

Environment

  • ProtonPlus version: 0.5.17
  • Distribution: Gentoo Linux
  • Build method: native build with Meson

Additional context

The package builds and starts successfully, but these warnings were flagged during package maintainer testing and seem worth reporting upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions