It’s not uncommon in GNOME to annotate the _get_type() function declaration of a GObject with G_GNUC_CONST. Like so: GType ephy_download_get_type (void) G_GNUC_CONST; What does this do? It expands to __attribute__((__const__)) if the compiler is GCC (or a compiler that pretends to be GCC, like Clang); otherwise, it expands to nothing. What does that attribute do? …
Continue reading “Your _get_type() function is not G_GNUC_CONST”