Fix building with gcc 14 (#2045)

This commit is contained in:
Ryo Nakano 2024-08-24 13:51:57 +09:00 committed by GitHub
parent 738a1e95f6
commit 4ab797332f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -388,7 +388,9 @@ namespace Gala {
return; return;
} }
AtkBridge.adaptor_init (0, {}); string[] args = {};
unowned string[] _args = args;
AtkBridge.adaptor_init (ref _args);
} }
private void update_ui_group_size () { private void update_ui_group_size () {

View File

@ -1,6 +1,6 @@
[CCode (lower_case_cprefix = "atk_bridge_")] [CCode (cheader_filename = "atk-bridge.h", lower_case_cprefix = "atk_bridge_")]
namespace AtkBridge { 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 adaptor_cleanup ();
public static void set_event_context (GLib.MainContext cnx); public static void set_event_context (GLib.MainContext cnx);
} }