<p>In <a href="https://github.com/geany/geany/pull/839#discussion_r50762313">tagmanager/src/tm_source_file.c</a>:</p>
<pre style='color:#555'>>      }
>  }
>  
> +/** Gets the GBoxed-derived GType for TMSourceFile
> + *
> + * @return TMSourceFile type . */
> +GEANY_API_SYMBOL
> +GType tm_source_file_get_type(void);
</pre>
<div class="email-fragment">Am 25. Januar 2016 22:41:41 MEZ, schrieb Colomban Wendling <notifications@github.com>:</div>
<div class="email-quoted-reply">>    }
>  }
>
> +/** Gets the GBoxed-derived GType for TMSourceFile
> + *
> + * <a href="https://github.com/return" class="user-mention">@return</a> TMSourceFile type . */
> +GEANY_API_SYMBOL
> +GType tm_source_file_get_type(void);

```gcc
../../../tagmanager/src/tm_source_file.c:272:7: warning: redundant
redeclaration of 'tm_source_file_get_type' [-Wredundant-decls]
 GType tm_source_file_get_type(void);
       ^
In file included from ../../../tagmanager/src/tm_source_file.c:35:0:
../../../tagmanager/src/tm_source_file.h:48:7: note: previous
declaration of 'tm_source_file_get_type' was here
 GType tm_source_file_get_type(void);
       ^
```
but I guess we don't care.  Alternatively we could just rely on the
fact `G_DEFINE_BOXED_TYPE` only expands to a function definition so
attributes could come right before, but this is likely to be fragile as
it's not documented explicitly.

---
Reply to this email directly or view it on GitHub:
<a href="https://github.com/geany/geany/pull/839/files#r50760586">https://github.com/geany/geany/pull/839/files#r50760586</a>
</div>
<div class="email-fragment">Actually I considered this. However I decided against for that reason, but also because other similar macros like G_DEFINE_TYPE don't work like this.

This warning is harmless and not enabled  by default  isn't it?</div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/839/files#r50762313">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyAIiXuUlN9jF47nwW64Y5czDWzVks5pdpD4gaJpZM4G6HUp.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/839/files#r50762313"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>