From eb7f33265ab4ab2dd412e3313b43f5e3da209f74 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 16 Aug 2016 11:21:07 +0100 Subject: [PATCH] META_PLUGIN_DECLARE: don't emit an old-style definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Florian Müllner Bug: https://bugzilla.gnome.org/show_bug.cgi?id=769971 --- src/meta/meta-plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/meta-plugin.h b/src/meta/meta-plugin.h index 07f8470b5..77a3648f4 100644 --- a/src/meta/meta-plugin.h +++ b/src/meta/meta-plugin.h @@ -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; \ } \