[gnumeric] quieten some more warnings



commit e109f1db81feb3b01641f71960efffd4b62b89af
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Nov 30 16:13:27 2011 -0700

    quieten some more warnings
    
    2011-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/stf-parse.c (stf_parse_sheet): remove unused variable

 ChangeLog                 |    4 ++++
 src/stf-parse.c           |    3 ---
 src/style.c               |    5 +++--
 src/undo.c                |    6 +++---
 src/validation.c          |    2 +-
 src/value.c               |    6 +++---
 src/workbook-cmd-format.c |    4 ++--
 src/workbook-control.c    |    4 ++--
 src/workbook.c            |    2 +-
 9 files changed, 19 insertions(+), 17 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1b9fa86..65b213a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* src/stf-parse.c (stf_parse_sheet): remove unused variable
+
+2011-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* dead-kittens.h: add G_VALUE_INIT
 
 2011-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/stf-parse.c b/src/stf-parse.c
index 853d0ec..0bf08b4 100644
--- a/src/stf-parse.c
+++ b/src/stf-parse.c
@@ -1237,7 +1237,6 @@ stf_parse_sheet (StfParseOptions_t *parseoptions,
 {
 	int row;
 	unsigned int lrow;
-	GODateConventions const *date_conv;
 	GStringChunk *lines_chunk;
 	GPtrArray *lines;
 	gboolean result = TRUE;
@@ -1250,8 +1249,6 @@ stf_parse_sheet (StfParseOptions_t *parseoptions,
 	g_return_val_if_fail (data != NULL, FALSE);
 	g_return_val_if_fail (IS_SHEET (sheet), FALSE);
 
-	date_conv = workbook_date_conv (sheet->workbook);
-
 	if (!data_end)
 		data_end = data + strlen (data);
 
diff --git a/src/style.c b/src/style.c
index 3466f72..67e8663 100644
--- a/src/style.c
+++ b/src/style.c
@@ -452,7 +452,8 @@ gnm_font_init (void)
 }
 
 static void
-delete_neg_font (GnmFont *sf, gpointer value, gpointer user_data)
+delete_neg_font (GnmFont *sf, G_GNUC_UNUSED gpointer value, 
+		 G_GNUC_UNUSED gpointer user_data)
 {
 	g_object_unref (sf->context);
 	g_free (sf->font_name);
@@ -460,7 +461,7 @@ delete_neg_font (GnmFont *sf, gpointer value, gpointer user_data)
 }
 
 static void
-list_cached_fonts (GnmFont *font, gpointer value, GSList **lp)
+list_cached_fonts (GnmFont *font, G_GNUC_UNUSED gpointer value, GSList **lp)
 {
 	*lp = g_slist_prepend (*lp, font);
 }
diff --git a/src/undo.c b/src/undo.c
index 3b59efe..2ad3692 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -53,7 +53,7 @@ gnm_undo_colrow_restore_state_group_finalize (GObject *o)
 }
 
 static void
-gnm_undo_colrow_restore_state_group_undo (GOUndo *u, gpointer data)
+gnm_undo_colrow_restore_state_group_undo (GOUndo *u, G_GNUC_UNUSED gpointer data)
 {
 	GNMUndoColrowRestoreStateGroup *ua = (GNMUndoColrowRestoreStateGroup *)u;
 
@@ -112,7 +112,7 @@ gnm_undo_colrow_set_sizes_finalize (GObject *o)
 }
 
 static void
-gnm_undo_colrow_set_sizes_undo (GOUndo *u, gpointer data)
+gnm_undo_colrow_set_sizes_undo (GOUndo *u, G_GNUC_UNUSED gpointer data)
 {
 	GNMUndoColrowSetSizes *ua = (GNMUndoColrowSetSizes *)u;
 	ColRowStateGroup *group;
@@ -218,7 +218,7 @@ cb_filter_set_condition_undo_set_pb (SheetControl *control, char *text)
 }
 
 static void
-gnm_undo_filter_set_condition_undo (GOUndo *u, gpointer data)
+gnm_undo_filter_set_condition_undo (GOUndo *u, G_GNUC_UNUSED gpointer data)
 {
 	GNMUndoFilterSetCondition *ua = (GNMUndoFilterSetCondition *)u;
 	gint count = 0;
diff --git a/src/validation.c b/src/validation.c
index 321bf91..fa60cbb 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -100,7 +100,7 @@ gnm_validation_combo_finalize (GObject *object)
 }
 
 static void
-gnm_validation_combo_init (SheetObject *so)
+gnm_validation_combo_init (G_GNUC_UNUSED SheetObject *so)
 {
 }
 
diff --git a/src/value.c b/src/value.c
index d19d8ad..ca64f2a 100644
--- a/src/value.c
+++ b/src/value.c
@@ -106,7 +106,7 @@ value_new_float (gnm_float f)
 }
 
 GnmValue *
-value_new_error (GnmEvalPos const *ep, char const *mesg)
+value_new_error (G_GNUC_UNUSED GnmEvalPos const *ep, char const *mesg)
 {
 	GnmValueErr *v = CHUNK_ALLOC (GnmValueErr, value_error_pool);
 	*((GnmValueType *)&(v->type)) = VALUE_ERROR;
@@ -116,7 +116,7 @@ value_new_error (GnmEvalPos const *ep, char const *mesg)
 }
 
 GnmValue *
-value_new_error_str (GnmEvalPos const *ep, GOString *mesg)
+value_new_error_str (G_GNUC_UNUSED GnmEvalPos const *ep, GOString *mesg)
 {
 	GnmValueErr *v = CHUNK_ALLOC (GnmValueErr, value_error_pool);
 	*((GnmValueType *)&(v->type)) = VALUE_ERROR;
@@ -197,7 +197,7 @@ value_error_name (GnmStdError err, gboolean translated)
  * Change the position of a ValueError.
  */
 GnmValue *
-value_error_set_pos (GnmValueErr *err, GnmEvalPos const *pos)
+value_error_set_pos (GnmValueErr *err, G_GNUC_UNUSED GnmEvalPos const *pos)
 {
     g_return_val_if_fail (err != NULL, NULL);
     g_return_val_if_fail (VALUE_IS_ERROR (err), NULL);
diff --git a/src/workbook-cmd-format.c b/src/workbook-cmd-format.c
index 528f815..76819d2 100644
--- a/src/workbook-cmd-format.c
+++ b/src/workbook-cmd-format.c
@@ -37,7 +37,7 @@ struct closure_colrow_resize {
 };
 
 static gboolean
-cb_colrow_collect (SheetView *sv, GnmRange const *r, gpointer user_data)
+cb_colrow_collect (G_GNUC_UNUSED SheetView *sv, GnmRange const *r, gpointer user_data)
 {
 	struct closure_colrow_resize *info = user_data;
 	int first, last;
@@ -162,7 +162,7 @@ workbook_cmd_wrap_sort (WorkbookControl *wbc, int type)
 	GnmFunc	   *fd_sort;
 	GnmFunc	   *fd_array;
 	GnmExprTop const *texpr;
-	struct workbook_cmd_wrap_sort_t cl = {NULL, NULL};
+	struct workbook_cmd_wrap_sort_t cl = {NULL, NULL, NULL};
 
 	cl.r = selection_first_range
 		(sv, GO_CMD_CONTEXT (wbc), _("Wrap SORT"));;
diff --git a/src/workbook-control.c b/src/workbook-control.c
index acc848c..73e2269 100644
--- a/src/workbook-control.c
+++ b/src/workbook-control.c
@@ -382,7 +382,7 @@ wb_control_navigate_to_cell (WorkbookControl *wbc, wb_control_navigator_t to)
 
 
 static void
-cb_wbc_clipboard_modified (GnmApp *app, WorkbookControl *wbc)
+cb_wbc_clipboard_modified (G_GNUC_UNUSED GnmApp *app, WorkbookControl *wbc)
 {
 	wb_control_menu_state_update (wbc, MS_PASTE_SPECIAL);
 }
@@ -474,7 +474,7 @@ workbook_control_init (GObject *obj)
 }
 
 static void
-wbc_cmd_context_init (GOCmdContextClass *iface)
+wbc_cmd_context_init (G_GNUC_UNUSED GOCmdContextClass *iface)
 {
 #if 0
 	iface->get_password	    = ;
diff --git a/src/workbook.c b/src/workbook.c
index 9535dc6..f68a08f 100644
--- a/src/workbook.c
+++ b/src/workbook.c
@@ -1117,7 +1117,7 @@ gboolean
 workbook_sheet_rename (Workbook *wb,
 		       GSList *sheet_indices,
 		       GSList *new_names,
-		       GOCmdContext *cc)
+		       G_GNUC_UNUSED GOCmdContext *cc)
 {
 	GSList *sheet_index = sheet_indices;
 	GSList *new_name = new_names;



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