[gnumeric] flag some unused variables to suppress warnings



commit 510737bbaeb565942e9df58cc25c5f82f3f7c04c
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Nov 10 11:39:16 2011 -0700

    flag some unused variables to suppress warnings

 src/dialogs/dialog-formula-guru.c    |    6 +++---
 src/dialogs/dialog-function-select.c |   21 +++++++++++----------
 src/dialogs/dialog-goto-cell.c       |    6 +++---
 src/dialogs/dialog-password.c        |    2 +-
 4 files changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/src/dialogs/dialog-formula-guru.c b/src/dialogs/dialog-formula-guru.c
index d5d9e92..731f565 100644
--- a/src/dialogs/dialog-formula-guru.c
+++ b/src/dialogs/dialog-formula-guru.c
@@ -747,9 +747,9 @@ cb_dialog_formula_guru_edited (G_GNUC_UNUSED GtkCellRendererText *cell,
 }
 
 static void
-cb_dialog_formula_guru_editing_started (GtkCellRenderer *cell,
+cb_dialog_formula_guru_editing_started (G_GNUC_UNUSED GtkCellRenderer *cell,
 					GtkCellEditable *editable,
-					const gchar *path,
+					G_GNUC_UNUSED const gchar *path,
 					FormulaGuruState *state)
 {
 	g_object_ref (editable);
@@ -807,7 +807,7 @@ start_editing_cb (GtkTreeView      *tree_view,
 }
 
 static gboolean
-cb_dialog_formula_guru_query_tooltip (GtkWidget  *widget,
+cb_dialog_formula_guru_query_tooltip (G_GNUC_UNUSED GtkWidget  *widget,
 				      gint        x,
 				      gint        y,
 				      gboolean    keyboard_mode,
diff --git a/src/dialogs/dialog-function-select.c b/src/dialogs/dialog-function-select.c
index e29a926..9f55d68 100644
--- a/src/dialogs/dialog-function-select.c
+++ b/src/dialogs/dialog-function-select.c
@@ -123,8 +123,9 @@ typedef struct {
 } search_t;
 
 static gboolean
-cb_dialog_function_select_search_all (GtkTreeModel *model, GtkTreePath *path,
-		       GtkTreeIter *iter, gpointer data)
+cb_dialog_function_select_search_all (GtkTreeModel *model, 
+				      G_GNUC_UNUSED GtkTreePath *path,
+				      GtkTreeIter *iter, gpointer data)
 {
 	search_t *specs = data;
 	gchar *name;
@@ -236,7 +237,7 @@ dialog_function_select_cat_changed (G_GNUC_UNUSED GtkComboBox *widget,
 
 static gboolean
 cb_dialog_function_load_recent_funcs(GtkTreeModel *model,
-				     GtkTreePath *path,
+				     G_GNUC_UNUSED GtkTreePath *path,
 				     GtkTreeIter *iter,
 				     gpointer data)
 {
@@ -426,9 +427,9 @@ cb_dialog_function_select_paste_clicked (G_GNUC_UNUSED GtkWidget *button,
 }
 
 static void
-cb_dialog_function_row_activated (GtkTreeView *tree_view,
-				  GtkTreePath       *path,
-				  GtkTreeViewColumn *column,
+cb_dialog_function_row_activated (G_GNUC_UNUSED GtkTreeView *tree_view,
+				  G_GNUC_UNUSED GtkTreePath       *path,
+				  G_GNUC_UNUSED GtkTreeViewColumn *column,
 				  FunctionSelectState *state)
 {
 	switch (state->mode) {
@@ -467,7 +468,7 @@ typedef struct {
 
 static gboolean
 cb_dialog_function_select_load_cb (GtkTreeModel *model,
-				   GtkTreePath *path,
+				   G_GNUC_UNUSED GtkTreePath *path,
 				   GtkTreeIter *iter,
 				   gpointer data)
 {
@@ -586,9 +587,9 @@ make_link (GtkTextBuffer *description, const char *name,
 }
 
 static gboolean
-cb_link_event (GtkTextTag *link, GObject *trigger,
-	       GdkEvent *event, GtkTextIter *iter,
-	       gpointer user)
+cb_link_event (GtkTextTag *link, G_GNUC_UNUSED GObject *trigger,
+	       GdkEvent *event, G_GNUC_UNUSED GtkTextIter *iter,
+	       G_GNUC_UNUSED gpointer user)
 {
 	switch (event->type) {
 	case GDK_BUTTON_PRESS:
diff --git a/src/dialogs/dialog-goto-cell.c b/src/dialogs/dialog-goto-cell.c
index b236883..66b144f 100644
--- a/src/dialogs/dialog-goto-cell.c
+++ b/src/dialogs/dialog-goto-cell.c
@@ -284,20 +284,20 @@ cb_dialog_goto_selection_changed (GtkTreeSelection *the_selection, GotoState *st
 
 
 static void
-cb_sheet_order_changed (Workbook *wb, GotoState *state)
+cb_sheet_order_changed (G_GNUC_UNUSED Workbook *wb, GotoState *state)
 {
 	dialog_goto_load_names (state);
 }
 
 static void
-cb_sheet_deleted (Workbook *wb, GotoState *state)
+cb_sheet_deleted (G_GNUC_UNUSED Workbook *wb, GotoState *state)
 {
 	dialog_goto_load_names (state);
 	cb_dialog_goto_update_sensitivity (NULL, state);
 }
 
 static void
-cb_sheet_added (Workbook *wb, GotoState *state)
+cb_sheet_added (G_GNUC_UNUSED Workbook *wb, GotoState *state)
 {
 	dialog_goto_load_names (state);
 	cb_dialog_goto_update_sensitivity (NULL, state);
diff --git a/src/dialogs/dialog-password.c b/src/dialogs/dialog-password.c
index fbe9c50..73e41f4 100644
--- a/src/dialogs/dialog-password.c
+++ b/src/dialogs/dialog-password.c
@@ -5,7 +5,7 @@
 #include <dead-kittens.h>
 
 static void
-cb_accept_password (GtkWidget *IGNORED, GtkDialog *d)
+cb_accept_password (G_GNUC_UNUSED GtkWidget *IGNORED, GtkDialog *d)
 {
 	gtk_dialog_response (d, GTK_RESPONSE_ACCEPT);
 }



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