[Geany-Users] compile error caused by __unused__

Colomban Wendling lists.ban at xxxxx
Sat Feb 22 16:23:27 UTC 2014


Le 22/02/2014 17:12, Freddi Schiller a écrit :
> I was trying to compile geany
> (https://github.com/b4n/geany/tree/wip/gtk3-support), but I get errors
> like this:
> 
> ~/geany-wip-gtk3-support/tagmanager/src'
>   CC       tm_file_entry.o
> tm_file_entry.c:35:66: error: expected ‘;’, ‘,’ or ‘)’ before ‘user_data’
>  void tm_file_entry_print(TMFileEntry *entry, gpointer __unused__ user_data

That's a quite old bug we fixed a while ago that is triggered by
building with a recent GLib.

> It continues compilation when I remove "__unused__", but the error
> happens again and again (probably hundreds of times). Are there special
> compiler parameters necessary? Why does it not just work with "make"?
> I was also wondering if I caught the correct source code, since it seems
> to be missing commits for over a year.

This branch on my personal for isn't maintained anymore, the GTK3
support landed in the main repository's master branch a while ago.  So
just grab the main Geany source repository at the latest version, and
configure it with `--enable-gtk3`.

Cheers,
Colomban


More information about the Users mailing list