Skip to content

Fix building with gcc 14 #2045

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

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ namespace Gala {
return;
}

AtkBridge.adaptor_init (0, {});
string[] args = {};
unowned string[] _args = args;
AtkBridge.adaptor_init (ref _args);
}

private void update_ui_group_size () {
Expand Down
4 changes: 2 additions & 2 deletions vapi/atk-bridge-2.0.vapi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[CCode (lower_case_cprefix = "atk_bridge_")]
[CCode (cheader_filename = "atk-bridge.h", lower_case_cprefix = "atk_bridge_")]
namespace AtkBridge {
public static int adaptor_init (int argc, char[] argv);
public static int adaptor_init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
public static void adaptor_cleanup ();
public static void set_event_context (GLib.MainContext cnx);
}
Loading