> @@ -3250,6 +3250,7 @@ void scintilla_release_resources(void) {
> static void *copy_(void *src) { return src; }
> static void free_(void *doc) { }
>
> +GEANY_API_SYMBOL
> GType scnotification_get_type(void) {
> static gsize type_id = 0;
It might be because
[`g_once_init_leave()`](https://developer.gnome.org/glib/unstable/glib-Threads.html#g-once-init-leave)
expects a `gsize` value, and if that API expects a pointer to a `gsize`-sized
value, it is a lot safer to use a real `gsize` as the pointer and have the cast
happen by value, instead of dereferencing a pointer to a `GType`-sized value as
if it was a `gsize`-sized one.
It's kinda odd `g_once_init_*()` API claims a `void*` pointer though, so I
don't know.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1038/files/6b5a47d05f575b321ff158044420864ee9e59889#r68226909