[gjs] compat: Fix unused method warnings
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] compat: Fix unused method warnings
- Date: Sun, 7 Apr 2013 18:25:58 +0000 (UTC)
commit 96388ed6e9da14ffbe1a3ce5b54d34466a2100f7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Apr 5 01:06:19 2013 -0400
compat: Fix unused method warnings
https://bugzilla.gnome.org/show_bug.cgi?id=697309
gjs/compat.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/compat.h b/gjs/compat.h
index af8e317..5206b04 100644
--- a/gjs/compat.h
+++ b/gjs/compat.h
@@ -47,7 +47,7 @@ G_BEGIN_DECLS
#define JSVAL_IS_OBJECT(obj) (JSVAL_IS_NULL(obj) || !JSVAL_IS_PRIMITIVE(obj))
-static JSBool JS_NewNumberValue(JSContext *cx, double d, jsval *rval)
+static JSBool G_GNUC_UNUSED JS_NewNumberValue(JSContext *cx, double d, jsval *rval)
{
*rval = JS_NumberValue(d);
if (JSVAL_IS_NUMBER(*rval))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]