[libgda/LIBGDA_4.2] Fix more unused-parameter compiler warnings.



commit 68b2fea1525796e75a9d22564049ea5b96730bbe
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jul 5 10:01:54 2011 +0200

    Fix more unused-parameter compiler warnings.
    
    Mostly just by adding G_GNUC_UNUSED.

 control-center/main.c                              |    2 +-
 libgda-report/engine/test-rt-parser.c              |    2 +-
 libgda-ui/data-entries/gdaui-entry-combo.c         |    2 +-
 libgda-ui/data-entries/plugins/common-pict.c       |    2 +-
 libgda-ui/data-entries/plugins/gdaui-entry-rt.c    |    2 +-
 providers/mysql/gda-mysql-blob-op.c                |    4 +-
 providers/mysql/gda-mysql-ddl.c                    |   20 ++++----
 providers/mysql/gda-mysql-handler-boolean.c        |    6 +-
 providers/mysql/gda-mysql-provider.c               |   54 ++++++++++----------
 providers/mysql/gda-mysql-pstmt.c                  |    2 +-
 providers/mysql/gda-mysql-recordset.c              |   22 ++++----
 providers/mysql/libmain.c                          |    4 +-
 samples/Virtual/virtual-test.c                     |    2 +-
 testing/virtual-test-2.c                           |    2 +-
 testing/virtual-test.c                             |    2 +-
 tools/browser/browser-perspective.c                |    6 +-
 tools/browser/canvas/browser-canvas-db-relations.c |    2 +-
 tools/browser/canvas/browser-canvas-fkey.c         |    2 +-
 tools/browser/common/ui-formgrid.c                 |    2 +-
 tools/browser/ldap-browser/classes-view.c          |    4 +-
 tools/browser/ldap-browser/filter-editor.c         |    2 +-
 tools/browser/ldap-browser/hierarchy-view.c        |    4 +-
 tools/browser/ldap-browser/ldap-classes-page.c     |    2 +-
 tools/browser/ldap-browser/ldap-entries-page.c     |    4 +-
 .../browser/ldap-browser/ldap-favorite-selector.c  |    2 +-
 tools/browser/query-exec/query-console-page.c      |    2 +-
 26 files changed, 80 insertions(+), 80 deletions(-)
---
diff --git a/control-center/main.c b/control-center/main.c
index 1326060..9aa70d6 100644
--- a/control-center/main.c
+++ b/control-center/main.c
@@ -369,7 +369,7 @@ main (int argc, char *argv[])
 }
 
 static void
-dsn_selection_changed_cb (GdauiRawGrid *dbrawgrid, gboolean row_selected, G_GNUC_UNUSED gpointer data)
+dsn_selection_changed_cb (GdauiRawGrid *dbrawgrid, G_GNUC_UNUSED gboolean row_selected, G_GNUC_UNUSED gpointer data)
 {
 	GtkAction *action;
 	GArray *selection;
diff --git a/libgda-report/engine/test-rt-parser.c b/libgda-report/engine/test-rt-parser.c
index 135c506..a10973d 100644
--- a/libgda-report/engine/test-rt-parser.c
+++ b/libgda-report/engine/test-rt-parser.c
@@ -75,7 +75,7 @@ TestCase test_cases[] = {
 };
 
 int 
-main (int argc, char **argv)
+main ()
 {
 	guint i;
 
diff --git a/libgda-ui/data-entries/gdaui-entry-combo.c b/libgda-ui/data-entries/gdaui-entry-combo.c
index 1e8f068..a00c4e8 100644
--- a/libgda-ui/data-entries/gdaui-entry-combo.c
+++ b/libgda-ui/data-entries/gdaui-entry-combo.c
@@ -719,7 +719,7 @@ gdaui_entry_combo_set_default_values (GdauiEntryCombo *combo, G_GNUC_UNUSED GSLi
  */
 
 static void
-gdaui_entry_combo_set_value (GdauiDataEntry *iface, const GValue *value)
+gdaui_entry_combo_set_value (GdauiDataEntry *iface, G_GNUC_UNUSED const GValue *value)
 {
 	GdauiEntryCombo *combo;
 
diff --git a/libgda-ui/data-entries/plugins/common-pict.c b/libgda-ui/data-entries/plugins/common-pict.c
index 163afd1..732f629 100644
--- a/libgda-ui/data-entries/plugins/common-pict.c
+++ b/libgda-ui/data-entries/plugins/common-pict.c
@@ -556,7 +556,7 @@ file_save_cb (GtkWidget *button, PictMenuData *menudata)
 }
 
 static void
-copy_cb (GtkWidget *button, PictMenuData *menudata)
+copy_cb (G_GNUC_UNUSED GtkWidget *button, PictMenuData *menudata)
 {
 	GtkClipboard *cp;
 	cp = gtk_clipboard_get (gdk_atom_intern_static_string ("CLIPBOARD"));
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-rt.c b/libgda-ui/data-entries/plugins/gdaui-entry-rt.c
index 3a4e152..6374f53 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-rt.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-rt.c
@@ -109,7 +109,7 @@ gdaui_entry_rt_init (GdauiEntryRt * gdaui_entry_rt)
  * Returns: the new widget
  */
 GtkWidget *
-gdaui_entry_rt_new (GdaDataHandler *dh, GType type, const gchar *options)
+gdaui_entry_rt_new (GdaDataHandler *dh, GType type, G_GNUC_UNUSED const gchar *options)
 {
 	GObject *obj;
 
diff --git a/providers/mysql/gda-mysql-blob-op.c b/providers/mysql/gda-mysql-blob-op.c
index 0f333a7..df401fc 100644
--- a/providers/mysql/gda-mysql-blob-op.c
+++ b/providers/mysql/gda-mysql-blob-op.c
@@ -71,7 +71,7 @@ gda_mysql_blob_op_get_type (void)
 
 static void
 gda_mysql_blob_op_init (GdaMysqlBlobOp       *op,
-			GdaMysqlBlobOpClass  *klass)
+			G_GNUC_UNUSED GdaMysqlBlobOpClass  *klass)
 {
 	g_return_if_fail (GDA_IS_MYSQL_BLOB_OP (op));
 
@@ -179,7 +179,7 @@ gda_mysql_blob_op_read (GdaBlobOp  *op,
 static glong
 gda_mysql_blob_op_write (GdaBlobOp  *op,
 			 GdaBlob    *blob,
-			 glong       offset)
+			 G_GNUC_UNUSED glong       offset)
 {
 	GdaMysqlBlobOp *pgop;
 	GdaBinary *bin;
diff --git a/providers/mysql/gda-mysql-ddl.c b/providers/mysql/gda-mysql-ddl.c
index 344e4f5..71cb1a4 100644
--- a/providers/mysql/gda-mysql-ddl.c
+++ b/providers/mysql/gda-mysql-ddl.c
@@ -26,7 +26,7 @@
 
 gchar *
 gda_mysql_render_CREATE_DB (GdaServerProvider *provider, GdaConnection *cnc, 
-			    GdaServerOperation *op, GError **error)
+			    GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
@@ -70,7 +70,7 @@ gda_mysql_render_CREATE_DB (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_DROP_DB (GdaServerProvider *provider, GdaConnection *cnc, 
-			  GdaServerOperation *op, GError **error)
+			  GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
@@ -471,7 +471,7 @@ gda_mysql_render_CREATE_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_DROP_TABLE (GdaServerProvider *provider, GdaConnection *cnc, 
-			     GdaServerOperation *op, GError **error)
+			     GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
@@ -509,7 +509,7 @@ gda_mysql_render_DROP_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_RENAME_TABLE (GdaServerProvider *provider, GdaConnection *cnc, 
-			       GdaServerOperation *op, GError **error)
+			       GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	gchar *sql = NULL;
@@ -535,7 +535,7 @@ gda_mysql_render_RENAME_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_COMMENT_TABLE (GdaServerProvider *provider, GdaConnection *cnc, 
-				GdaServerOperation *op, GError **error)
+				GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
@@ -563,7 +563,7 @@ gda_mysql_render_COMMENT_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_ADD_COLUMN (GdaServerProvider *provider, GdaConnection *cnc, 
-			     GdaServerOperation *op, GError **error)
+			     GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
@@ -671,7 +671,7 @@ gda_mysql_render_ADD_COLUMN (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_DROP_COLUMN (GdaServerProvider *provider, GdaConnection *cnc, 
-			      GdaServerOperation *op, GError **error)
+			      GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	gchar *sql = NULL;
@@ -775,7 +775,7 @@ gda_mysql_render_COMMENT_COLUMN (GdaServerProvider *provider, GdaConnection *cnc
 
 gchar *
 gda_mysql_render_CREATE_INDEX (GdaServerProvider *provider, GdaConnection *cnc, 
-			       GdaServerOperation *op, GError **error)
+			       GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
@@ -848,7 +848,7 @@ gda_mysql_render_CREATE_INDEX (GdaServerProvider *provider, GdaConnection *cnc,
 
 gchar *
 gda_mysql_render_DROP_INDEX (GdaServerProvider *provider, GdaConnection *cnc, 
-			     GdaServerOperation *op, GError **error)
+			     GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	gchar *sql = NULL;
@@ -944,7 +944,7 @@ gda_mysql_render_CREATE_VIEW (GdaServerProvider *provider, GdaConnection *cnc,
 	
 gchar *
 gda_mysql_render_DROP_VIEW (GdaServerProvider *provider, GdaConnection *cnc, 
-			    GdaServerOperation *op, GError **error)
+			    GdaServerOperation *op, G_GNUC_UNUSED GError **error)
 {
 	GString *string;
 	const GValue *value;
diff --git a/providers/mysql/gda-mysql-handler-boolean.c b/providers/mysql/gda-mysql-handler-boolean.c
index 788274a..23c42d6 100644
--- a/providers/mysql/gda-mysql-handler-boolean.c
+++ b/providers/mysql/gda-mysql-handler-boolean.c
@@ -192,7 +192,7 @@ gda_mysql_handler_boolean_get_str_from_value (GdaDataHandler *iface, const GValu
 }
 
 static GValue *
-gda_mysql_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, GType type)
+gda_mysql_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, G_GNUC_UNUSED GType type)
 {
 	GdaMysqlHandlerBoolean *hdl;
 	GValue *value;
@@ -210,7 +210,7 @@ gda_mysql_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar
 }
 
 static GValue *
-gda_mysql_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str, GType type)
+gda_mysql_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str, G_GNUC_UNUSED GType type)
 {
 	GdaMysqlHandlerBoolean *hdl;
 	GValue *value = NULL;
@@ -230,7 +230,7 @@ gda_mysql_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar
 
 
 static GValue *
-gda_mysql_handler_boolean_get_sane_init_value (GdaDataHandler *iface, GType type)
+gda_mysql_handler_boolean_get_sane_init_value (GdaDataHandler *iface, G_GNUC_UNUSED GType type)
 {
 	GdaMysqlHandlerBoolean *hdl;
 	GValue *value;
diff --git a/providers/mysql/gda-mysql-provider.c b/providers/mysql/gda-mysql-provider.c
index afaebac..a61a020 100644
--- a/providers/mysql/gda-mysql-provider.c
+++ b/providers/mysql/gda-mysql-provider.c
@@ -108,7 +108,7 @@ static gboolean            gda_mysql_provider_supports_operation (GdaServerProvi
 static GdaServerOperation *gda_mysql_provider_create_operation (GdaServerProvider       *provider,
 								GdaConnection           *cnc,
 								GdaServerOperationType   type,
-								GdaSet                  *options,
+								G_GNUC_UNUSED GdaSet                  *options,
 								GError                **error);
 static gchar              *gda_mysql_provider_render_operation (GdaServerProvider   *provider,
 								GdaConnection       *cnc,
@@ -373,7 +373,7 @@ gda_mysql_provider_class_init (GdaMysqlProviderClass  *klass)
 
 static void
 gda_mysql_provider_init (GdaMysqlProvider       *mysql_prv,
-			 GdaMysqlProviderClass  *klass)
+			 G_GNUC_UNUSED GdaMysqlProviderClass  *klass)
 {
 	InternalStatementItem i;
 	GdaSqlParser *parser;
@@ -425,7 +425,7 @@ static void
 gda_mysql_provider_set_property (GObject *object,
 				 guint param_id,
 				 const GValue *value,
-				 GParamSpec *pspec)
+				 G_GNUC_UNUSED GParamSpec *pspec)
 {
 	GdaMysqlProvider *mysql_prv;
 	mysql_prv = GDA_MYSQL_PROVIDER (object);
@@ -441,7 +441,7 @@ static void
 gda_mysql_provider_get_property (GObject *object,
 				 guint param_id,
 				 GValue *value,
-				 GParamSpec *pspec)
+				 G_GNUC_UNUSED GParamSpec *pspec)
 {
 	GdaMysqlProvider *mysql_prv;
 	mysql_prv = GDA_MYSQL_PROVIDER (object);
@@ -456,7 +456,7 @@ gda_mysql_provider_get_property (GObject *object,
  * Get provider name request
  */
 static const gchar *
-gda_mysql_provider_get_name (GdaServerProvider *provider)
+gda_mysql_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
 {
 	return MYSQL_PROVIDER_NAME;
 }
@@ -465,7 +465,7 @@ gda_mysql_provider_get_name (GdaServerProvider *provider)
  * Get provider's version, no need to change this
  */
 static const gchar *
-gda_mysql_provider_get_version (GdaServerProvider  *provider)
+gda_mysql_provider_get_version (G_GNUC_UNUSED GdaServerProvider  *provider)
 {
 	return PACKAGE_VERSION;
 }
@@ -579,7 +579,7 @@ gda_mysql_provider_open_connection (GdaServerProvider               *provider,
 				    GdaConnection                   *cnc,
 				    GdaQuarkList                    *params,
 				    GdaQuarkList                    *auth,
-				    guint                           *task_id,
+				    G_GNUC_UNUSED guint                           *task_id,
 				    GdaServerProviderAsyncCallback   async_cb,
 				    gpointer                         cb_data)
 {
@@ -798,7 +798,7 @@ static gboolean
 gda_mysql_provider_supports_operation (GdaServerProvider       *provider,
 				       GdaConnection           *cnc,
 				       GdaServerOperationType   type,
-				       GdaSet                  *options)
+				       G_GNUC_UNUSED GdaSet                  *options)
 {
 	if (cnc) {
 		g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -835,7 +835,7 @@ static GdaServerOperation *
 gda_mysql_provider_create_operation (GdaServerProvider       *provider,
 				     GdaConnection           *cnc,
 				     GdaServerOperationType   type,
-				     GdaSet                  *options,
+				     G_GNUC_UNUSED GdaSet                  *options,
 				     GError                 **error)
 {
         gchar *file;
@@ -963,7 +963,7 @@ static gboolean
 gda_mysql_provider_perform_operation (GdaServerProvider               *provider,
 				      GdaConnection                   *cnc,
 				      GdaServerOperation              *op,
-				      guint                           *task_id, 
+				      G_GNUC_UNUSED guint                           *task_id, 
 				      GdaServerProviderAsyncCallback   async_cb,
 				      gpointer                         cb_data,
 				      GError                         **error)
@@ -1056,7 +1056,7 @@ gda_mysql_provider_perform_operation (GdaServerProvider               *provider,
 static gboolean
 gda_mysql_provider_begin_transaction (GdaServerProvider        *provider,
 				      GdaConnection            *cnc,
-				      const gchar              *name,
+				      G_GNUC_UNUSED const gchar              *name,
 				      GdaTransactionIsolation   level,
 				      GError                  **error)
 {
@@ -1112,7 +1112,7 @@ gda_mysql_provider_begin_transaction (GdaServerProvider        *provider,
 static gboolean
 gda_mysql_provider_commit_transaction (GdaServerProvider  *provider,
 				       GdaConnection      *cnc,
-				       const gchar        *name,
+				       G_GNUC_UNUSED const gchar        *name,
 				       GError            **error)
 {
 	MysqlConnectionData *cdata;
@@ -1142,7 +1142,7 @@ gda_mysql_provider_commit_transaction (GdaServerProvider  *provider,
 static gboolean
 gda_mysql_provider_rollback_transaction (GdaServerProvider  *provider,
 					 GdaConnection      *cnc,
-					 const gchar        *name,
+					 G_GNUC_UNUSED const gchar        *name,
 					 GError            **error)
 {
 	MysqlConnectionData *cdata;
@@ -1172,8 +1172,8 @@ gda_mysql_provider_rollback_transaction (GdaServerProvider  *provider,
 static gboolean
 gda_mysql_provider_add_savepoint (GdaServerProvider  *provider,
 				  GdaConnection      *cnc,
-				  const gchar        *name,
-				  GError            **error)
+				  G_GNUC_UNUSED const gchar        *name,
+				  G_GNUC_UNUSED GError            **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -1195,8 +1195,8 @@ gda_mysql_provider_add_savepoint (GdaServerProvider  *provider,
 static gboolean
 gda_mysql_provider_rollback_savepoint (GdaServerProvider  *provider,
 				       GdaConnection      *cnc,
-				       const gchar        *name,
-				       GError            **error)
+				       G_GNUC_UNUSED const gchar        *name,
+				       G_GNUC_UNUSED GError            **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -1218,8 +1218,8 @@ gda_mysql_provider_rollback_savepoint (GdaServerProvider  *provider,
 static gboolean
 gda_mysql_provider_delete_savepoint (GdaServerProvider  *provider,
 				     GdaConnection      *cnc,
-				     const gchar        *name,
-				     GError            **error)
+				     G_GNUC_UNUSED const gchar        *name,
+				     G_GNUC_UNUSED GError            **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -1396,8 +1396,8 @@ gda_mysql_provider_get_default_dbms_type (GdaServerProvider  *provider,
  * by the database. See the PostgreSQL provider implementation for an example.
  */
 static GdaSqlParser *
-gda_mysql_provider_create_parser (GdaServerProvider  *provider,
-				  GdaConnection      *cnc)
+gda_mysql_provider_create_parser (G_GNUC_UNUSED GdaServerProvider  *provider,
+				  G_GNUC_UNUSED GdaConnection      *cnc)
 {
 	return (GdaSqlParser *) g_object_new (GDA_TYPE_MYSQL_PARSER,
 					      "tokenizer-flavour", GDA_SQL_PARSER_FLAVOUR_MYSQL,
@@ -2679,7 +2679,7 @@ static gboolean
 gda_mysql_provider_xa_start (GdaServerProvider         *provider,
 			     GdaConnection             *cnc, 
 			     const GdaXaTransactionId  *xid,
-			     GError                   **error)
+			     G_GNUC_UNUSED GError                   **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -2703,7 +2703,7 @@ static gboolean
 gda_mysql_provider_xa_end (GdaServerProvider         *provider,
 			   GdaConnection             *cnc, 
 			   const GdaXaTransactionId  *xid,
-			   GError                   **error)
+			   G_GNUC_UNUSED GError                   **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -2726,7 +2726,7 @@ static gboolean
 gda_mysql_provider_xa_prepare (GdaServerProvider         *provider,
 			       GdaConnection             *cnc, 
 			       const GdaXaTransactionId  *xid,
-			       GError                   **error)
+			       G_GNUC_UNUSED GError                   **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -2750,7 +2750,7 @@ static gboolean
 gda_mysql_provider_xa_commit (GdaServerProvider         *provider,
 			      GdaConnection             *cnc, 
 			      const GdaXaTransactionId  *xid,
-			      GError                   **error)
+			      G_GNUC_UNUSED GError                   **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -2773,7 +2773,7 @@ static gboolean
 gda_mysql_provider_xa_rollback (GdaServerProvider         *provider,
 				GdaConnection             *cnc, 
 				const GdaXaTransactionId  *xid,
-				GError                   **error)
+				G_GNUC_UNUSED GError                   **error)
 {
 	MysqlConnectionData *cdata;
 
@@ -2797,7 +2797,7 @@ gda_mysql_provider_xa_rollback (GdaServerProvider         *provider,
 static GList *
 gda_mysql_provider_xa_recover (GdaServerProvider  *provider,
 			       GdaConnection      *cnc,
-			       GError            **error)
+			       G_GNUC_UNUSED GError            **error)
 {
 	MysqlConnectionData *cdata;
 
diff --git a/providers/mysql/gda-mysql-pstmt.c b/providers/mysql/gda-mysql-pstmt.c
index 5708f68..a2d41a7 100644
--- a/providers/mysql/gda-mysql-pstmt.c
+++ b/providers/mysql/gda-mysql-pstmt.c
@@ -76,7 +76,7 @@ gda_mysql_pstmt_class_init (GdaMysqlPStmtClass  *klass)
 
 static void
 gda_mysql_pstmt_init (GdaMysqlPStmt       *pstmt,
-		      GdaMysqlPStmtClass  *klass)
+		      G_GNUC_UNUSED GdaMysqlPStmtClass  *klass)
 {
 	g_return_if_fail (GDA_IS_PSTMT (pstmt));
 	
diff --git a/providers/mysql/gda-mysql-recordset.c b/providers/mysql/gda-mysql-recordset.c
index 013ac95..3ffb940 100644
--- a/providers/mysql/gda-mysql-recordset.c
+++ b/providers/mysql/gda-mysql-recordset.c
@@ -105,7 +105,7 @@ static GObjectClass *parent_class = NULL;
  */
 static void
 gda_mysql_recordset_init (GdaMysqlRecordset       *recset,
-			  GdaMysqlRecordsetClass  *klass)
+			  G_GNUC_UNUSED GdaMysqlRecordsetClass  *klass)
 {
 	g_return_if_fail (GDA_IS_MYSQL_RECORDSET (recset));
 	recset->priv = g_new0 (GdaMysqlRecordsetPrivate, 1);
@@ -311,7 +311,7 @@ gda_mysql_recordset_get_type (void)
 }
 
 static GType
-_gda_mysql_type_to_gda (MysqlConnectionData *cdata,
+_gda_mysql_type_to_gda (G_GNUC_UNUSED MysqlConnectionData *cdata,
 			enum enum_field_types  mysql_type, unsigned int charsetnr)
 {
 	GType gtype = 0;
@@ -713,7 +713,7 @@ gda_mysql_recordset_fetch_nb_rows (GdaDataSelect *model)
 }
 
 static GdaRow *
-new_row_from_mysql_stmt (GdaMysqlRecordset *imodel, gint rownum, GError **error)
+new_row_from_mysql_stmt (GdaMysqlRecordset *imodel, G_GNUC_UNUSED gint rownum, GError **error)
 {
 	//g_print ("%s(): NCOLS=%d  ROWNUM=%d\n", __func__, ((GdaDataSelect *) imodel)->prep_stmt->ncols, rownum);
 	int res;
@@ -1091,10 +1091,10 @@ gda_mysql_recordset_fetch_next (GdaDataSelect  *model,
  * can use gda_data_select_take_row().
  */
 static gboolean 
-gda_mysql_recordset_fetch_prev (GdaDataSelect  *model,
-				GdaRow        **row,
-				gint            rownum,
-				GError        **error)
+gda_mysql_recordset_fetch_prev (G_GNUC_UNUSED GdaDataSelect  *model,
+				G_GNUC_UNUSED GdaRow        **row,
+				G_GNUC_UNUSED gint            rownum,
+				G_GNUC_UNUSED GError        **error)
 {
 	/*GdaMysqlRecordset *imodel = (GdaMysqlRecordset*) model;*/
 
@@ -1116,10 +1116,10 @@ gda_mysql_recordset_fetch_prev (GdaDataSelect  *model,
  * can use gda_data_select_take_row().
  */
 static gboolean 
-gda_mysql_recordset_fetch_at (GdaDataSelect  *model,
-			      GdaRow        **row,
-			      gint            rownum,
-			      GError        **error)
+gda_mysql_recordset_fetch_at (G_GNUC_UNUSED GdaDataSelect  *model,
+			      G_GNUC_UNUSED GdaRow        **row,
+			      G_GNUC_UNUSED gint            rownum,
+			      G_GNUC_UNUSED GError        **error)
 {
 	/*GdaMysqlRecordset *imodel = (GdaMysqlRecordset*) model;*/
 	
diff --git a/providers/mysql/libmain.c b/providers/mysql/libmain.c
index 8ceb652..5661af7 100644
--- a/providers/mysql/libmain.c
+++ b/providers/mysql/libmain.c
@@ -39,14 +39,14 @@ GdaServerProvider *plugin_create_provider (void);
  * Functions executed when calling g_module_open() and g_module_close()
  */
 const gchar *
-g_module_check_init (GModule *module)
+g_module_check_init (G_GNUC_UNUSED GModule *module)
 {
         /*g_module_make_resident (module);*/
         return NULL;
 }
 
 void
-g_module_unload (GModule *module)
+g_module_unload (G_GNUC_UNUSED GModule *module)
 {
         g_free (module_path);
         module_path = NULL;
diff --git a/samples/Virtual/virtual-test.c b/samples/Virtual/virtual-test.c
index 2614414..9d4b6be 100644
--- a/samples/Virtual/virtual-test.c
+++ b/samples/Virtual/virtual-test.c
@@ -24,7 +24,7 @@
 static gboolean run_sql_non_select (GdaConnection *cnc, const gchar *sql);
 
 int 
-main (int argc, char **argv)
+main ()
 {
 	GError *error = NULL;	
 	GdaConnection *cnc;
diff --git a/testing/virtual-test-2.c b/testing/virtual-test-2.c
index fea44a6..b89a055 100644
--- a/testing/virtual-test-2.c
+++ b/testing/virtual-test-2.c
@@ -32,7 +32,7 @@ static void          run_sql_non_select (GdaConnection *cnc, const gchar *sql);
 static GdaDataModel *run_sql_select (GdaConnection *cnc, const gchar *sql);
 static gint          run_and_show_sql_select (GdaConnection *cnc, const gchar *sql, const gchar *title);
 int
-main (int argc, char *argv [])
+main ()
 {
 	GError *error = NULL;
 	GdaConnection *hub, *cnc;
diff --git a/testing/virtual-test.c b/testing/virtual-test.c
index 445c578..858cc30 100644
--- a/testing/virtual-test.c
+++ b/testing/virtual-test.c
@@ -26,7 +26,7 @@ static gboolean test_sql_non_select (GdaConnection *cnc, const gchar *sql);
 GdaSqlParser *parser;
 
 int 
-main (int argc, char **argv)
+main ()
 {
 	GError *error = NULL;	
 	GdaConnection *cnc;
diff --git a/tools/browser/browser-perspective.c b/tools/browser/browser-perspective.c
index aa52390..713e711 100644
--- a/tools/browser/browser-perspective.c
+++ b/tools/browser/browser-perspective.c
@@ -222,7 +222,7 @@ browser_perspective_declare_notebook (BrowserPerspective *perspective, GtkNotebo
 }
 
 static void
-nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num, BrowserPerspective *perspective)
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num, BrowserPerspective *perspective)
 {
 	GtkWidget *page_contents;
 	GtkActionGroup *actions = NULL;
@@ -243,7 +243,7 @@ nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num, BrowserPersp
 }
 
 static void
-nb_page_added_or_removed_cb (GtkNotebook *nb, GtkWidget *child, guint page_num,
+nb_page_added_or_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *child, G_GNUC_UNUSED guint page_num,
 			     BrowserPerspective *perspective)
 {
 	adapt_notebook_for_fullscreen (perspective);
@@ -259,7 +259,7 @@ nb_page_added_or_removed_cb (GtkNotebook *nb, GtkWidget *child, guint page_num,
 }
 
 static void
-fullscreen_changed_cb (G_GNUC_UNUSED BrowserWindow *bwin, gboolean fullscreen,
+fullscreen_changed_cb (G_GNUC_UNUSED BrowserWindow *bwin, G_GNUC_UNUSED gboolean fullscreen,
 		       BrowserPerspective *perspective)
 {
 	adapt_notebook_for_fullscreen (perspective);
diff --git a/tools/browser/canvas/browser-canvas-db-relations.c b/tools/browser/canvas/browser-canvas-db-relations.c
index 1058ebc..7b0210f 100644
--- a/tools/browser/canvas/browser-canvas-db-relations.c
+++ b/tools/browser/canvas/browser-canvas-db-relations.c
@@ -402,7 +402,7 @@ canvas_entity_popup_func (BrowserCanvasTable *ce)
 }
 
 static void
-popup_func_declare_fk_cb (GtkMenuItem *mitem, BrowserCanvasTable *ce)
+popup_func_declare_fk_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvasTable *ce)
 {
 	GtkWidget *dlg, *parent;
 	GdaMetaStruct *mstruct;
diff --git a/tools/browser/canvas/browser-canvas-fkey.c b/tools/browser/canvas/browser-canvas-fkey.c
index 8a22209..7eb94c2 100644
--- a/tools/browser/canvas/browser-canvas-fkey.c
+++ b/tools/browser/canvas/browser-canvas-fkey.c
@@ -461,7 +461,7 @@ single_item_leave_notify_event_cb (G_GNUC_UNUSED GooCanvasItem *ci, G_GNUC_UNUSE
 }
 
 static void
-delete_declared_fk_cb (GtkMenuItem *mitem, BrowserCanvasFkey *cc)
+delete_declared_fk_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvasFkey *cc)
 {
 	GError *error = NULL;
 	GtkWidget *parent;
diff --git a/tools/browser/common/ui-formgrid.c b/tools/browser/common/ui-formgrid.c
index 0155d8d..17134f5 100644
--- a/tools/browser/common/ui-formgrid.c
+++ b/tools/browser/common/ui-formgrid.c
@@ -681,7 +681,7 @@ static void ldap_view_dn_mitem_cb (GtkMenuItem *menuitem, UiFormGrid *formgrid)
 #endif
 
 static void
-proxy_changed_cb (GdauiDataProxy *dp, GdaDataProxy *proxy, UiFormGrid *formgrid)
+proxy_changed_cb (G_GNUC_UNUSED GdauiDataProxy *dp, G_GNUC_UNUSED GdaDataProxy *proxy, UiFormGrid *formgrid)
 {
 	g_signal_emit (formgrid, ui_formgrid_signals [DATA_SET_CHANGED], 0);
 }
diff --git a/tools/browser/ldap-browser/classes-view.c b/tools/browser/ldap-browser/classes-view.c
index dcf3dcf..9e602ea 100644
--- a/tools/browser/ldap-browser/classes-view.c
+++ b/tools/browser/ldap-browser/classes-view.c
@@ -214,8 +214,8 @@ enum {
 };
 
 static void
-text_cell_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
-		     GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+text_cell_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+		     GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED gpointer data)
 {
 	gchar *tmp;
 	gtk_tree_model_get (tree_model, iter,
diff --git a/tools/browser/ldap-browser/filter-editor.c b/tools/browser/ldap-browser/filter-editor.c
index ee2eb57..3455f29 100644
--- a/tools/browser/ldap-browser/filter-editor.c
+++ b/tools/browser/ldap-browser/filter-editor.c
@@ -117,7 +117,7 @@ filter_editor_get_type (void)
 }
 
 static void
-activated_cb (GtkEntry *entry, FilterEditor *feditor)
+activated_cb (G_GNUC_UNUSED GtkEntry *entry, FilterEditor *feditor)
 {
 	g_signal_emit (feditor, filter_editor_signals [ACTIVATE], 0);
 }
diff --git a/tools/browser/ldap-browser/hierarchy-view.c b/tools/browser/ldap-browser/hierarchy-view.c
index f443155..088a1e9 100644
--- a/tools/browser/ldap-browser/hierarchy-view.c
+++ b/tools/browser/ldap-browser/hierarchy-view.c
@@ -232,8 +232,8 @@ enum
 };
 
 static void
-text_cell_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
-		     GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+text_cell_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+		     GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED gpointer data)
 {
 	gchar *rdn, *cn;
 	gtk_tree_model_get (tree_model, iter,
diff --git a/tools/browser/ldap-browser/ldap-classes-page.c b/tools/browser/ldap-browser/ldap-classes-page.c
index b640eda..4643f70 100644
--- a/tools/browser/ldap-browser/ldap-classes-page.c
+++ b/tools/browser/ldap-browser/ldap-classes-page.c
@@ -333,7 +333,7 @@ selection_changed_cb (GtkTreeSelection *sel, LdapClassesPage *ebrowser)
 }
 
 static void
-open_classname_requested_cb (ClassProperties *eprop, const gchar *classname, LdapClassesPage *ebrowser)
+open_classname_requested_cb (G_GNUC_UNUSED ClassProperties *eprop, const gchar *classname, LdapClassesPage *ebrowser)
 {
 	ldap_classes_page_set_current_class (ebrowser, classname);
 }
diff --git a/tools/browser/ldap-browser/ldap-entries-page.c b/tools/browser/ldap-browser/ldap-entries-page.c
index 356bdea..bb2ea0e 100644
--- a/tools/browser/ldap-browser/ldap-entries-page.c
+++ b/tools/browser/ldap-browser/ldap-entries-page.c
@@ -331,13 +331,13 @@ selection_changed_cb (GtkTreeSelection *sel, LdapEntriesPage *ebrowser)
 }
 
 static void
-open_dn_requested_cb (EntryProperties *eprop, const gchar *dn, LdapEntriesPage *ebrowser)
+open_dn_requested_cb (G_GNUC_UNUSED EntryProperties *eprop, const gchar *dn, LdapEntriesPage *ebrowser)
 {
 	ldap_entries_page_set_current_dn (ebrowser, dn);
 }
 
 static void
-open_class_requested_cb (EntryProperties *eprop, const gchar *classname, LdapEntriesPage *ebrowser)
+open_class_requested_cb (G_GNUC_UNUSED EntryProperties *eprop, const gchar *classname, LdapEntriesPage *ebrowser)
 {
 	BrowserPerspective *bpers;
 	bpers = browser_page_get_perspective (BROWSER_PAGE (ebrowser));
diff --git a/tools/browser/ldap-browser/ldap-favorite-selector.c b/tools/browser/ldap-browser/ldap-favorite-selector.c
index a797c41..2877100 100644
--- a/tools/browser/ldap-browser/ldap-favorite-selector.c
+++ b/tools/browser/ldap-browser/ldap-favorite-selector.c
@@ -193,7 +193,7 @@ favorite_delete_selected (LdapFavoriteSelector *fsel)
 }
 
 static gboolean
-key_press_event_cb (GtkTreeView *treeview, GdkEventKey *event, LdapFavoriteSelector *fsel)
+key_press_event_cb (G_GNUC_UNUSED GtkTreeView *treeview, GdkEventKey *event, LdapFavoriteSelector *fsel)
 {
 	if (event->keyval == GDK_Delete) {
 		favorite_delete_selected (fsel);
diff --git a/tools/browser/query-exec/query-console-page.c b/tools/browser/query-exec/query-console-page.c
index 0cd8156..b0422a1 100644
--- a/tools/browser/query-exec/query-console-page.c
+++ b/tools/browser/query-exec/query-console-page.c
@@ -758,7 +758,7 @@ sql_favorite_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsolePage *tcon
 }
 
 static void
-sql_favorite_new_mitem_cb (GtkMenuItem *mitem, QueryConsolePage *tconsole)
+sql_favorite_new_mitem_cb (G_GNUC_UNUSED GtkMenuItem *mitem, QueryConsolePage *tconsole)
 {
 	BrowserFavorites *bfav;
 	BrowserFavoritesAttributes fav;



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