diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-02-21 11:50:32 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-02-21 11:50:32 +0000 |
commit | 71fdf0df088372c41398095e5f73b083d7ee20ec (patch) | |
tree | f97faafe8395b04c57ee16edaa1bdbec0687e979 /examples | |
parent | 62be285215f7c0e4280ac4a4904b81c4709b6391 (diff) |
examples/extensions/: fix compilation with -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
Diffstat (limited to 'examples')
-rw-r--r-- | examples/extensions/Makefile.am | 5 | ||||
-rw-r--r-- | examples/extensions/extensions-cli.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/extensions/Makefile.am b/examples/extensions/Makefile.am index 54eaf7f73..e552d7ebe 100644 --- a/examples/extensions/Makefile.am +++ b/examples/extensions/Makefile.am @@ -83,7 +83,10 @@ _gen/signals-marshal.h: _gen/signals-marshal.list $(GLIB_GENMARSHAL) --header --prefix=_example_ext_marshal $< > $@ _gen/signals-marshal.c: _gen/signals-marshal.list - $(GLIB_GENMARSHAL) --body --prefix=_example_ext_marshal $< > $@ + {\ + echo '#include "_gen/signals-marshal.h"' && \ + $(GLIB_GENMARSHAL) --body --prefix=_example_ext_marshal $< ; \ + } > $@ _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \ $(tools_dir)/glib-client-marshaller-gen.py diff --git a/examples/extensions/extensions-cli.c b/examples/extensions/extensions-cli.c index b49418226..a4c393fad 100644 --- a/examples/extensions/extensions-cli.c +++ b/examples/extensions/extensions-cli.c @@ -3,9 +3,10 @@ #include <telepathy-glib/connection.h> #include <telepathy-glib/proxy-subclass.h> -#include "_gen/signals-marshal.h" +static void _example_ext_register_dbus_glib_marshallers (void); /* include auto-generated stubs for client-specific code */ +#include "_gen/signals-marshal.h" #include "_gen/cli-connection-body.h" #include "_gen/register-dbus-glib-marshallers-body.h" |