[Github-comments] [geany] Gboxed types (#839)
Colomban Wendling
notifications at xxxxx
Mon Jan 25 21:41:39 UTC 2016
> }
> }
>
> +/** Gets the GBoxed-derived GType for TMSourceFile
> + *
> + * @return 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:
https://github.com/geany/geany/pull/839/files#r50760586
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160125/fb7f3536/attachment.html>
More information about the Github-comments
mailing list