[gjs] Fix two prototype compilation warnings
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Fix two prototype compilation warnings
- Date: Thu, 16 Sep 2010 21:25:23 +0000 (UTC)
commit 31b2615e1e4fafe6532d38459c4e03eec47681da
Author: Colin Walters <walters verbum org>
Date: Thu Sep 16 16:50:45 2010 -0400
Fix two prototype compilation warnings
modules/cairo-private.h | 4 ++++
modules/dbus-values.h | 2 +-
modules/dbus.c | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/modules/cairo-private.h b/modules/cairo-private.h
index 67aae0f..2ba7379 100644
--- a/modules/cairo-private.h
+++ b/modules/cairo-private.h
@@ -44,6 +44,10 @@ void gjs_cairo_context_init (JSContext *contex
/* cairo_path_t */
+jsval gjs_cairo_path_create_proto (JSContext *context,
+ JSObject *module,
+ const char *proto_name,
+ JSObject *parent);
JSObject * gjs_cairo_path_from_path (JSContext *context,
cairo_path_t *path);
cairo_path_t * gjs_cairo_path_get_path (JSContext *context,
diff --git a/modules/dbus-values.h b/modules/dbus-values.h
index a25de24..ec9176c 100644
--- a/modules/dbus-values.h
+++ b/modules/dbus-values.h
@@ -45,7 +45,7 @@ JSBool gjs_js_one_value_to_dbus (JSContext *context,
DBusSignatureIter *sig_iter);
void gjs_js_push_current_message (DBusMessage *message);
-void gjs_js_pop_current_message ();
+void gjs_js_pop_current_message (void);
G_END_DECLS
diff --git a/modules/dbus.c b/modules/dbus.c
index 526be8e..2322a7c 100644
--- a/modules/dbus.c
+++ b/modules/dbus.c
@@ -104,7 +104,7 @@ gjs_js_push_current_message(DBusMessage *message)
}
void
-gjs_js_pop_current_message()
+gjs_js_pop_current_message(void)
{
g_assert(_gjs_current_dbus_messages != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]