[gjs] Fix a few compiler warnings



commit c5e39a3806f03705a1f819ec175b45fa9b22a4eb
Author: Colin Walters <walters verbum org>
Date:   Wed May 4 12:12:45 2011 -0400

    Fix a few compiler warnings

 gi/function.c  |    5 +++--
 gjs/profiler.c |    1 -
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gi/function.c b/gi/function.c
index aa17644..436a458 100644
--- a/gi/function.c
+++ b/gi/function.c
@@ -384,11 +384,12 @@ gjs_invoke_c_function(JSContext      *context,
     gpointer *in_arg_pointers;
     GArgument return_value;
 
-    guint8 processed_in_args;
+    guint8 processed_in_args = 0;
     guint8 n_args, i, js_argv_pos;
     guint8 in_args_pos, out_args_pos, inout_args_pos;
     guint8 in_args_len, out_args_len, inout_args_len;
-    guint8 can_throw_gerror, did_throw_gerror;
+    guint8 can_throw_gerror;
+    gboolean did_throw_gerror = FALSE;
     GError *local_error = NULL;
     guint8 failed, postinvoke_release_failed;
 
diff --git a/gjs/profiler.c b/gjs/profiler.c
index 327a33a..9b5096d 100644
--- a/gjs/profiler.c
+++ b/gjs/profiler.c
@@ -134,7 +134,6 @@ gjs_profile_function_key_from_js(JSContext             *cx,
 {
     JSScript *script;
     JSFunction *function;
-    JSString *function_name = NULL;
 
     /* We're not using the JSScript or JSFunction as the key since the script
      * could be unloaded and addresses reused.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]