[gjs] Silence unused argv variable warnings
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Silence unused argv variable warnings
- Date: Thu, 10 Mar 2011 21:47:09 +0000 (UTC)
commit efaa63f6b3662395a0eb75df093e657e56f3e2d2
Author: Colin Walters <walters verbum org>
Date: Thu Mar 10 16:46:00 2011 -0500
Silence unused argv variable warnings
This is a better fix for d82acd67.
gi/keep-alive.c | 2 ++
gi/ns.c | 2 ++
gi/param.c | 2 ++
gi/repo.c | 2 ++
gi/union.c | 2 ++
gjs/importer.c | 1 +
modules/dbus-exports.c | 2 ++
7 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gi/keep-alive.c b/gi/keep-alive.c
index 028f900..c7149ac 100644
--- a/gi/keep-alive.c
+++ b/gi/keep-alive.c
@@ -93,6 +93,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(keep_alive)
GJS_NATIVE_CONSTRUCTOR_VARIABLES(keep_alive)
KeepAlive *priv;
+ (void) argv;
+
GJS_NATIVE_CONSTRUCTOR_PRELUDE(keep_alive);
priv = g_slice_new0(KeepAlive);
diff --git a/gi/ns.c b/gi/ns.c
index 665af8a..58111cc 100644
--- a/gi/ns.c
+++ b/gi/ns.c
@@ -159,6 +159,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(ns)
GJS_NATIVE_CONSTRUCTOR_VARIABLES(ns)
Ns *priv;
+ (void) argv;
+
GJS_NATIVE_CONSTRUCTOR_PRELUDE(ns);
priv = g_slice_new0(Ns);
diff --git a/gi/param.c b/gi/param.c
index 77b83af..7949f7e 100644
--- a/gi/param.c
+++ b/gi/param.c
@@ -160,6 +160,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(param)
GJS_NATIVE_CONSTRUCTOR_PRELUDE(param);
+ (void) argv;
+
priv = g_slice_new0(Param);
GJS_INC_COUNTER(param);
diff --git a/gi/repo.c b/gi/repo.c
index 097ca67..a17ed4c 100644
--- a/gi/repo.c
+++ b/gi/repo.c
@@ -174,6 +174,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(repo)
GJS_NATIVE_CONSTRUCTOR_PRELUDE(repo);
+ (void) argv;
+
priv = g_slice_new0(Repo);
GJS_INC_COUNTER(repo);
diff --git a/gi/union.c b/gi/union.c
index 8d1ee6e..0e78e8e 100644
--- a/gi/union.c
+++ b/gi/union.c
@@ -221,6 +221,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(union)
priv = g_slice_new0(Union);
+ (void) argv;
+
GJS_INC_COUNTER(boxed);
g_assert(priv_from_js(context, object) == NULL);
diff --git a/gjs/importer.c b/gjs/importer.c
index 7aa674e..ea92f78 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -971,6 +971,7 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(importer)
Importer *priv;
GJS_NATIVE_CONSTRUCTOR_PRELUDE(importer);
+ (void) argv;
priv = g_slice_new0(Importer);
diff --git a/modules/dbus-exports.c b/modules/dbus-exports.c
index d5c7198..5321c20 100644
--- a/modules/dbus-exports.c
+++ b/modules/dbus-exports.c
@@ -1713,6 +1713,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(js_exports)
GJS_NATIVE_CONSTRUCTOR_PRELUDE(js_exports);
+ (void) argv;
+
priv = g_slice_new0(Exports);
GJS_INC_COUNTER(dbus_exports);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]