[gjs] stack.c: Kill a gcc unused variable warning
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] stack.c: Kill a gcc unused variable warning
- Date: Wed, 19 Oct 2011 16:38:26 +0000 (UTC)
commit eadfba221f1c0c43613e76f963f0dd660f547a68
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Oct 18 01:50:10 2011 -0400
stack.c: Kill a gcc unused variable warning
https://bugzilla.gnome.org/show_bug.cgi?id=662064
configure.ac | 1 -
gjs/stack.c | 14 --------------
2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0f07082..4c4afea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,7 +177,6 @@ AC_CHECK_FUNC([JS_DestroyScript], AC_DEFINE([HAVE_JS_DESTROYSCRIPT], [1], [Defin
AC_CHECK_FUNC([JS_DecodeUTF8], AC_DEFINE([HAVE_JS_DECODEUTF8], [1], [Define if we have JS_DecodeUTF8]),)
AC_CHECK_FUNC([JS_FreezeObject], AC_DEFINE([HAVE_JS_FREEZEOBJECT], [1], [Define if we have JS_FreezeObject]),)
AC_CHECK_FUNC([JS_IsScriptFrame], AC_DEFINE([HAVE_JS_ISSCRIPTFRAME], [1], [Define if we have JS_IsScriptFrame]),)
-AC_CHECK_FUNC([JS_EndPC], AC_DEFINE([HAVE_JS_ENDPC], [1], [Define if we have JS_EndPC]),)
AC_CHECK_FUNC([JS_NewCompartmentAndGlobalObject], AC_DEFINE([HAVE_JS_NEWCOMPARTMENTANDGLOBALOBJECT], [1], [Define if we have JS_NewCompartmentAndGlobalObject]),)
AC_CHECK_FUNC([JS_SetScriptStackQuota], AC_DEFINE([HAVE_JS_SETSCRIPTSTACKQUOTA], [1], [Define if we have JS_SetScriptStackQuota]),)
AC_CHECK_FUNC([JS_ClearNewbornRoots], AC_DEFINE([HAVE_JS_CLEARNEWBORNROOTS], [1], [Define if we have JS_ClearNewbornRoots]),)
diff --git a/gjs/stack.c b/gjs/stack.c
index 56bebd8..cd6c249 100644
--- a/gjs/stack.c
+++ b/gjs/stack.c
@@ -81,7 +81,6 @@ format_frame(JSContext* cx, JSStackFrame* fp,
GString *buf, int num)
{
JSPropertyDescArray call_props = { 0, NULL };
- JSObject* this_obj = NULL;
JSObject* call_obj = NULL;
char* funname_str = NULL;
const char* filename = NULL;
@@ -130,19 +129,6 @@ format_frame(JSContext* cx, JSStackFrame* fp,
call_props.array = NULL;
}
- /* mozilla-central commit 38cbd4e02afc */
-#ifdef HAVE_JS_ENDPC
- {
- jsval thisval;
- if (JS_GetFrameThis(cx, fp, &thisval) && JSVAL_IS_OBJECT(thisval))
- this_obj = JSVAL_TO_OBJECT(thisval);
- else
- this_obj = NULL;
- }
-#else
- this_obj = JS_GetFrameThis(cx, fp);
-#endif
-
}
/* print the frame number and function name */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]