From 1c5763ca166396be6c04471aa130620e0e0ba546 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 4 Jul 2023 16:05:04 +1200 Subject: [PATCH] Stop fl_method_call_get_type() not being exported. Causes the build in https://github.com/flutter/flutter/pull/123731 to fail --- shell/platform/linux/fl_method_call.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/platform/linux/fl_method_call.cc b/shell/platform/linux/fl_method_call.cc index 2bf9c28e7fa07..3e405d92ebc29 100644 --- a/shell/platform/linux/fl_method_call.cc +++ b/shell/platform/linux/fl_method_call.cc @@ -22,6 +22,9 @@ struct _FlMethodCall { FlBinaryMessengerResponseHandle* response_handle; }; +// Added here to stop the compiler from optimizing this function away. +G_MODULE_EXPORT GType fl_method_call_get_type(); + G_DEFINE_TYPE(FlMethodCall, fl_method_call, G_TYPE_OBJECT) static void fl_method_call_dispose(GObject* object) {