mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
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:
parent
9f6f778589
commit
eb7f33265a
@ -299,7 +299,7 @@ struct _MetaPluginVersion
|
|||||||
GType meta_plugin_register_type (GTypeModule *type_module); \
|
GType meta_plugin_register_type (GTypeModule *type_module); \
|
||||||
\
|
\
|
||||||
GType \
|
GType \
|
||||||
object_name##_get_type () \
|
object_name##_get_type (void) \
|
||||||
{ \
|
{ \
|
||||||
return g_define_type_id; \
|
return g_define_type_id; \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user