META_PLUGIN_DECLARE: don't emit an old-style definition

An empty argument list means "unspecified arguments", and not
"no arguments" like it does in C++. If an implementer of Mutter
plugins uses gcc -Wold-style-definition, as configured by
AX_COMPILER_FLAGS_CFLAGS, they will get warnings about this.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Florian Müllner <fmuellner@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=769971
This commit is contained in:
Simon McVittie 2016-08-16 11:21:07 +01:00
parent 9f6f778589
commit eb7f33265a

View File

@ -299,7 +299,7 @@ struct _MetaPluginVersion
GType meta_plugin_register_type (GTypeModule *type_module); \
\
GType \
object_name##_get_type () \
object_name##_get_type (void) \
{ \
return g_define_type_id; \
} \