[libgda] Consistently handle invalid GObject properties



commit 75c9d714b77683b62cd20476adb9db3a83680ef4
Author: David King <davidk openismus com>
Date:   Wed Oct 13 15:51:25 2010 +0200

    Consistently handle invalid GObject properties
    
    Use G_OBJECT_WARN_INVALID_PROPERTY_ID macro to emit a g_warning when an
    invalid property is used in GObject property setters and getters.

 .../DocBook/gda-report-docbook-document.c          |    6 ++++--
 libgda-report/RML/gda-report-rml-document.c        |    6 ++++--
 libgda-report/engine/gda-report-engine.c           |    6 ++++--
 libgda-report/gda-report-document.c                |    6 ++++--
 libgda-ui/data-entries/gdaui-entry-combo.c         |   10 ++++++++--
 libgda-ui/data-entries/gdaui-entry-wrapper.c       |   10 ++++++++--
 libgda-ui/gdaui-data-store.c                       |   10 ++++++++--
 libgda-ui/gdaui-tree-store.c                       |   10 ++++++++--
 libgda-ui/internal/gdaui-dsn-selector.c            |   10 ++++++++--
 libgda-ui/internal/gdaui-provider-auth-editor.c    |   14 ++++++++++----
 libgda-ui/internal/gdaui-provider-spec-editor.c    |   10 ++++++++--
 libgda/gda-column.c                                |   10 ++++++----
 libgda/gda-config.c                                |   10 ++++++++--
 libgda/gda-connection.c                            |    5 ++++-
 libgda/gda-data-access-wrapper.c                   |    8 ++++----
 libgda/gda-data-comparator.c                       |   10 ++++++++--
 libgda/gda-data-meta-wrapper.c                     |    8 ++++----
 libgda/gda-data-model-bdb.c                        |   10 ++++++++--
 libgda/gda-data-model-dir.c                        |   10 ++++++++--
 libgda/gda-data-model-import.c                     |    8 ++++----
 libgda/gda-data-model-iter.c                       |   12 +++++++++---
 libgda/gda-data-proxy.c                            |   10 ++++++++--
 libgda/gda-data-select.c                           |    6 ++++--
 libgda/gda-holder.c                                |   10 ++++++++--
 libgda/gda-meta-store.c                            |   10 ++++++++--
 libgda/gda-meta-struct.c                           |    6 ++++--
 libgda/gda-row.c                                   |    8 ++++----
 libgda/gda-server-operation.c                      |   10 +++++++---
 libgda/gda-server-provider.c                       |   10 ++++++----
 libgda/gda-sql-builder.c                           |   10 ++++++++--
 libgda/gda-tree-manager.c                          |   10 ++++++++--
 libgda/gda-tree-mgr-columns.c                      |   10 ++++++++--
 libgda/gda-tree-mgr-label.c                        |   10 ++++++++--
 libgda/gda-tree-mgr-schemas.c                      |   10 ++++++++--
 libgda/gda-tree-mgr-select.c                       |   10 ++++++++--
 libgda/gda-tree-mgr-tables.c                       |   10 ++++++++--
 libgda/gda-tree-node.c                             |   10 ++++++++--
 libgda/gda-tree.c                                  |   10 ++++++++--
 libgda/sqlite/virtual/gda-vconnection-data-model.c |    6 ++++--
 libgda/sqlite/virtual/gda-vconnection-hub.c        |    6 ++++--
 libgda/sqlite/virtual/gda-virtual-provider.c       |    6 ++++--
 libgda/sqlite/virtual/gda-vprovider-data-model.c   |    6 ++++--
 libgda/sqlite/virtual/gda-vprovider-hub.c          |    6 ++++--
 libgda/thread-wrapper/gda-thread-wrapper.c         |   14 ++++++++++----
 providers/postgres/gda-postgres-recordset.c        |   14 ++++++++------
 tests/gda-ddl-creator.c                            |   10 ++++++++--
 tools/browser/browser-connection.c                 |   10 ++++++++--
 tools/browser/browser-virtual-connection.c         |   10 ++++++++--
 tools/browser/canvas/browser-canvas-column.c       |   10 ++++++++--
 tools/browser/canvas/browser-canvas-db-relations.c |   10 ++++++++--
 tools/browser/canvas/browser-canvas-fkey.c         |    9 ++++++---
 tools/browser/canvas/browser-canvas-item.c         |    5 ++++-
 tools/browser/canvas/browser-canvas-table.c        |   10 ++++++++--
 tools/browser/canvas/browser-canvas-text.c         |    9 ++++++---
 tools/browser/canvas/browser-canvas.c              |   10 ++++++++--
 tools/browser/mgr-favorites.c                      |   10 ++++++++--
 tools/browser/schema-browser/mgr-columns.c         |   10 ++++++++--
 tools/browser/schema-browser/relations-diagram.c   |   10 ++++++++--
 tools/browser/schema-browser/table-info.c          |   10 ++++++++--
 59 files changed, 400 insertions(+), 140 deletions(-)
---
diff --git a/libgda-report/DocBook/gda-report-docbook-document.c b/libgda-report/DocBook/gda-report-docbook-document.c
index 9457843..39e60d7 100644
--- a/libgda-report/DocBook/gda-report-docbook-document.c
+++ b/libgda-report/DocBook/gda-report-docbook-document.c
@@ -164,7 +164,7 @@ static void
 gda_report_docbook_document_set_property (GObject *object,
 				guint param_id,
 				const GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportDocbookDocument *doc;
 
@@ -204,6 +204,7 @@ gda_report_docbook_document_set_property (GObject *object,
 				doc->priv->fop_path = g_strdup (g_value_get_string (value));
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -213,7 +214,7 @@ static void
 gda_report_docbook_document_get_property (GObject *object,
 				guint param_id,
 				GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportDocbookDocument *doc;
 
@@ -233,6 +234,7 @@ gda_report_docbook_document_get_property (GObject *object,
 			g_value_set_string (value, doc->priv->fop_path);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda-report/RML/gda-report-rml-document.c b/libgda-report/RML/gda-report-rml-document.c
index 955731c..7aa906c 100644
--- a/libgda-report/RML/gda-report-rml-document.c
+++ b/libgda-report/RML/gda-report-rml-document.c
@@ -137,7 +137,7 @@ static void
 gda_report_rml_document_set_property (GObject *object,
 				guint param_id,
 				G_GNUC_UNUSED const GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportRmlDocument *doc;
 
@@ -145,6 +145,7 @@ gda_report_rml_document_set_property (GObject *object,
         if (doc->priv) {
                 switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -154,7 +155,7 @@ static void
 gda_report_rml_document_get_property (GObject *object,
 				guint param_id,
 				G_GNUC_UNUSED GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportRmlDocument *doc;
 
@@ -162,6 +163,7 @@ gda_report_rml_document_get_property (GObject *object,
         if (doc->priv) {
 		switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda-report/engine/gda-report-engine.c b/libgda-report/engine/gda-report-engine.c
index 5887ce0..5b14d66 100644
--- a/libgda-report/engine/gda-report-engine.c
+++ b/libgda-report/engine/gda-report-engine.c
@@ -165,7 +165,7 @@ static void
 gda_report_engine_set_property (GObject *object,
 				guint param_id,
 				const GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportEngine *eng;
 
@@ -211,6 +211,7 @@ gda_report_engine_set_property (GObject *object,
 			break;
 		}
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -220,7 +221,7 @@ static void
 gda_report_engine_get_property (GObject *object,
 				guint param_id,
 				GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportEngine *eng;
 
@@ -231,6 +232,7 @@ gda_report_engine_get_property (GObject *object,
 			g_value_set_pointer (value, eng->priv->spec);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda-report/gda-report-document.c b/libgda-report/gda-report-document.c
index e4c6065..76aa41f 100644
--- a/libgda-report/gda-report-document.c
+++ b/libgda-report/gda-report-document.c
@@ -147,7 +147,7 @@ static void
 gda_report_document_set_property (GObject *object,
 				guint param_id,
 				const GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportDocument *doc;
 
@@ -167,6 +167,7 @@ gda_report_document_set_property (GObject *object,
 			doc->priv->doc = xmlParseFile (g_value_get_string (value));
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -176,7 +177,7 @@ static void
 gda_report_document_get_property (GObject *object,
 				guint param_id,
 				GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
         GdaReportDocument *doc;
 
@@ -189,6 +190,7 @@ gda_report_document_get_property (GObject *object,
 			g_value_set_object (value, doc->priv->engine);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda-ui/data-entries/gdaui-entry-combo.c b/libgda-ui/data-entries/gdaui-entry-combo.c
index e0ce44e..88d8de2 100644
--- a/libgda-ui/data-entries/gdaui-entry-combo.c
+++ b/libgda-ui/data-entries/gdaui-entry-combo.c
@@ -379,7 +379,7 @@ static void
 gdaui_entry_combo_set_property (GObject *object,
 				guint param_id,
 				const GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
 	GdauiEntryCombo *combo = GDAUI_ENTRY_COMBO (object);
 	if (combo->priv) {
@@ -395,6 +395,9 @@ gdaui_entry_combo_set_property (GObject *object,
 					choose_auto_default_value (combo);
 			}
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -403,7 +406,7 @@ static void
 gdaui_entry_combo_get_property (GObject *object,
 				guint param_id,
 				GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
 	GdauiEntryCombo *combo = GDAUI_ENTRY_COMBO (object);
 	if (combo->priv) {
@@ -411,6 +414,9 @@ gdaui_entry_combo_get_property (GObject *object,
 		case PROP_SET_DEFAULT_IF_INVALID:
 			g_value_set_boolean (value, combo->priv->set_default_if_invalid);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda-ui/data-entries/gdaui-entry-wrapper.c b/libgda-ui/data-entries/gdaui-entry-wrapper.c
index 4d9ed81..90e7546 100644
--- a/libgda-ui/data-entries/gdaui-entry-wrapper.c
+++ b/libgda-ui/data-entries/gdaui-entry-wrapper.c
@@ -285,7 +285,7 @@ static void
 gdaui_entry_wrapper_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdauiEntryWrapper *mgwrap = GDAUI_ENTRY_WRAPPER (object);
 	if (mgwrap->priv) {
@@ -310,6 +310,9 @@ gdaui_entry_wrapper_set_property (GObject *object,
 					gda_value_free (sane_value);
 			}
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 		}
 	}
@@ -319,7 +322,7 @@ static void
 gdaui_entry_wrapper_get_property (GObject *object,
 				  guint param_id,
 				  GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdauiEntryWrapper *mgwrap = GDAUI_ENTRY_WRAPPER (object);
 	if (mgwrap->priv) {
@@ -327,6 +330,9 @@ gdaui_entry_wrapper_get_property (GObject *object,
 		case PROP_SET_DEFAULT_IF_INVALID:
 			g_value_set_boolean (value, mgwrap->priv->set_default_if_invalid);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda-ui/gdaui-data-store.c b/libgda-ui/gdaui-data-store.c
index 13e0caa..6af472c 100644
--- a/libgda-ui/gdaui-data-store.c
+++ b/libgda-ui/gdaui-data-store.c
@@ -248,7 +248,7 @@ static void
 gdaui_data_store_set_property (GObject *object,
 			       guint param_id,
 			       const GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdauiDataStore *store;
 
@@ -290,6 +290,9 @@ gdaui_data_store_set_property (GObject *object,
 				      g_value_get_boolean (value), NULL);
 			store->priv->stamp = g_random_int ();
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -298,7 +301,7 @@ static void
 gdaui_data_store_get_property (GObject *object,
 			       guint param_id,
 			       GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdauiDataStore *store;
 
@@ -320,6 +323,9 @@ gdaui_data_store_get_property (GObject *object,
 			g_value_set_boolean (value, prop);
 			break;
 		}
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda-ui/gdaui-tree-store.c b/libgda-ui/gdaui-tree-store.c
index a289fd6..7587837 100644
--- a/libgda-ui/gdaui-tree-store.c
+++ b/libgda-ui/gdaui-tree-store.c
@@ -330,7 +330,7 @@ static void
 gdaui_tree_store_set_property (GObject *object,
 			       guint param_id,
 			       const GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdauiTreeStore *store;
 
@@ -357,6 +357,9 @@ gdaui_tree_store_set_property (GObject *object,
 			/* connect to row changes */
 			store->priv->stamp = g_random_int_range (1, G_MAXINT);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -365,7 +368,7 @@ static void
 gdaui_tree_store_get_property (GObject *object,
 				  guint param_id,
 				  GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdauiTreeStore *store;
 
@@ -375,6 +378,9 @@ gdaui_tree_store_get_property (GObject *object,
 		case PROP_TREE:
 			g_value_set_pointer (value, store->priv->tree);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda-ui/internal/gdaui-dsn-selector.c b/libgda-ui/internal/gdaui-dsn-selector.c
index 3753b90..1c48de8 100644
--- a/libgda-ui/internal/gdaui-dsn-selector.c
+++ b/libgda-ui/internal/gdaui-dsn-selector.c
@@ -109,7 +109,7 @@ static void
 gdaui_dsn_selector_set_property (GObject *object,
 				 guint param_id,
 				 const GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
 	GdauiDsnSelector *selector;
 	GSList *list;
@@ -122,6 +122,9 @@ gdaui_dsn_selector_set_property (GObject *object,
 		_gdaui_combo_set_selected_ext (GDAUI_COMBO (selector), list, cols_index);
 		g_slist_free (list);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -129,7 +132,7 @@ static void
 gdaui_dsn_selector_get_property (GObject *object,
 				 guint param_id,
 				 GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
 	GdauiDsnSelector *selector;
 	GSList *list;
@@ -146,6 +149,9 @@ gdaui_dsn_selector_get_property (GObject *object,
 		else
 			g_value_set_string (value, NULL);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/libgda-ui/internal/gdaui-provider-auth-editor.c b/libgda-ui/internal/gdaui-provider-auth-editor.c
index 4af2dee..3b2cb7b 100644
--- a/libgda-ui/internal/gdaui-provider-auth-editor.c
+++ b/libgda-ui/internal/gdaui-provider-auth-editor.c
@@ -45,11 +45,11 @@ static void gdaui_provider_auth_editor_finalize   (GObject *object);
 static void gdaui_provider_auth_editor_set_property (GObject *object,
 							guint param_id,
 							const GValue *value,
-							GParamSpec *pauth);
+							GParamSpec *pspec);
 static void gdaui_provider_auth_editor_get_property (GObject *object,
 							guint param_id,
 							GValue *value,
-							GParamSpec *pauth);
+							GParamSpec *pspec);
 
 enum {
 	PROP_0,
@@ -147,7 +147,7 @@ static void
 gdaui_provider_auth_editor_set_property (GObject *object,
                                             guint param_id,
                                             const GValue *value,
-                                            G_GNUC_UNUSED GParamSpec *pauth)
+                                            GParamSpec *pspec)
 {
 	GdauiProviderAuthEditor *auth;
 	auth = GDAUI_PROVIDER_AUTH_EDITOR (object);
@@ -156,6 +156,9 @@ gdaui_provider_auth_editor_set_property (GObject *object,
 	case PROP_PROVIDER:
 		_gdaui_provider_auth_editor_set_provider (auth, g_value_get_string (value));
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -163,7 +166,7 @@ static void
 gdaui_provider_auth_editor_get_property (GObject *object,
                                             guint param_id,
                                             GValue *value,
-                                            G_GNUC_UNUSED GParamSpec *pauth)
+                                            GParamSpec *pspec)
 {
 	GdauiProviderAuthEditor *auth;
 	auth = GDAUI_PROVIDER_AUTH_EDITOR (object);
@@ -172,6 +175,9 @@ gdaui_provider_auth_editor_get_property (GObject *object,
 	case PROP_PROVIDER:
 		g_value_set_string (value, auth->priv->provider);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/libgda-ui/internal/gdaui-provider-spec-editor.c b/libgda-ui/internal/gdaui-provider-spec-editor.c
index ed60fe3..48aea64 100644
--- a/libgda-ui/internal/gdaui-provider-spec-editor.c
+++ b/libgda-ui/internal/gdaui-provider-spec-editor.c
@@ -284,7 +284,7 @@ static void
 gdaui_provider_spec_editor_set_property (GObject *object,
                                             guint param_id,
                                             const GValue *value,
-                                            G_GNUC_UNUSED GParamSpec *pspec)
+                                            GParamSpec *pspec)
 {
 	GdauiProviderSpecEditor *spec;
 	spec = GDAUI_PROVIDER_SPEC_EDITOR (object);
@@ -294,6 +294,9 @@ gdaui_provider_spec_editor_set_property (GObject *object,
 		_gdaui_provider_spec_editor_set_provider (spec,
 		                                g_value_get_string (value));
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -301,7 +304,7 @@ static void
 gdaui_provider_spec_editor_get_property (GObject *object,
                                             guint param_id,
                                             GValue *value,
-                                            G_GNUC_UNUSED GParamSpec *pspec)
+                                            GParamSpec *pspec)
 {
 	GdauiProviderSpecEditor *spec;
 	spec = GDAUI_PROVIDER_SPEC_EDITOR (object);
@@ -310,6 +313,9 @@ gdaui_provider_spec_editor_get_property (GObject *object,
 	case PROP_PROVIDER:
 		g_value_set_string (value, spec->priv->provider);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/libgda/gda-column.c b/libgda/gda-column.c
index 2b9605c..671a0be 100644
--- a/libgda/gda-column.c
+++ b/libgda/gda-column.c
@@ -207,7 +207,7 @@ static void
 gda_column_set_property (GObject *object,
                                    guint param_id,
                                    const GValue *value,
-                                   G_GNUC_UNUSED GParamSpec *pspec)
+                                   GParamSpec *pspec)
 {
         GdaColumn *col;
 
@@ -222,7 +222,8 @@ gda_column_set_property (GObject *object,
 				col->priv->id = NULL;
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -231,7 +232,7 @@ static void
 gda_column_get_property (GObject *object,
 			 guint param_id,
 			 GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaColumn *col;
 
@@ -242,7 +243,8 @@ gda_column_get_property (GObject *object,
 			g_value_set_string (value, col->priv->id);
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-config.c b/libgda/gda-config.c
index 8db0ee0..bd0b4d0 100644
--- a/libgda/gda-config.c
+++ b/libgda/gda-config.c
@@ -731,7 +731,7 @@ static void
 gda_config_set_property (GObject *object,
 			 guint param_id,
 			 const GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaConfig *conf;
 
@@ -750,6 +750,9 @@ gda_config_set_property (GObject *object,
 			if (g_value_get_string (value))
 				conf->priv->system_file = g_strdup (g_value_get_string (value));
                         break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}	
 	}
 }
@@ -758,7 +761,7 @@ static void
 gda_config_get_property (GObject *object,
 			 guint param_id,
 			 GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaConfig *conf;
 	
@@ -771,6 +774,9 @@ gda_config_get_property (GObject *object,
 		case PROP_SYSTEM_FILE:
 			g_value_set_string (value, conf->priv->system_file);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}	
 }
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index c412859..ce16dab 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -792,7 +792,7 @@ static void
 gda_connection_get_property (GObject *object,
 			     guint param_id,
 			     GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaConnection *cnc;
 
@@ -827,6 +827,9 @@ gda_connection_get_property (GObject *object,
 		case PROP_EVENTS_HISTORY_SIZE:
 			g_value_set_int (value, cnc->priv->events_array_size);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }	
 }
diff --git a/libgda/gda-data-access-wrapper.c b/libgda/gda-data-access-wrapper.c
index d1ef79f..3590711 100644
--- a/libgda/gda-data-access-wrapper.c
+++ b/libgda/gda-data-access-wrapper.c
@@ -282,7 +282,7 @@ static void
 gda_data_access_wrapper_set_property (GObject *object,
 				      guint param_id,
 				      const GValue *value,
-				      G_GNUC_UNUSED GParamSpec *pspec)
+				      GParamSpec *pspec)
 {
 	GdaDataAccessWrapper *model;
 
@@ -324,7 +324,7 @@ gda_data_access_wrapper_set_property (GObject *object,
 			break;
 		}
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
@@ -334,7 +334,7 @@ static void
 gda_data_access_wrapper_get_property (GObject *object,
 					guint param_id,
 					GValue *value,
-					G_GNUC_UNUSED GParamSpec *pspec)
+					GParamSpec *pspec)
 {
 	GdaDataAccessWrapper *model;
 
@@ -345,7 +345,7 @@ gda_data_access_wrapper_get_property (GObject *object,
 			g_value_set_object (value, G_OBJECT (model->priv->model));
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
diff --git a/libgda/gda-data-comparator.c b/libgda/gda-data-comparator.c
index 03cbd2c..1c88cdb 100644
--- a/libgda/gda-data-comparator.c
+++ b/libgda/gda-data-comparator.c
@@ -261,7 +261,7 @@ static void
 gda_data_comparator_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdaDataComparator *comparator;
 	comparator = GDA_DATA_COMPARATOR (object);
@@ -295,6 +295,9 @@ gda_data_comparator_set_property (GObject *object,
 			if (model)
 				g_object_ref (model);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -303,7 +306,7 @@ static void
 gda_data_comparator_get_property (GObject *object,
 				  guint param_id,
 				  GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdaDataComparator *comparator;
 
@@ -316,6 +319,9 @@ gda_data_comparator_get_property (GObject *object,
 		case PROP_NEW_MODEL:
 			g_value_set_object (value, comparator->priv->new_model);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-data-meta-wrapper.c b/libgda/gda-data-meta-wrapper.c
index ae25184..7b55afb 100644
--- a/libgda/gda-data-meta-wrapper.c
+++ b/libgda/gda-data-meta-wrapper.c
@@ -275,7 +275,7 @@ static void
 gda_data_meta_wrapper_set_property (GObject *object,
 				      guint param_id,
 				      const GValue *value,
-				      G_GNUC_UNUSED GParamSpec *pspec)
+				      GParamSpec *pspec)
 {
 	GdaDataMetaWrapper *model;
 
@@ -301,7 +301,7 @@ gda_data_meta_wrapper_set_property (GObject *object,
 			break;
 		}
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
@@ -311,7 +311,7 @@ static void
 gda_data_meta_wrapper_get_property (GObject *object,
 					guint param_id,
 					GValue *value,
-					G_GNUC_UNUSED GParamSpec *pspec)
+					GParamSpec *pspec)
 {
 	GdaDataMetaWrapper *model;
 
@@ -322,7 +322,7 @@ gda_data_meta_wrapper_get_property (GObject *object,
 			g_value_set_object (value, G_OBJECT (model->priv->model));
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
diff --git a/libgda/gda-data-model-bdb.c b/libgda/gda-data-model-bdb.c
index 82d5475..26cf6e4 100644
--- a/libgda/gda-data-model-bdb.c
+++ b/libgda/gda-data-model-bdb.c
@@ -325,7 +325,7 @@ static void
 gda_data_model_bdb_set_property (GObject *object,
 				 guint param_id,
 				 const GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
         GdaDataModelBdb *model;
         const gchar *string;
@@ -352,6 +352,9 @@ gda_data_model_bdb_set_property (GObject *object,
 				model->priv->db_name = g_strdup (string);
 			model->priv->db_name_set = TRUE;
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 
@@ -441,7 +444,7 @@ static void
 gda_data_model_bdb_get_property (GObject *object,
                                     guint param_id,
                                     GValue *value,
-                                    G_GNUC_UNUSED GParamSpec *pspec)
+                                    GParamSpec *pspec)
 {
         GdaDataModelBdb *model;
 
@@ -454,6 +457,9 @@ gda_data_model_bdb_get_property (GObject *object,
                 case PROP_DB_NAME:
 			g_value_set_string (value, model->priv->db_name);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-data-model-dir.c b/libgda/gda-data-model-dir.c
index 0015fc6..309e237 100644
--- a/libgda/gda-data-model-dir.c
+++ b/libgda/gda-data-model-dir.c
@@ -297,7 +297,7 @@ static void
 gda_data_model_dir_set_property (GObject *object,
 				 guint param_id,
 				 const GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
         GdaDataModelDir *model;
         const gchar *string;
@@ -314,6 +314,9 @@ gda_data_model_dir_set_property (GObject *object,
 			if (string) 
 				model->priv->basedir = g_strdup (string);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 
 		if (model->priv->basedir) {
@@ -640,7 +643,7 @@ static void
 gda_data_model_dir_get_property (GObject *object,
 				 guint param_id,
 				 GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
 	GdaDataModelDir *model;
 
@@ -650,6 +653,9 @@ gda_data_model_dir_get_property (GObject *object,
 		case PROP_BASEDIR:
 			g_value_set_string (value, model->priv->basedir);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-data-model-import.c b/libgda/gda-data-model-import.c
index 004d527..acd875f 100644
--- a/libgda/gda-data-model-import.c
+++ b/libgda/gda-data-model-import.c
@@ -478,7 +478,7 @@ static void
 gda_data_model_import_set_property (GObject *object,
 				    guint param_id,
 				    const GValue *value,
-				    G_GNUC_UNUSED GParamSpec *pspec)
+				    GParamSpec *pspec)
 {
 	GdaDataModelImport *model;
 	const gchar *string;
@@ -578,7 +578,7 @@ gda_data_model_import_set_property (GObject *object,
 			}
 			return;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
@@ -638,7 +638,7 @@ static void
 gda_data_model_import_get_property (GObject *object,
 				    guint param_id,
 				    GValue *value,
-				    G_GNUC_UNUSED GParamSpec *pspec)
+				    GParamSpec *pspec)
 {
 	GdaDataModelImport *model;
 
@@ -661,7 +661,7 @@ gda_data_model_import_get_property (GObject *object,
 				g_value_set_string (value, model->priv->src.string);
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
diff --git a/libgda/gda-data-model-iter.c b/libgda/gda-data-model-iter.c
index 883a208..bf01102 100644
--- a/libgda/gda-data-model-iter.c
+++ b/libgda/gda-data-model-iter.c
@@ -409,7 +409,7 @@ static void
 gda_data_model_iter_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdaDataModelIter *iter;
 
@@ -534,6 +534,9 @@ gda_data_model_iter_set_property (GObject *object,
 		case PROP_UPDATE_MODEL:
 			iter->priv->keep_param_changes = ! g_value_get_boolean (value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -542,7 +545,7 @@ static void
 gda_data_model_iter_get_property (GObject *object,
 				  guint param_id,
 				  GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	GdaDataModelIter *iter = GDA_DATA_MODEL_ITER (object);
 	
@@ -558,7 +561,10 @@ gda_data_model_iter_get_property (GObject *object,
 		case PROP_UPDATE_MODEL:
 			g_value_set_boolean (value, ! iter->priv->keep_param_changes);
 			break;
-		}	
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
+		}
 	}
 }
 
diff --git a/libgda/gda-data-proxy.c b/libgda/gda-data-proxy.c
index 8849b0e..d6a1a85 100644
--- a/libgda/gda-data-proxy.c
+++ b/libgda/gda-data-proxy.c
@@ -894,7 +894,7 @@ static void
 gda_data_proxy_set_property (GObject *object,
 			     guint param_id,
 			     const GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaDataProxy *proxy;
 
@@ -982,6 +982,9 @@ gda_data_proxy_set_property (GObject *object,
 				proxy->priv->chunk = NULL;
 			}
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 		gda_mutex_unlock (proxy->priv->mutex);
 	}
@@ -991,7 +994,7 @@ static void
 gda_data_proxy_get_property (GObject *object,
 			     guint param_id,
 			     GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaDataProxy *proxy;
 
@@ -1008,6 +1011,9 @@ gda_data_proxy_get_property (GObject *object,
 		case PROP_SAMPLE_SIZE:
 			g_value_set_int (value, proxy->priv->sample_size);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 		gda_mutex_unlock (proxy->priv->mutex);
 	}
diff --git a/libgda/gda-data-select.c b/libgda/gda-data-select.c
index 193c10d..2c591a3 100644
--- a/libgda/gda-data-select.c
+++ b/libgda/gda-data-select.c
@@ -621,7 +621,7 @@ static void
 gda_data_select_set_property (GObject *object,
 			 guint param_id,
 			 const GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaDataSelect *model = (GdaDataSelect *) object;
 	if (model->priv) {
@@ -701,6 +701,7 @@ gda_data_select_set_property (GObject *object,
 			model->priv->sh->reset_with_ext_params_change = g_value_get_boolean (value);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
@@ -710,7 +711,7 @@ static void
 gda_data_select_get_property (GObject *object,
 			 guint param_id,
 			 GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaDataSelect *model = (GdaDataSelect *) object;
 	if (model->priv) {
@@ -752,6 +753,7 @@ gda_data_select_get_property (GObject *object,
 			g_value_set_boolean (value, model->priv->sh->reset_with_ext_params_change);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
diff --git a/libgda/gda-holder.c b/libgda/gda-holder.c
index dc1c17e..7d1eeb9 100644
--- a/libgda/gda-holder.c
+++ b/libgda/gda-holder.c
@@ -557,7 +557,7 @@ static void
 gda_holder_set_property (GObject *object,
 			 guint param_id,
 			 const GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaHolder *holder;
 
@@ -616,6 +616,9 @@ gda_holder_set_property (GObject *object,
 		case PROP_SOURCE_COLUMN:
 			holder->priv->source_col = g_value_get_int (value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -624,7 +627,7 @@ static void
 gda_holder_get_property (GObject *object,
 			 guint param_id,
 			 GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaHolder *holder;
 	const GValue *cvalue;
@@ -667,6 +670,9 @@ gda_holder_get_property (GObject *object,
 		case PROP_SOURCE_COLUMN:
 			g_value_set_int (value, holder->priv->source_col);
 			break;	
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index 0990902..c55caec 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -734,7 +734,7 @@ static void
 gda_meta_store_set_property (GObject *object,
 			     guint param_id,
 			     const GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaMetaStore *store;
 	const gchar *cnc_string;
@@ -779,6 +779,9 @@ gda_meta_store_set_property (GObject *object,
 			else
 				store->priv->schema = NULL;
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -787,7 +790,7 @@ static void
 gda_meta_store_get_property (GObject *object,
 			     guint param_id,
 			     GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaMetaStore *store;
 	store = GDA_META_STORE (object);
@@ -806,6 +809,9 @@ gda_meta_store_get_property (GObject *object,
 		case PROP_SCHEMA:
 			g_value_set_string (value, store->priv->schema);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-meta-struct.c b/libgda/gda-meta-struct.c
index 35ec743..4137df1 100644
--- a/libgda/gda-meta-struct.c
+++ b/libgda/gda-meta-struct.c
@@ -221,7 +221,7 @@ static void
 gda_meta_struct_set_property (GObject *object,
 			      guint param_id,
 			      const GValue *value,
-			      G_GNUC_UNUSED GParamSpec *pspec)
+			      GParamSpec *pspec)
 {
         GdaMetaStruct *mstruct;
 
@@ -242,6 +242,7 @@ gda_meta_struct_set_property (GObject *object,
 			mstruct->priv->features = g_value_get_uint (value);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
@@ -251,7 +252,7 @@ static void
 gda_meta_struct_get_property (GObject *object,
 			      guint param_id,
 			      GValue *value,
-			      G_GNUC_UNUSED GParamSpec *pspec)
+			      GParamSpec *pspec)
 {
         GdaMetaStruct *mstruct;
         mstruct = GDA_META_STRUCT (object);
@@ -265,6 +266,7 @@ gda_meta_struct_get_property (GObject *object,
 			g_value_set_uint (value, mstruct->priv->features);
 			break;
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
 	}
diff --git a/libgda/gda-row.c b/libgda/gda-row.c
index e76a36b..77bbd42 100644
--- a/libgda/gda-row.c
+++ b/libgda/gda-row.c
@@ -124,7 +124,7 @@ static void
 gda_row_set_property (GObject *object,
 		      guint param_id,
 		      const GValue *value,
-		      G_GNUC_UNUSED GParamSpec *pspec)
+		      GParamSpec *pspec)
 {
         GdaRow *row;
 
@@ -138,7 +138,7 @@ gda_row_set_property (GObject *object,
 			row->priv->fields = g_new0 (GValue, row->priv->nfields);			
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -148,7 +148,7 @@ static void
 gda_row_get_property (GObject *object,
 		      guint param_id,
 		      GValue *value,
-		      G_GNUC_UNUSED GParamSpec *pspec)
+		      GParamSpec *pspec)
 {
         GdaRow *row;
 
@@ -159,7 +159,7 @@ gda_row_get_property (GObject *object,
 			g_value_set_int (value, row->priv->nfields);
 			break;
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
diff --git a/libgda/gda-server-operation.c b/libgda/gda-server-operation.c
index 560a6ee..4877641 100644
--- a/libgda/gda-server-operation.c
+++ b/libgda/gda-server-operation.c
@@ -526,7 +526,7 @@ static void
 gda_server_operation_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
 	GdaServerOperation *op;
 
@@ -602,7 +602,8 @@ gda_server_operation_set_property (GObject *object,
 			break;
 		}
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 
@@ -623,7 +624,7 @@ static void
 gda_server_operation_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
 	GdaServerOperation *op;
 
@@ -639,6 +640,9 @@ gda_server_operation_get_property (GObject *object,
 		case PROP_OP_TYPE:
 			g_value_set_int (value, op->priv->op_type);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-server-provider.c b/libgda/gda-server-provider.c
index 7c08c43..f650300 100644
--- a/libgda/gda-server-provider.c
+++ b/libgda/gda-server-provider.c
@@ -222,14 +222,15 @@ static void
 gda_server_provider_set_property (GObject *object,
 				  guint param_id,
 				  G_GNUC_UNUSED const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec) {
+				  GParamSpec *pspec) {
         GdaServerProvider *prov;
 
         prov = GDA_SERVER_PROVIDER (object);
         if (prov->priv) {
                 switch (param_id) {
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -238,14 +239,15 @@ static void
 gda_server_provider_get_property (GObject *object,
 				  guint param_id,
 				  G_GNUC_UNUSED GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec) {
+				  GParamSpec *pspec) {
         GdaServerProvider *prov;
 
         prov = GDA_SERVER_PROVIDER (object);
         if (prov->priv) {
                 switch (param_id) {
 		default:
-			g_assert_not_reached ();
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-sql-builder.c b/libgda/gda-sql-builder.c
index 06de52e..dee031d 100644
--- a/libgda/gda-sql-builder.c
+++ b/libgda/gda-sql-builder.c
@@ -221,7 +221,7 @@ static void
 gda_sql_builder_set_property (GObject *object,
 			     guint param_id,
 			     const GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaSqlBuilder *builder;
 	GdaSqlStatementType stmt_type;
@@ -243,6 +243,9 @@ gda_sql_builder_set_property (GObject *object,
 			if (stmt_type == GDA_SQL_STATEMENT_COMPOUND)
 				gda_sql_builder_compound_set_type (builder, GDA_SQL_STATEMENT_COMPOUND_UNION);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -251,13 +254,16 @@ static void
 gda_sql_builder_get_property (GObject *object,
 			     guint param_id,
 			     G_GNUC_UNUSED GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaSqlBuilder *builder;
 	builder = GDA_SQL_BUILDER (object);
 
 	if (builder->priv) {
 		switch (param_id) {
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/libgda/gda-tree-manager.c b/libgda/gda-tree-manager.c
index 640b301..78c33df 100644
--- a/libgda/gda-tree-manager.c
+++ b/libgda/gda-tree-manager.c
@@ -197,7 +197,7 @@ static void
 gda_tree_manager_set_property (GObject *object,
 			       guint param_id,
 			       const GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdaTreeManager *manager;
 
@@ -210,6 +210,9 @@ gda_tree_manager_set_property (GObject *object,
 		case PROP_FUNC:
 			manager->priv->update_func = g_value_get_pointer (value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}	
 	}
 }
@@ -218,7 +221,7 @@ static void
 gda_tree_manager_get_property (GObject *object,
 			       guint param_id,
 			       GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdaTreeManager *manager;
 	
@@ -231,6 +234,9 @@ gda_tree_manager_get_property (GObject *object,
 		case PROP_FUNC:
 			g_value_set_pointer (value, manager->priv->update_func);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}	
 }
diff --git a/libgda/gda-tree-mgr-columns.c b/libgda/gda-tree-mgr-columns.c
index 7ece97b..59daa6a 100644
--- a/libgda/gda-tree-mgr-columns.c
+++ b/libgda/gda-tree-mgr-columns.c
@@ -178,7 +178,7 @@ static void
 gda_tree_mgr_columns_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrColumns *mgr;
 
@@ -196,6 +196,9 @@ gda_tree_mgr_columns_set_property (GObject *object,
 		case PROP_TABLE:
 			mgr->priv->table_name = g_value_dup_string (value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -204,7 +207,7 @@ static void
 gda_tree_mgr_columns_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrColumns *mgr;
 
@@ -220,6 +223,9 @@ gda_tree_mgr_columns_get_property (GObject *object,
 		case PROP_TABLE:
 			g_value_set_string (value, mgr->priv->table_name);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/libgda/gda-tree-mgr-label.c b/libgda/gda-tree-mgr-label.c
index 22367a5..899e4ee 100644
--- a/libgda/gda-tree-mgr-label.c
+++ b/libgda/gda-tree-mgr-label.c
@@ -141,7 +141,7 @@ static void
 gda_tree_mgr_label_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrLabel *mgr;
 
@@ -151,6 +151,9 @@ gda_tree_mgr_label_set_property (GObject *object,
 		case PROP_LABEL:
 			mgr->priv->label = g_value_dup_string (value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -159,7 +162,7 @@ static void
 gda_tree_mgr_label_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrLabel *mgr;
 
@@ -169,6 +172,9 @@ gda_tree_mgr_label_get_property (GObject *object,
 		case PROP_LABEL:
 			g_value_set_string (value, mgr->priv->label);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/libgda/gda-tree-mgr-schemas.c b/libgda/gda-tree-mgr-schemas.c
index 5d39afb..26b891c 100644
--- a/libgda/gda-tree-mgr-schemas.c
+++ b/libgda/gda-tree-mgr-schemas.c
@@ -147,7 +147,7 @@ static void
 gda_tree_mgr_schemas_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrSchemas *mgr;
 
@@ -159,6 +159,9 @@ gda_tree_mgr_schemas_set_property (GObject *object,
 			if (mgr->priv->cnc)
 				g_object_ref (mgr->priv->cnc);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -167,7 +170,7 @@ static void
 gda_tree_mgr_schemas_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrSchemas *mgr;
 
@@ -177,6 +180,9 @@ gda_tree_mgr_schemas_get_property (GObject *object,
 		case PROP_CNC:
 			g_value_set_object (value, mgr->priv->cnc);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/libgda/gda-tree-mgr-select.c b/libgda/gda-tree-mgr-select.c
index 0778c5a..3f8b3b3 100644
--- a/libgda/gda-tree-mgr-select.c
+++ b/libgda/gda-tree-mgr-select.c
@@ -167,7 +167,7 @@ static void
 gda_tree_mgr_select_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
         GdaTreeMgrSelect *mgr;
 
@@ -199,6 +199,9 @@ gda_tree_mgr_select_set_property (GObject *object,
 			if (mgr->priv->params)
 				g_object_ref (mgr->priv->params);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 
@@ -235,7 +238,7 @@ static void
 gda_tree_mgr_select_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrSelect *mgr;
 
@@ -251,6 +254,9 @@ gda_tree_mgr_select_get_property (GObject *object,
 		case PROP_PARAMS:
 			g_value_set_object (value, mgr->priv->params);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/libgda/gda-tree-mgr-tables.c b/libgda/gda-tree-mgr-tables.c
index 2cb7362..6ecb4f0 100644
--- a/libgda/gda-tree-mgr-tables.c
+++ b/libgda/gda-tree-mgr-tables.c
@@ -170,7 +170,7 @@ static void
 gda_tree_mgr_tables_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrTables *mgr;
 
@@ -185,6 +185,9 @@ gda_tree_mgr_tables_set_property (GObject *object,
 		case PROP_SCHEMA:
 			mgr->priv->schema = g_value_dup_string (value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -193,7 +196,7 @@ static void
 gda_tree_mgr_tables_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaTreeMgrTables *mgr;
 
@@ -206,6 +209,9 @@ gda_tree_mgr_tables_get_property (GObject *object,
 		case PROP_SCHEMA:
 			g_value_set_string (value, mgr->priv->schema);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/libgda/gda-tree-node.c b/libgda/gda-tree-node.c
index bf676ab..9091101 100644
--- a/libgda/gda-tree-node.c
+++ b/libgda/gda-tree-node.c
@@ -338,7 +338,7 @@ static void
 gda_tree_node_set_property (GObject *object,
 			    guint param_id,
 			    const GValue *value,
-			    G_GNUC_UNUSED GParamSpec *pspec)
+			    GParamSpec *pspec)
 {
 	GdaTreeNode *tnode;
 
@@ -348,6 +348,9 @@ gda_tree_node_set_property (GObject *object,
 		case PROP_NAME:
 			gda_attributes_manager_set (gda_tree_node_attributes_manager, tnode, GDA_ATTRIBUTE_NAME, value);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}	
 	}
 }
@@ -356,7 +359,7 @@ static void
 gda_tree_node_get_property (GObject *object,
 			    guint param_id,
 			    GValue *value,
-			    G_GNUC_UNUSED GParamSpec *pspec)
+			    GParamSpec *pspec)
 {
 	GdaTreeNode *tnode;
 	
@@ -369,6 +372,9 @@ gda_tree_node_get_property (GObject *object,
 			g_value_set_string (value, cvalue ? g_value_get_string (cvalue): NULL);
 			break;
 		}
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}	
 }
diff --git a/libgda/gda-tree.c b/libgda/gda-tree.c
index 9234450..f9cd3c0 100644
--- a/libgda/gda-tree.c
+++ b/libgda/gda-tree.c
@@ -263,13 +263,16 @@ static void
 gda_tree_set_property (GObject *object,
 			 guint param_id,
 			 G_GNUC_UNUSED const GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaTree *tree;
 
         tree = GDA_TREE (object);
         if (tree->priv) {
                 switch (param_id) {
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}	
 	}
 }
@@ -278,7 +281,7 @@ static void
 gda_tree_get_property (GObject *object,
 			 guint param_id,
 			 GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	GdaTree *tree;
 	
@@ -297,6 +300,9 @@ gda_tree_get_property (GObject *object,
 			g_value_set_boolean (value, is_list);
 			break;
 		}
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}	
 }
diff --git a/libgda/sqlite/virtual/gda-vconnection-data-model.c b/libgda/sqlite/virtual/gda-vconnection-data-model.c
index 66f495a..4e90571 100644
--- a/libgda/sqlite/virtual/gda-vconnection-data-model.c
+++ b/libgda/sqlite/virtual/gda-vconnection-data-model.c
@@ -132,7 +132,7 @@ static void
 gda_vconnection_data_model_set_property (GObject *object,
 					 guint param_id,
 					 G_GNUC_UNUSED const GValue *value,
-					 G_GNUC_UNUSED GParamSpec *pspec)
+					 GParamSpec *pspec)
 {
         GdaVconnectionDataModel *cnc;
 
@@ -140,6 +140,7 @@ gda_vconnection_data_model_set_property (GObject *object,
         if (cnc->priv) {
                 switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -149,7 +150,7 @@ static void
 gda_vconnection_data_model_get_property (GObject *object,
 					 guint param_id,
 					 G_GNUC_UNUSED GValue *value,
-					 G_GNUC_UNUSED GParamSpec *pspec)
+					 GParamSpec *pspec)
 {
         GdaVconnectionDataModel *cnc;
 
@@ -157,6 +158,7 @@ gda_vconnection_data_model_get_property (GObject *object,
         if (cnc->priv) {
 		switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda/sqlite/virtual/gda-vconnection-hub.c b/libgda/sqlite/virtual/gda-vconnection-hub.c
index 741ef0a..a242e07 100644
--- a/libgda/sqlite/virtual/gda-vconnection-hub.c
+++ b/libgda/sqlite/virtual/gda-vconnection-hub.c
@@ -148,7 +148,7 @@ static void
 gda_vconnection_hub_set_property (GObject *object,
 					 guint param_id,
 					 G_GNUC_UNUSED const GValue *value,
-					 G_GNUC_UNUSED GParamSpec *pspec)
+					 GParamSpec *pspec)
 {
         GdaVconnectionHub *cnc;
 
@@ -156,6 +156,7 @@ gda_vconnection_hub_set_property (GObject *object,
         if (cnc->priv) {
                 switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -165,7 +166,7 @@ static void
 gda_vconnection_hub_get_property (GObject *object,
 					 guint param_id,
 					 G_GNUC_UNUSED GValue *value,
-					 G_GNUC_UNUSED GParamSpec *pspec)
+					 GParamSpec *pspec)
 {
         GdaVconnectionHub *cnc;
 
@@ -173,6 +174,7 @@ gda_vconnection_hub_get_property (GObject *object,
         if (cnc->priv) {
 		switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda/sqlite/virtual/gda-virtual-provider.c b/libgda/sqlite/virtual/gda-virtual-provider.c
index 991373e..f70ec59 100644
--- a/libgda/sqlite/virtual/gda-virtual-provider.c
+++ b/libgda/sqlite/virtual/gda-virtual-provider.c
@@ -138,7 +138,7 @@ static void
 gda_virtual_provider_set_property (GObject *object,
 				   guint param_id,
 				   G_GNUC_UNUSED const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         GdaVirtualProvider *prov;
 
@@ -146,6 +146,7 @@ gda_virtual_provider_set_property (GObject *object,
         if (prov->priv) {
                 switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -155,7 +156,7 @@ static void
 gda_virtual_provider_get_property (GObject *object,
 				 guint param_id,
 				 G_GNUC_UNUSED GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
         GdaVirtualProvider *prov;
 
@@ -163,6 +164,7 @@ gda_virtual_provider_get_property (GObject *object,
         if (prov->priv) {
 		switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda/sqlite/virtual/gda-vprovider-data-model.c b/libgda/sqlite/virtual/gda-vprovider-data-model.c
index aca2551..137abe9 100644
--- a/libgda/sqlite/virtual/gda-vprovider-data-model.c
+++ b/libgda/sqlite/virtual/gda-vprovider-data-model.c
@@ -150,7 +150,7 @@ static void
 gda_vprovider_data_model_set_property (GObject *object,
 				       guint param_id,
 				       G_GNUC_UNUSED const GValue *value,
-				       G_GNUC_UNUSED GParamSpec *pspec)
+				       GParamSpec *pspec)
 {
         GdaVproviderDataModel *prov;
 
@@ -158,6 +158,7 @@ gda_vprovider_data_model_set_property (GObject *object,
         if (prov->priv) {
                 switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -167,7 +168,7 @@ static void
 gda_vprovider_data_model_get_property (GObject *object,
 				       guint param_id,
 				       G_GNUC_UNUSED GValue *value,
-				       G_GNUC_UNUSED GParamSpec *pspec)
+				       GParamSpec *pspec)
 {
         GdaVproviderDataModel *prov;
 
@@ -175,6 +176,7 @@ gda_vprovider_data_model_get_property (GObject *object,
         if (prov->priv) {
 		switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda/sqlite/virtual/gda-vprovider-hub.c b/libgda/sqlite/virtual/gda-vprovider-hub.c
index fe68343..2a4190b 100644
--- a/libgda/sqlite/virtual/gda-vprovider-hub.c
+++ b/libgda/sqlite/virtual/gda-vprovider-hub.c
@@ -133,7 +133,7 @@ static void
 gda_vprovider_hub_set_property (GObject *object,
 				       guint param_id,
 				       G_GNUC_UNUSED const GValue *value,
-				       G_GNUC_UNUSED GParamSpec *pspec)
+				       GParamSpec *pspec)
 {
         GdaVproviderHub *prov;
 
@@ -141,6 +141,7 @@ gda_vprovider_hub_set_property (GObject *object,
         if (prov->priv) {
                 switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
                 }
         }
@@ -150,7 +151,7 @@ static void
 gda_vprovider_hub_get_property (GObject *object,
 				       guint param_id,
 				       G_GNUC_UNUSED GValue *value,
-				       G_GNUC_UNUSED GParamSpec *pspec)
+				       GParamSpec *pspec)
 {
         GdaVproviderHub *prov;
 
@@ -158,6 +159,7 @@ gda_vprovider_hub_get_property (GObject *object,
         if (prov->priv) {
 		switch (param_id) {
 		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 			break;
 		}
         }
diff --git a/libgda/thread-wrapper/gda-thread-wrapper.c b/libgda/thread-wrapper/gda-thread-wrapper.c
index c183e8a..4c9b7c4 100644
--- a/libgda/thread-wrapper/gda-thread-wrapper.c
+++ b/libgda/thread-wrapper/gda-thread-wrapper.c
@@ -458,14 +458,17 @@ static void
 gda_thread_wrapper_set_property (GObject *object,
 			       guint param_id,
 			       G_GNUC_UNUSED const GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdaThreadWrapper *wrapper;
 
         wrapper = GDA_THREAD_WRAPPER (object);
         if (wrapper->priv) {
                 switch (param_id) {
-		}	
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
+		}
 	}
 }
 
@@ -473,15 +476,18 @@ static void
 gda_thread_wrapper_get_property (GObject *object,
 			       guint param_id,
 			       G_GNUC_UNUSED GValue *value,
-			       G_GNUC_UNUSED GParamSpec *pspec)
+			       GParamSpec *pspec)
 {
 	GdaThreadWrapper *wrapper;
 	
 	wrapper = GDA_THREAD_WRAPPER (object);
 	if (wrapper->priv) {
 		switch (param_id) {
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
-	}	
+	}
 }
 
 /**
diff --git a/providers/postgres/gda-postgres-recordset.c b/providers/postgres/gda-postgres-recordset.c
index f5f026c..17560be 100644
--- a/providers/postgres/gda-postgres-recordset.c
+++ b/providers/postgres/gda-postgres-recordset.c
@@ -179,7 +179,7 @@ static void
 gda_postgres_recordset_set_property (GObject *object,
 				     guint param_id,
 				     const GValue *value,
-				     G_GNUC_UNUSED GParamSpec *pspec)
+				     GParamSpec *pspec)
 {
         GdaPostgresRecordset *model = (GdaPostgresRecordset *) object;
         if (model->priv) {
@@ -187,8 +187,9 @@ gda_postgres_recordset_set_property (GObject *object,
                 case PROP_CHUNCK_SIZE:
                         model->priv->chunk_size = g_value_get_int (value);
                         break;
-                default:
-                        break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -197,7 +198,7 @@ static void
 gda_postgres_recordset_get_property (GObject *object,
 				     guint param_id,
 				     GValue *value,
-				     G_GNUC_UNUSED GParamSpec *pspec)
+				     GParamSpec *pspec)
 {
         GdaPostgresRecordset *model = (GdaPostgresRecordset *) object;
         if (model->priv) {
@@ -208,8 +209,9 @@ gda_postgres_recordset_get_property (GObject *object,
                 case PROP_CHUNCKS_READ:
                         g_value_set_int (value, model->priv->chunks_read);
                         break;
-                default:
-                        break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/tests/gda-ddl-creator.c b/tests/gda-ddl-creator.c
index 30d6ba8..26b9094 100644
--- a/tests/gda-ddl-creator.c
+++ b/tests/gda-ddl-creator.c
@@ -267,7 +267,7 @@ static void
 gda_ddl_creator_set_property (GObject *object,
 			      guint param_id,
 			      const GValue *value,
-			      G_GNUC_UNUSED GParamSpec *pspec)
+			      GParamSpec *pspec)
 {
 	GdaDDLCreator *creator;
 	
@@ -312,6 +312,9 @@ gda_ddl_creator_set_property (GObject *object,
 								  FALSE, FALSE);
 			}
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -320,7 +323,7 @@ static void
 gda_ddl_creator_get_property (GObject *object,
 			     guint param_id,
 			     GValue *value,
-			     G_GNUC_UNUSED GParamSpec *pspec)
+			     GParamSpec *pspec)
 {
 	GdaDDLCreator *creator;
 	creator = GDA_DDL_CREATOR (object);
@@ -342,6 +345,9 @@ gda_ddl_creator_get_property (GObject *object,
 			else
 				g_value_set_string (value, NULL);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/tools/browser/browser-connection.c b/tools/browser/browser-connection.c
index 6bdb554..e1c7373 100644
--- a/tools/browser/browser-connection.c
+++ b/tools/browser/browser-connection.c
@@ -364,7 +364,7 @@ static void
 browser_connection_set_property (GObject *object,
 				 guint param_id,
 				 const GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
         BrowserConnection *bcnc;
 
@@ -452,6 +452,9 @@ browser_connection_set_property (GObject *object,
 								(GdaThreadWrapperCallback) meta_changed_cb,
 								bcnc);
                         break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -462,7 +465,7 @@ static void
 browser_connection_get_property (GObject *object,
 				 guint param_id,
 				 GValue *value,
-				 G_GNUC_UNUSED GParamSpec *pspec)
+				 GParamSpec *pspec)
 {
         BrowserConnection *bcnc;
 
@@ -472,6 +475,9 @@ browser_connection_get_property (GObject *object,
                 case PROP_GDA_CNC:
                         g_value_set_object (value, bcnc->priv->cnc);
                         break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/tools/browser/browser-virtual-connection.c b/tools/browser/browser-virtual-connection.c
index 8236df8..23abf59 100644
--- a/tools/browser/browser-virtual-connection.c
+++ b/tools/browser/browser-virtual-connection.c
@@ -183,7 +183,7 @@ static void
 browser_virtual_connection_set_property (GObject *object,
 					 guint param_id,
 					 const GValue *value,
-					 G_GNUC_UNUSED GParamSpec *pspec)
+					 GParamSpec *pspec)
 {
         BrowserVirtualConnection *bcnc;
 
@@ -205,6 +205,9 @@ browser_virtual_connection_set_property (GObject *object,
 			}
 
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -213,7 +216,7 @@ static void
 browser_virtual_connection_get_property (GObject *object,
 					 guint param_id,
 					 GValue *value,
-					 G_GNUC_UNUSED GParamSpec *pspec)
+					 GParamSpec *pspec)
 {
         BrowserVirtualConnection *bcnc;
 
@@ -223,6 +226,9 @@ browser_virtual_connection_get_property (GObject *object,
                 case PROP_SPECS:
 			g_value_set_pointer (value, bcnc->priv->specs);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/tools/browser/canvas/browser-canvas-column.c b/tools/browser/canvas/browser-canvas-column.c
index 1160d70..c2dd73b 100644
--- a/tools/browser/canvas/browser-canvas-column.c
+++ b/tools/browser/canvas/browser-canvas-column.c
@@ -144,7 +144,7 @@ static void
 browser_canvas_column_set_property (GObject *object,
 				    guint param_id,
 				    const GValue *value,
-				    G_GNUC_UNUSED GParamSpec *pspec)
+				    GParamSpec *pspec)
 {
 	BrowserCanvasColumn *cf = NULL;
 	GdaMetaTableColumn* column = NULL;
@@ -181,6 +181,9 @@ browser_canvas_column_set_property (GObject *object,
 			g_object_set (object, "tip-text", NULL, NULL);
 		g_string_free (string, TRUE);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -188,7 +191,7 @@ static void
 browser_canvas_column_get_property (GObject *object,
 				    guint param_id,
 				    GValue *value,
-				    G_GNUC_UNUSED GParamSpec *pspec)
+				    GParamSpec *pspec)
 {
 	BrowserCanvasColumn *cf;
 
@@ -201,6 +204,9 @@ browser_canvas_column_get_property (GObject *object,
 	case PROP_COLUMN:
 		g_value_set_pointer (value, cf->priv->column);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/tools/browser/canvas/browser-canvas-db-relations.c b/tools/browser/canvas/browser-canvas-db-relations.c
index fcd577b..c86ad11 100644
--- a/tools/browser/canvas/browser-canvas-db-relations.c
+++ b/tools/browser/canvas/browser-canvas-db-relations.c
@@ -156,7 +156,7 @@ static void
 browser_canvas_db_relations_set_property (GObject *object,
 					  guint param_id,
 					  const GValue *value,
-					  G_GNUC_UNUSED GParamSpec *pspec)
+					  GParamSpec *pspec)
 {
 	BrowserCanvasDbRelations *canvas;
 
@@ -178,6 +178,9 @@ browser_canvas_db_relations_set_property (GObject *object,
 				objects_cloud_set_meta_struct (canvas->priv->cloud, canvas->priv->mstruct);
 			break;
 		}
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
@@ -186,7 +189,7 @@ static void
 browser_canvas_db_relations_get_property (GObject *object,
 					  guint param_id,
 					  GValue *value,
-					  G_GNUC_UNUSED GParamSpec *pspec)
+					  GParamSpec *pspec)
 {
 	BrowserCanvasDbRelations *canvas;
 
@@ -196,6 +199,9 @@ browser_canvas_db_relations_get_property (GObject *object,
 		case PROP_META_STRUCT:
 			g_value_set_object (value, canvas->priv->mstruct);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 		}
 	}
 }
diff --git a/tools/browser/canvas/browser-canvas-fkey.c b/tools/browser/canvas/browser-canvas-fkey.c
index cd3621f..ec64890 100644
--- a/tools/browser/canvas/browser-canvas-fkey.c
+++ b/tools/browser/canvas/browser-canvas-fkey.c
@@ -199,7 +199,7 @@ static void
 browser_canvas_fkey_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	BrowserCanvasFkey *cc;
 
@@ -216,6 +216,9 @@ browser_canvas_fkey_set_property (GObject *object,
 			create_items (cc);
 		}
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -223,7 +226,7 @@ static void
 browser_canvas_fkey_get_property (GObject *object,
 				  guint param_id,
 				  GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	BrowserCanvasFkey *cc;
 
@@ -234,7 +237,7 @@ browser_canvas_fkey_get_property (GObject *object,
 		g_value_set_object (value, cc->priv->mstruct);
 		break;
 	default:
-		g_warning ("No such property!");
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 		break;
 	}
 }
diff --git a/tools/browser/canvas/browser-canvas-item.c b/tools/browser/canvas/browser-canvas-item.c
index 9152931..04d0cb6 100644
--- a/tools/browser/canvas/browser-canvas-item.c
+++ b/tools/browser/canvas/browser-canvas-item.c
@@ -194,7 +194,7 @@ static void
 browser_canvas_item_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	BrowserCanvasItem *citem = NULL;
 	const gchar *str = NULL;
@@ -217,6 +217,9 @@ browser_canvas_item_set_property (GObject *object,
 		if (str)
 			citem->priv->tooltip_text = g_strdup (str);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/tools/browser/canvas/browser-canvas-table.c b/tools/browser/canvas/browser-canvas-table.c
index a27e16e..529ad5d 100644
--- a/tools/browser/canvas/browser-canvas-table.c
+++ b/tools/browser/canvas/browser-canvas-table.c
@@ -200,7 +200,7 @@ static void
 browser_canvas_table_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
 	BrowserCanvasTable *ce = NULL;
 
@@ -230,6 +230,9 @@ browser_canvas_table_set_property (GObject *object,
 	case PROP_MENU_FUNC:
 		ce->priv->popup_menu_func = (GtkWidget *(*) (BrowserCanvasTable *ce)) g_value_get_pointer (value);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -237,7 +240,7 @@ static void
 browser_canvas_table_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
 	BrowserCanvasTable *ce = NULL;
 
@@ -250,6 +253,9 @@ browser_canvas_table_get_property (GObject *object,
 	case PROP_TABLE:
 		g_value_set_pointer (value, ce->priv->table);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/tools/browser/canvas/browser-canvas-text.c b/tools/browser/canvas/browser-canvas-text.c
index f447548..8bd35dc 100644
--- a/tools/browser/canvas/browser-canvas-text.c
+++ b/tools/browser/canvas/browser-canvas-text.c
@@ -226,7 +226,7 @@ static void
 browser_canvas_text_set_property (GObject *object,
 				  guint param_id,
 				  const GValue *value,
-				  G_GNUC_UNUSED GParamSpec *pspec)
+				  GParamSpec *pspec)
 {
 	BrowserCanvasText *ct = NULL;
 	const gchar *cstr = NULL;
@@ -291,6 +291,9 @@ browser_canvas_text_set_property (GObject *object,
 		ct->priv->bold = bool;
 		adjust_text_pango_attributes (ct);
 		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -298,7 +301,7 @@ static void
 browser_canvas_text_get_property    (GObject *object,
 				    guint param_id,
 				    G_GNUC_UNUSED GValue *value,
-				    G_GNUC_UNUSED GParamSpec *pspec)
+				    GParamSpec *pspec)
 {
 	BrowserCanvasText *ct;
 
@@ -306,7 +309,7 @@ browser_canvas_text_get_property    (GObject *object,
 
 	switch (param_id) {
 	default:
-		g_warning ("No such property!");
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
 		break;
 	}
 }
diff --git a/tools/browser/canvas/browser-canvas.c b/tools/browser/canvas/browser-canvas.c
index 197cc74..fbd0353 100644
--- a/tools/browser/canvas/browser-canvas.c
+++ b/tools/browser/canvas/browser-canvas.c
@@ -700,13 +700,16 @@ static void
 browser_canvas_set_property (GObject *object,
 			   guint param_id,
 			   G_GNUC_UNUSED const GValue *value,
-			   G_GNUC_UNUSED GParamSpec *pspec)
+			   GParamSpec *pspec)
 {
 	BrowserCanvas *canvas;
 	
 	canvas = BROWSER_CANVAS (object);
 
 	switch (param_id) {
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -714,13 +717,16 @@ static void
 browser_canvas_get_property (GObject *object,
 			   guint param_id,
 			   G_GNUC_UNUSED GValue *value,
-			   G_GNUC_UNUSED GParamSpec *pspec)
+			   GParamSpec *pspec)
 {
 	BrowserCanvas *canvas;
 	
 	canvas = BROWSER_CANVAS (object);
 
 	switch (param_id) {
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
diff --git a/tools/browser/mgr-favorites.c b/tools/browser/mgr-favorites.c
index 5171db6..5ade778 100644
--- a/tools/browser/mgr-favorites.c
+++ b/tools/browser/mgr-favorites.c
@@ -142,7 +142,7 @@ static void
 mgr_favorites_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         MgrFavorites *mgr;
 
@@ -155,6 +155,9 @@ mgr_favorites_set_property (GObject *object,
 				g_object_ref (mgr->priv->bcnc);
 			
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -163,7 +166,7 @@ static void
 mgr_favorites_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         MgrFavorites *mgr;
 
@@ -173,6 +176,9 @@ mgr_favorites_get_property (GObject *object,
 		case PROP_BROWSER_CNC:
 			g_value_set_object (value, mgr->priv->bcnc);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/tools/browser/schema-browser/mgr-columns.c b/tools/browser/schema-browser/mgr-columns.c
index 3617868..81e185a 100644
--- a/tools/browser/schema-browser/mgr-columns.c
+++ b/tools/browser/schema-browser/mgr-columns.c
@@ -152,7 +152,7 @@ static void
 mgr_columns_set_property (GObject *object,
 				   guint param_id,
 				   const GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         MgrColumns *mgr;
 
@@ -165,6 +165,9 @@ mgr_columns_set_property (GObject *object,
 				g_object_ref (mgr->priv->bcnc);
 			
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
@@ -173,7 +176,7 @@ static void
 mgr_columns_get_property (GObject *object,
 				   guint param_id,
 				   GValue *value,
-				   G_GNUC_UNUSED GParamSpec *pspec)
+				   GParamSpec *pspec)
 {
         MgrColumns *mgr;
 
@@ -183,6 +186,9 @@ mgr_columns_get_property (GObject *object,
 		case PROP_BROWSER_CNC:
 			g_value_set_object (value, mgr->priv->bcnc);
 			break;
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
                 }
         }
 }
diff --git a/tools/browser/schema-browser/relations-diagram.c b/tools/browser/schema-browser/relations-diagram.c
index 33e8d28..8af7718 100644
--- a/tools/browser/schema-browser/relations-diagram.c
+++ b/tools/browser/schema-browser/relations-diagram.c
@@ -169,11 +169,14 @@ static void
 relations_diagram_set_property (GObject *object,
 				guint param_id,
 				G_GNUC_UNUSED const GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
 	RelationsDiagram *diagram;
 	diagram = RELATIONS_DIAGRAM (object);
 	switch (param_id) {
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 	}
 }
 
@@ -181,11 +184,14 @@ static void
 relations_diagram_get_property (GObject *object,
 				guint param_id,
 				G_GNUC_UNUSED GValue *value,
-				G_GNUC_UNUSED GParamSpec *pspec)
+				GParamSpec *pspec)
 {
 	RelationsDiagram *diagram;
 	diagram = RELATIONS_DIAGRAM (object);
 	switch (param_id) {
+		default:
+			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+			break;
 	}
 }
 
diff --git a/tools/browser/schema-browser/table-info.c b/tools/browser/schema-browser/table-info.c
index f03c34c..8665131 100644
--- a/tools/browser/schema-browser/table-info.c
+++ b/tools/browser/schema-browser/table-info.c
@@ -179,11 +179,14 @@ static void
 table_info_set_property (GObject *object,
 			 guint param_id,
 			 G_GNUC_UNUSED const GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	TableInfo *tinfo;
 	tinfo = TABLE_INFO (object);
 	switch (param_id) {
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 
@@ -191,11 +194,14 @@ static void
 table_info_get_property (GObject *object,
 			 guint param_id,
 			 G_GNUC_UNUSED GValue *value,
-			 G_GNUC_UNUSED GParamSpec *pspec)
+			 GParamSpec *pspec)
 {
 	TableInfo *tinfo;
 	tinfo = TABLE_INFO (object);
 	switch (param_id) {
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+		break;
 	}
 }
 



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