[seed] Fix Compiler warning
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Fix Compiler warning
- Date: Tue, 29 Jun 2010 15:04:18 +0000 (UTC)
commit dd8c459cd3ecc38c68d7d2f1cfdc038ce2a2ad4d
Author: Alan Knowles <alan akkbhome com>
Date: Tue Jun 29 23:03:32 2010 +0800
Fix Compiler warning
Cast JSValueMakeNull on make_struct / make_union to JSObjectRef to remove compiler warnings.
libseed/seed-structs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libseed/seed-structs.c b/libseed/seed-structs.c
index 088151b..be79ca5 100644
--- a/libseed/seed-structs.c
+++ b/libseed/seed-structs.c
@@ -558,7 +558,7 @@ seed_make_union (JSContextRef ctx, gpointer younion, GIBaseInfo * info)
if (younion == NULL)
{
- return JSValueMakeNull (ctx);
+ return (JSObjectRef) JSValueMakeNull (ctx);
}
seed_struct_privates *priv = g_slice_alloc (sizeof (seed_struct_privates));
@@ -650,7 +650,7 @@ seed_make_struct (JSContextRef ctx, gpointer strukt, GIBaseInfo * info)
if (strukt == NULL)
{
- return JSValueMakeNull (ctx);
+ return (JSObjectRef) JSValueMakeNull (ctx);
}
seed_struct_privates *priv = g_slice_alloc (sizeof (seed_struct_privates));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]