[mutter] META_PLUGIN_DECLARE: don't emit an old-style definition
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] META_PLUGIN_DECLARE: don't emit an old-style definition
- Date: Tue, 16 Aug 2016 12:01:45 +0000 (UTC)
commit eb7f33265ab4ab2dd412e3313b43f5e3da209f74
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Tue Aug 16 11:21:07 2016 +0100
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
src/meta/meta-plugin.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/meta/meta-plugin.h b/src/meta/meta-plugin.h
index 07f8470..77a3648 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; \
} \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]