mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-12 10:57:50 -04:00
When building with --disable-p2p, we create a stub type for OstreeRepoFinderResult and OstreeRepoFinderResultv to avoid having to add #ifdefs around all uses of them throughout the code base. We also need to create autoptr functions for them so that the code can continue to use g_autoptr(OstreeRepoFinderResult). Previously, we were using `void` as the GDestroyNotify function for the stub types. This wasn’t valid (it’s not a function), but it worked. Since g_autolist() support has landed in GLib, this has broken. Fix it by using a static inline no-op function as the GDestroyNotify function instead. This should never be called, so exists purely to get things to compile. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://github.com/flatpak/flatpak/issues/1279 Closes: #1293 Approved by: mwleeds