<p>In <a href="https://github.com/geany/geany/pull/1038#discussion_r68226909">scintilla/gtk/ScintillaGTK.cxx</a>:</p>
<pre style='color:#555'>> @@ -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;
</pre>
<p>It might be because <a href="https://developer.gnome.org/glib/unstable/glib-Threads.html#g-once-init-leave"><code>g_once_init_leave()</code></a> expects a <code>gsize</code> value, and if that API expects a pointer to a <code>gsize</code>-sized value, it is a lot safer to use a real <code>gsize</code> as the pointer and have the cast happen by value, instead of dereferencing a pointer to a <code>GType</code>-sized value as if it was a <code>gsize</code>-sized one.</p>

<p>It's kinda odd <code>g_once_init_*()</code> API claims a <code>void*</code> pointer though, so I don't know.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1038/files/6b5a47d05f575b321ff158044420864ee9e59889#r68226909">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ_Bxos-ZKbkNkOIMdk1obS6mzwTrks5qOn93gaJpZM4Ifw_7">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8q5xxbJ3eMbbvWaNM5cDz_WYnSpks5qOn93gaJpZM4Ifw_7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1038/files/6b5a47d05f575b321ff158044420864ee9e59889#r68226909"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>