summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-07-11 11:32:18 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-07-11 11:39:34 +0100
commit7d499a09e1ef7dae0f3e9be774f3be25e2aa76ff (patch)
treec338afb079169c1606916b5200263437c7512269
parent01f95422b9caeb853bb9b91b5fede76fa317d0cb (diff)
downloadclutter-7d499a09e1ef7dae0f3e9be774f3be25e2aa76ff.tar.gz
build: Use newer glib-genmarshal argument
When using glib-genmarshal from GLib 2.54, we can use the newly added `--prototypes` command line argument to generate the prototypes of the marshallers in the C source, and void a missing-prototypes compiler warning.
-rw-r--r--build/autotools/Makefile.am.marshal3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/autotools/Makefile.am.marshal b/build/autotools/Makefile.am.marshal
index f29629ce1..3501ccf03 100644
--- a/build/autotools/Makefile.am.marshal
+++ b/build/autotools/Makefile.am.marshal
@@ -34,6 +34,7 @@ stamp-marshal: $(marshal_list)
$(AM_V_GEN)$(GLIB_GENMARSHAL) \
--prefix=$(glib_marshal_prefix) \
--header \
+ --valist-marshallers \
$(marshal_list) > xgen-mh \
&& (cmp -s xgen-mh $(marshal_h) || cp -f xgen-mh $(marshal_h)) \
&& rm -f xgen-mh \
@@ -46,6 +47,8 @@ $(marshal_c): $(marshal_h)
$(AM_V_GEN)$(GLIB_GENMARSHAL) \
--prefix=$(glib_marshal_prefix) \
--body \
+ --prototypes \
+ --valist-marshallers \
$(marshal_list) > xgen-mc \
&& (cmp -s xgen-mc $(marshal_c) || cp -f xgen-mc $(marshal_c)) \
&& rm -f xgen-mc