mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
Use newer glib-genmarshal option
When building against a glib-genmarshal from GLib 2.54 we can use the `--prototypes` command line argument to generate the prototypes for the marshallers in the C source, and avoid a missing-prototypes compiler warning.
This commit is contained in:
parent
1303c626b1
commit
41e22ab592
@ -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 \
|
||||
--valist-marshallers \
|
||||
--prototypes \
|
||||
$(marshal_list) > xgen-mc \
|
||||
&& (cmp -s xgen-mc $(marshal_c) || cp -f xgen-mc $(marshal_c)) \
|
||||
&& rm -f xgen-mc
|
||||
|
Loading…
Reference in New Issue
Block a user