[libgda/gtk3] Merged master
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/gtk3] Merged master
- Date: Thu, 7 Oct 2010 20:14:31 +0000 (UTC)
commit e08833b6e0a5bd6766b1e46c73b7abaa475cb6f5
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Oct 6 21:33:31 2010 +0200
Merged master
Makefile.w32 | 140 --
Makefile.w32.cross | 39 -
configure.ac | 1074 +-------------
control-center/cc-gray-bar.c | 5 +-
control-center/dsn-config.c | 6 +-
control-center/dsn-properties-dialog.c | 2 +-
control-center/gdaui-dsn-assistant.c | 11 +-
control-center/gdaui-dsn-editor.c | 7 +-
control-center/gdaui-login-dialog.c | 11 +-
control-center/main.c | 24 +-
doc/C/libgda-5.0-docs.sgml | 20 +-
.../DocBook/gda-report-docbook-document.c | 10 +-
libgda-report/RML/gda-report-rml-document.c | 13 +-
libgda-report/engine/gda-report-engine.c | 15 +-
libgda-report/gda-report-document.c | 9 +-
libgda-ui/data-entries/common-bin.c | 2 +-
.../data-entries/gdaui-data-cell-renderer-bin.c | 5 +-
.../gdaui-data-cell-renderer-boolean.c | 1 +
.../data-entries/gdaui-data-cell-renderer-combo.c | 15 +-
.../data-entries/gdaui-data-cell-renderer-info.c | 19 +-
.../gdaui-data-cell-renderer-textual.c | 17 +-
libgda-ui/data-entries/gdaui-entry-bin.c | 8 +-
libgda-ui/data-entries/gdaui-entry-boolean.c | 7 +-
libgda-ui/data-entries/gdaui-entry-combo.c | 19 +-
libgda-ui/data-entries/gdaui-entry-common-time.c | 27 +-
libgda-ui/data-entries/gdaui-entry-date.c | 5 +-
libgda-ui/data-entries/gdaui-entry-none.c | 8 +-
libgda-ui/data-entries/gdaui-entry-number.c | 13 +-
libgda-ui/data-entries/gdaui-entry-shell.c | 7 +-
libgda-ui/data-entries/gdaui-entry-string.c | 13 +-
libgda-ui/data-entries/gdaui-entry-time.c | 5 +-
libgda-ui/data-entries/gdaui-entry-timestamp.c | 5 +-
libgda-ui/data-entries/gdaui-entry-wrapper.c | 11 +-
libgda-ui/data-entries/gdaui-entry.c | 8 +-
libgda-ui/data-entries/gdaui-formatted-entry.c | 5 +-
libgda-ui/data-entries/gdaui-numeric-entry.c | 1 +
.../plugins/gdaui-data-cell-renderer-password.c | 15 +-
.../plugins/gdaui-data-cell-renderer-pict.c | 11 +-
libgda-ui/data-entries/plugins/gdaui-entry-cidr.c | 15 +-
.../data-entries/plugins/gdaui-entry-filesel.c | 9 +-
.../data-entries/plugins/gdaui-entry-password.c | 8 +-
libgda-ui/data-entries/plugins/gdaui-entry-pict.c | 14 +-
libgda-ui/data-entries/plugins/gdaui-entry-text.c | 7 +-
libgda-ui/data-entries/plugins/libmain.c | 2 +-
libgda-ui/data-entries/widget-embedder.c | 14 +-
libgda-ui/demos/cloud.c | 4 +-
libgda-ui/demos/combo.c | 4 +-
libgda-ui/demos/ddl_queries.c | 10 +-
libgda-ui/demos/linked_model_param.c | 2 +-
libgda-ui/demos/login.c | 10 +-
libgda-ui/demos/main.c | 22 +-
libgda-ui/demos/provider_sel.c | 2 +-
libgda-ui/demos/tree.c | 2 +-
libgda-ui/gdaui-basic-form.c | 21 +-
libgda-ui/gdaui-cloud.c | 12 +-
libgda-ui/gdaui-combo.c | 13 +-
libgda-ui/gdaui-data-entry.c | 9 +-
libgda-ui/gdaui-data-filter.c | 7 +-
libgda-ui/gdaui-data-proxy-info.c | 16 +-
libgda-ui/gdaui-data-proxy.c | 5 +-
libgda-ui/gdaui-data-selector.c | 5 +-
libgda-ui/gdaui-data-store.c | 17 +-
libgda-ui/gdaui-form.c | 5 +-
libgda-ui/gdaui-grid.c | 3 +-
libgda-ui/gdaui-init.c | 19 +-
libgda-ui/gdaui-login.c | 13 +-
libgda-ui/gdaui-provider-selector.c | 5 +-
libgda-ui/gdaui-raw-form.c | 45 +-
libgda-ui/gdaui-raw-grid.c | 70 +-
libgda-ui/gdaui-server-operation.c | 6 +-
libgda-ui/gdaui-set.c | 7 +-
libgda-ui/gdaui-tree-store.c | 15 +-
libgda-ui/internal/gdaui-dsn-selector.c | 9 +-
libgda-ui/internal/gdaui-provider-auth-editor.c | 12 +-
libgda-ui/internal/gdaui-provider-spec-editor.c | 12 +-
libgda-ui/internal/popup-container.c | 9 +-
libgda-ui/internal/utility.c | 2 +-
libgda-xslt/sql_backend.c | 16 +-
libgda-xslt/sql_exslt_internal.c | 4 +-
libgda-xslt/sqlexslt.c | 2 +-
libgda/binreloc/binreloc.c | 7 +-
libgda/dir-blob-op.c | 7 +-
libgda/gda-batch.c | 9 +-
libgda/gda-blob-op.c | 5 +-
libgda/gda-column.c | 9 +-
libgda/gda-config.c | 15 +-
libgda/gda-connection-event.c | 5 +-
libgda/gda-connection.c | 46 +-
libgda/gda-data-access-wrapper.c | 17 +-
libgda/gda-data-comparator.c | 15 +-
libgda/gda-data-handler.c | 5 +-
libgda/gda-data-meta-wrapper.c | 9 +-
libgda/gda-data-model-array.c | 24 +-
libgda/gda-data-model-bdb.c | 14 +-
libgda/gda-data-model-dir.c | 24 +-
libgda/gda-data-model-dsn-list.c | 17 +-
libgda/gda-data-model-import.c | 15 +-
libgda/gda-data-model-iter.c | 9 +-
libgda/gda-data-model.c | 15 +-
libgda/gda-data-proxy.c | 57 +-
libgda/gda-data-select.c | 26 +-
libgda/gda-holder.c | 20 +-
libgda/gda-lockable.c | 5 +-
libgda/gda-meta-store.c | 26 +-
libgda/gda-meta-struct.c | 16 +-
libgda/gda-row.c | 13 +-
libgda/gda-server-operation.c | 13 +-
libgda/gda-server-provider-extra.c | 8 +-
libgda/gda-server-provider.c | 43 +-
libgda/gda-set.c | 20 +-
libgda/gda-sql-builder.c | 9 +-
libgda/gda-statement.c | 3 +-
libgda/gda-transaction-status.c | 5 +-
libgda/gda-tree-manager.c | 9 +-
libgda/gda-tree-mgr-columns.c | 11 +-
libgda/gda-tree-mgr-label.c | 11 +-
libgda/gda-tree-mgr-schemas.c | 14 +-
libgda/gda-tree-mgr-select.c | 14 +-
libgda/gda-tree-mgr-tables.c | 14 +-
libgda/gda-tree-node.c | 9 +-
libgda/gda-tree.c | 15 +-
libgda/gda-util.c | 16 +-
libgda/gda-value.c | 14 +-
libgda/gda-xa-transaction.c | 5 +-
libgda/handlers/gda-handler-bin.c | 3 +-
libgda/handlers/gda-handler-boolean.c | 9 +-
libgda/handlers/gda-handler-numerical.c | 3 +-
libgda/handlers/gda-handler-string.c | 9 +-
libgda/handlers/gda-handler-time.c | 7 +-
libgda/handlers/gda-handler-type.c | 7 +-
libgda/providers-support/gda-pstmt.c | 5 +-
libgda/sql-parser/gda-sql-parser.c | 3 +-
libgda/sql-parser/gda-statement-struct-compound.c | 6 +-
libgda/sql-parser/gda-statement-struct-delete.c | 6 +-
libgda/sql-parser/gda-statement-struct-insert.c | 16 +-
libgda/sql-parser/gda-statement-struct-select.c | 10 +-
libgda/sql-parser/gda-statement-struct-trans.c | 29 +
libgda/sql-parser/gda-statement-struct-unknown.c | 4 +
libgda/sql-parser/gda-statement-struct-update.c | 6 +-
libgda/sql-parser/gda-statement-struct.c | 8 +-
libgda/sqlite/Makefile.am | 4 +-
libgda/sqlite/gda-sqlite-blob-op.c | 5 +-
libgda/sqlite/gda-sqlite-ddl.c | 14 +-
libgda/sqlite/gda-sqlite-handler-bin.c | 3 +-
libgda/sqlite/gda-sqlite-handler-boolean.c | 9 +-
libgda/sqlite/gda-sqlite-meta.c | 242 ++--
libgda/sqlite/gda-sqlite-provider.c | 41 +-
libgda/sqlite/gda-sqlite-pstmt.c | 5 +-
libgda/sqlite/gda-sqlite-recordset.c | 7 +-
libgda/sqlite/gda-sqlite-util.c | 2 +-
libgda/sqlite/virtual/gda-vconnection-data-model.c | 13 +-
libgda/sqlite/virtual/gda-vconnection-hub.c | 15 +-
libgda/sqlite/virtual/gda-virtual-connection.c | 5 +-
libgda/sqlite/virtual/gda-virtual-provider.c | 13 +-
libgda/sqlite/virtual/gda-vprovider-data-model.c | 31 +-
libgda/sqlite/virtual/gda-vprovider-hub.c | 15 +-
libgda/thread-wrapper/gda-thread-blob-op.c | 11 +-
libgda/thread-wrapper/gda-thread-meta.c | 94 +-
libgda/thread-wrapper/gda-thread-provider.c | 68 +-
libgda/thread-wrapper/gda-thread-recordset.c | 7 +-
libgda/thread-wrapper/gda-thread-wrapper.c | 41 +-
m4/.gitignore | 8 +
m4/bdb.m4 | 269 ++++
m4/java.m4 | 340 ++++
m4/mdbtools.m4 | 36 +-
m4/mysql.m4 | 191 +++
m4/oracle.m4 | 156 ++
m4/postgresql.m4 | 191 +++
po/POTFILES.skip | 30 -
po/cs.po | 522 ++++----
po/id.po | 1618 +++++++++++---------
providers/Makefile.am | 38 +-
providers/bdb/gda-bdb-provider.c | 14 +-
providers/bdb/gda-bdb-test.c | 5 +-
providers/bdb/libmain.c | 4 +-
providers/freetds/Makefile.am | 44 -
providers/freetds/config.sample | 7 -
providers/freetds/freetds_specs_dsn.xml.in | 17 -
providers/freetds/gda-freetds-defs.h | 43 -
providers/freetds/gda-freetds-message.c | 111 --
providers/freetds/gda-freetds-message.h | 57 -
providers/freetds/gda-freetds-provider.c | 1284 ----------------
providers/freetds/gda-freetds-provider.h | 92 --
providers/freetds/gda-freetds-recordset.c | 419 -----
providers/freetds/gda-freetds-recordset.h | 75 -
providers/freetds/gda-freetds-types.c | 359 -----
providers/freetds/gda-freetds-types.h | 45 -
providers/freetds/gda-freetds.h | 52 -
providers/freetds/gda-tds-schemas.h | 211 ---
providers/freetds/libgda-freetds-5.0.pc.in | 9 -
providers/freetds/libmain.c | 72 -
providers/freetds/utils.c | 97 --
providers/ibmdb2/Makefile.am | 42 -
providers/ibmdb2/gda-ibmdb2-provider.c | 1204 ---------------
providers/ibmdb2/gda-ibmdb2-provider.h | 74 -
providers/ibmdb2/gda-ibmdb2-recordset.c | 390 -----
providers/ibmdb2/gda-ibmdb2-recordset.h | 89 --
providers/ibmdb2/gda-ibmdb2-types.c | 203 ---
providers/ibmdb2/gda-ibmdb2-types.h | 46 -
providers/ibmdb2/gda-ibmdb2.h | 49 -
providers/ibmdb2/ibmdb2_specs_dsn.xml.in | 7 -
providers/ibmdb2/libgda-ibmdb2-5.0.pc.in | 9 -
providers/ibmdb2/libmain.c | 72 -
providers/ibmdb2/utils.c | 83 -
providers/jdbc/GdaInputStream.c | 4 +-
providers/jdbc/GdaJBlobOp.c | 2 +-
providers/jdbc/GdaJColumnInfos.c | 2 +-
providers/jdbc/GdaJConnection.c | 2 +-
providers/jdbc/GdaJMeta.c | 2 +-
providers/jdbc/GdaJPStmt.c | 2 +-
providers/jdbc/GdaJProvider.c | 2 +-
providers/jdbc/GdaJResultSet.c | 2 +-
providers/jdbc/GdaJResultSetInfos.c | 2 +-
providers/jdbc/GdaJValue.c | 67 +-
providers/jdbc/gda-jdbc-blob-op.c | 5 +-
providers/jdbc/gda-jdbc-meta.c | 267 ++--
providers/jdbc/gda-jdbc-provider.c | 43 +-
providers/jdbc/gda-jdbc-pstmt.c | 5 +-
providers/jdbc/gda-jdbc-recordset.c | 7 +-
providers/jdbc/gda-list-jdbc-providers.c | 2 +-
providers/jdbc/libmain.c | 8 +-
providers/ldap/Makefile.am | 38 -
providers/ldap/gda-ldap-provider.c | 762 ---------
providers/ldap/gda-ldap-provider.h | 60 -
providers/ldap/gda-ldap-recordset.c | 453 ------
providers/ldap/gda-ldap-recordset.h | 60 -
providers/ldap/gda-ldap.h | 55 -
providers/ldap/ldap_specs_dsn.xml.in | 10 -
providers/ldap/libgda-ldap-5.0.pc.in | 9 -
providers/ldap/libmain.c | 75 -
providers/ldap/utils.c | 120 --
providers/msql/Makefile.am | 38 -
providers/msql/gda-msql-provider.c | 603 --------
providers/msql/gda-msql-provider.h | 59 -
providers/msql/gda-msql-recordset.c | 400 -----
providers/msql/gda-msql-recordset.h | 69 -
providers/msql/gda-msql-utils.c | 92 --
providers/msql/gda-msql.h | 42 -
providers/msql/libgda-msql-5.0.pc.in | 9 -
providers/msql/libmain.c | 72 -
providers/msql/msql_specs_dsn.xml.in | 7 -
providers/odbc/Makefile.am | 37 -
providers/odbc/gda-odbc-provider.c | 1453 ------------------
providers/odbc/gda-odbc-provider.h | 75 -
providers/odbc/gda-odbc-recordset.c | 196 ---
providers/odbc/gda-odbc-recordset.h | 59 -
providers/odbc/gda-odbc.h | 50 -
providers/odbc/libgda-odbc-5.0.pc.in | 9 -
providers/odbc/libmain.c | 75 -
providers/odbc/odbc_specs_dsn.xml.in | 6 -
providers/odbc/utils.c | 182 ---
providers/postgres/gda-postgres-blob-op.c | 5 +-
providers/postgres/gda-postgres-ddl.c | 24 +-
providers/postgres/gda-postgres-handler-bin.c | 3 +-
providers/postgres/gda-postgres-provider.c | 33 +-
providers/postgres/gda-postgres-pstmt.c | 5 +-
providers/postgres/gda-postgres-recordset.c | 12 +-
providers/postgres/libmain.c | 4 +-
providers/reuseable/mysql/gda-mysql-meta.c | 338 ++--
providers/reuseable/mysql/gda-mysql-parser.c | 5 +-
providers/reuseable/mysql/gda-mysql-reuseable.c | 5 +-
providers/reuseable/postgres/gda-postgres-meta.c | 125 +-
providers/reuseable/postgres/gda-postgres-parser.c | 5 +-
.../reuseable/postgres/gda-postgres-reuseable.c | 2 +-
.../skel-implementation/capi/gda-capi-blob-op.c | 7 +-
providers/skel-implementation/capi/gda-capi-meta.c | 294 ++--
.../skel-implementation/capi/gda-capi-parser.c | 5 +-
.../skel-implementation/capi/gda-capi-provider.c | 55 +-
.../skel-implementation/capi/gda-capi-pstmt.c | 5 +-
.../skel-implementation/capi/gda-capi-recordset.c | 25 +-
providers/skel-implementation/capi/libmain.c | 4 +-
.../models/gda-models-provider.c | 15 +-
providers/skel-implementation/models/libmain.c | 4 +-
providers/sqlcipher/libmain.c | 4 +-
providers/sqlcipher/sqlcipher.patch | 47 +-
providers/sqlite/Makefile.am | 2 +-
providers/sqlite/libmain.c | 4 +-
providers/sybase/Makefile.am | 42 -
providers/sybase/gda-sybase-provider.c | 1326 ----------------
providers/sybase/gda-sybase-provider.h | 96 --
providers/sybase/gda-sybase-recordset.c | 585 -------
providers/sybase/gda-sybase-recordset.h | 89 --
providers/sybase/gda-sybase-schemas.h | 238 ---
providers/sybase/gda-sybase-types.c | 400 -----
providers/sybase/gda-sybase-types.h | 71 -
providers/sybase/gda-sybase.h | 73 -
providers/sybase/libgda-sybase-5.0.pc.in | 9 -
providers/sybase/libmain.c | 73 -
providers/sybase/main.c | 77 -
providers/sybase/sybase_specs_dsn.xml.in | 13 -
providers/sybase/utils.c | 562 -------
providers/web/gda-web-blob-op.c | 7 +-
providers/web/gda-web-meta.c | 94 +-
providers/web/gda-web-provider.c | 32 +-
providers/web/gda-web-pstmt.c | 5 +-
providers/web/gda-web-recordset.c | 5 +-
providers/web/libmain.c | 4 +-
providers/xbase/Makefile.am | 37 -
providers/xbase/gda-xbase-database.cpp | 106 --
providers/xbase/gda-xbase-database.h | 39 -
providers/xbase/gda-xbase-provider.c | 351 -----
providers/xbase/gda-xbase-provider.h | 53 -
providers/xbase/libgda-xbase-5.0.pc.in | 9 -
providers/xbase/libmain.c | 73 -
providers/xbase/xbase_specs_dsn.xml.in | 7 -
testing/gda-provider-status.c | 4 +-
testing/gda-test-blob.c | 2 +-
testing/gda-test-connection.c | 2 +-
testing/gdaui-test-data-entries.c | 50 +-
testing/gdaui-test-errors.c | 2 +-
testing/gdaui-test-widget-entry.c | 16 +-
testing/html.c | 8 +-
tests/data-model-errors.c | 13 +-
tests/gda-ddl-creator.c | 9 +-
tests/providers/.gitignore | 9 +-
tests/providers/Makefile.am | 83 -
tests/providers/check_freetds.c | 38 -
tests/providers/check_ibmdb2.c | 38 -
tests/providers/check_ldap.c | 38 -
tests/providers/check_msql.c | 38 -
tests/providers/check_odbc.c | 38 -
tests/providers/check_sybase.c | 38 -
tests/providers/check_xbase.c | 38 -
tests/test-cnc-utils.c | 3 +-
tools/browser/auth-dialog.c | 5 +-
tools/browser/browser-connection.c | 26 +-
tools/browser/browser-connections-list.c | 17 +-
tools/browser/browser-core.c | 3 +-
tools/browser/browser-favorites.c | 5 +-
tools/browser/browser-page.c | 5 +-
tools/browser/browser-perspective.c | 5 +-
tools/browser/browser-variable.c | 3 +-
tools/browser/browser-virtual-connection.c | 11 +-
tools/browser/browser-window.c | 50 +-
tools/browser/canvas-example.c | 12 +-
tools/browser/canvas/browser-canvas-column.c | 12 +-
tools/browser/canvas/browser-canvas-db-relations.c | 19 +-
tools/browser/canvas/browser-canvas-fkey.c | 25 +-
tools/browser/canvas/browser-canvas-item.c | 21 +-
tools/browser/canvas/browser-canvas-print.c | 9 +-
tools/browser/canvas/browser-canvas-table.c | 17 +-
tools/browser/canvas/browser-canvas-text.c | 19 +-
tools/browser/canvas/browser-canvas.c | 44 +-
tools/browser/common/gdaui-data-import.c | 3 +-
tools/browser/common/gdaui-entry-import.c | 7 +-
tools/browser/common/objects-cloud.c | 9 +-
tools/browser/common/ui-formgrid.c | 5 +-
tools/browser/connection-binding-properties.c | 12 +-
tools/browser/data-manager/data-console.c | 22 +-
.../browser/data-manager/data-favorite-selector.c | 30 +-
.../data-manager/data-manager-perspective.c | 21 +-
tools/browser/data-manager/data-source-editor.c | 7 +-
tools/browser/data-manager/data-source-manager.c | 15 +-
tools/browser/data-manager/data-source.c | 9 +-
tools/browser/data-manager/data-widget.c | 25 +-
tools/browser/data-manager/ui-spec-editor.c | 15 +-
tools/browser/data-manager/xml-spec-editor.c | 11 +-
.../browser/dummy-perspective/dummy-perspective.c | 11 +-
tools/browser/login-dialog.c | 5 +-
tools/browser/main.c | 2 +-
tools/browser/mgr-favorites.c | 9 +-
tools/browser/query-exec/query-console.c | 34 +-
tools/browser/query-exec/query-editor.c | 13 +-
tools/browser/query-exec/query-exec-perspective.c | 24 +-
tools/browser/query-exec/query-favorite-selector.c | 29 +-
tools/browser/query-exec/query-result.c | 10 +-
tools/browser/schema-browser/favorite-selector.c | 21 +-
tools/browser/schema-browser/mgr-columns.c | 9 +-
tools/browser/schema-browser/objects-index.c | 9 +-
tools/browser/schema-browser/relations-diagram.c | 21 +-
.../schema-browser/schema-browser-perspective.c | 15 +-
tools/browser/schema-browser/table-columns.c | 12 +-
tools/browser/schema-browser/table-info.c | 45 +-
tools/browser/schema-browser/table-preferences.c | 25 +-
tools/browser/schema-browser/table-relations.c | 7 +-
tools/browser/support.c | 4 +-
tools/command-exec.c | 23 +-
tools/dict-file-name.c | 2 +-
tools/gda-list-config.c | 2 +-
tools/gda-list-server-op.c | 2 +-
tools/gda-sql.c | 133 +-
tools/gda-threader.c | 3 +-
tools/information-schema-doc.c | 2 +-
tools/information-schema-types.c | 2 +-
tools/tools-input.c | 3 +-
tools/web-server.c | 36 +-
386 files changed, 5128 insertions(+), 19683 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9679612..413e2af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,9 +2,15 @@ m4_define(major, 4)
m4_define(minor, 99)
m4_define(micro, 0)
m4_define([gda_stable],
- m4_if(m4_eval(minor % 2), [0], [yes], [no]))
+ m4_if(m4_eval(minor % 2), [0], [yes], [no]))
+AC_CONFIG_MACRO_DIR([m4])
m4_include(m4/introspection.m4)
m4_include(m4/mdbtools.m4)
+m4_include(m4/bdb.m4)
+m4_include(m4/mysql.m4)
+m4_include(m4/postgresql.m4)
+m4_include(m4/oracle.m4)
+m4_include(m4/java.m4)
AC_INIT(GNU Data Access, major.minor.micro, gnome-db-list gnome org, libgda)
AC_PREREQ(2.59)
@@ -303,7 +309,6 @@ case "$host" in
*-cygwin*)
AC_MSG_RESULT([Win32 - cygwin])
NO_UNDEFINED='-no-undefined'
- SOPREFIX='cyg'
LIBTOOL_EXPORT_OPTIONS=$EXPORT_SYM_REGEX
LIBTOOL_PROV_EXPORT_OPTIONS=$EXPORT_PROV_SYM_REGEX
LIBTOOL_UI_EXPORT_OPTIONS=$EXPORT_UI_SYM_REGEX
@@ -315,11 +320,10 @@ case "$host" in
platform_win32=yes
AC_DEFINE(USING_MINGW)
NO_UNDEFINED='-no-undefined'
- SOPREFIX='lib'
LIBTOOL_EXPORT_OPTIONS=
LIBTOOL_PROV_EXPORT_OPTIONS=
LIBTOOL_UI_EXPORT_OPTIONS=
- linklibext=".dll.a"
+ linklibext=".dll"
AC_CHECK_TOOL(WINDRES, windres, windres)
AC_SUBST(WINDRES)
AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
@@ -329,7 +333,6 @@ case "$host" in
dnl Darwin based distributions (including Mac OS X)
AC_MSG_RESULT([Mac OS X - carbon])
platform_carbon=yes
- SOPREFIX='lib'
if test "$enable_binreloc" != "no"
then
AC_DEFINE(ENABLE_BINRELOC)
@@ -347,12 +350,10 @@ case "$host" in
LIBTOOL_UI_EXPORT_OPTIONS=$EXPORT_UI_SYM_REGEX
AC_DEFINE(HAVE_CARBON)
LIBGDA_LIBS="$LIBGDA_LIBS -framework Carbon"
- dnl SO_SUFFIX=dylib
;;
*)
AC_MSG_RESULT([Unix])
NO_UNDEFINED=''
- SOPREFIX='lib'
AM_BINRELOC
LIBTOOL_EXPORT_OPTIONS=$EXPORT_SYM_REGEX
LIBTOOL_PROV_EXPORT_OPTIONS=$EXPORT_PROV_SYM_REGEX
@@ -367,7 +368,6 @@ AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
AC_SUBST(LIBTOOL_PROV_EXPORT_OPTIONS)
AC_SUBST(LIBTOOL_UI_EXPORT_OPTIONS)
AC_SUBST(NO_UNDEFINED)
-AC_SUBST(SOPREFIX)
dnl *******************************************************
dnl Checks for GIO
@@ -402,14 +402,21 @@ AC_SUBST(LIBXSLT_LIBS)
dnl ******************************
dnl Checks for json-glib
dnl ******************************
+have_json=no
+AC_ARG_ENABLE([json],
+ AS_HELP_STRING([--enable-json], [Enable support for JSON, disabled by default]),
+ [enable_json=yes],[enable_json=no])
-JSON_GLIB_MODULES="json-glib-1.0"
-PKG_CHECK_MODULES(JSON_GLIB, $JSON_GLIB_MODULES, have_json=yes, have_json=no)
-AM_CONDITIONAL(HAVE_JSON_GLIB, test x"$have_json" = "xyes")
-if test x"$have_json" = "xyes"
+if test "x$enable_json" = xyes
then
- JSON_GLIB_CFLAGS="$JSON_GLIB_CFLAGS -DHAVE_JSON_GLIB"
+ JSON_GLIB_MODULES="json-glib-1.0"
+ PKG_CHECK_MODULES(JSON_GLIB, $JSON_GLIB_MODULES,
+ AC_DEFINE(HAVE_JSON_GLIB, [], [Defined if JSON support is enabled])
+ have_json=yes,
+ AC_MSG_ERROR([JSON support requested but not found])
+ )
fi
+AM_CONDITIONAL(HAVE_JSON_GLIB, [test "$have_json" = "yes"])
AC_SUBST(JSON_GLIB_CFLAGS)
AC_SUBST(JSON_GLIB_LIBS)
@@ -421,14 +428,21 @@ GOBJECT_INTROSPECTION_CHECK([0.6.5])
dnl ******************************
dnl Checks for libcrypto
dnl ******************************
+AC_ARG_ENABLE([crypto],
+ AS_HELP_STRING([--disable-crypto], [Disable SqlCipher database provider (using the libcrypto library)]),
+ ,
+ [enable_crypto=yes])
LIBCRYPTO_MODULES="libcrypto"
-PKG_CHECK_MODULES(LIBCRYPTO, $LIBCRYPTO_MODULES, have_crypto=yes, have_crypto=no)
-AM_CONDITIONAL(HAVE_LIBCRYPTO, test x"$have_crypto" = "xyes")
-if test x"$have_crypto" = "xyes"
-then
- LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS -DHAVE_LIBCRYPTO"
-fi
+PKG_CHECK_MODULES(LIBCRYPTO, $LIBCRYPTO_MODULES,
+ AC_DEFINE(HAVE_LIBCRYPTO, [], [Defined if cryptographic support is enabled])
+ have_crypto=yes,
+ if test "$enable_crypto" = "yes"; then
+ AC_MSG_ERROR([libcrypto support requested but not found])
+ fi
+ have_crypto=no
+)
+AM_CONDITIONAL(HAVE_LIBCRYPTO, [test "$have_crypto" = "yes"])
AC_SUBST(LIBCRYPTO_CFLAGS)
AC_SUBST(LIBCRYPTO_LIBS)
@@ -475,637 +489,26 @@ dnl ******************************
dnl Checks for providers
dnl ******************************
-dnl Test for lib64 architectures
-dnl FIXME: should really check target
-case $host_cpu in
-x86_64* | sparc64* | s390x* | ppc64* | powerpc64* ) lib="lib64";;
-*) lib="lib";;
-esac
+AC_ARG_WITH(libdir-name,
+ AS_HELP_STRING([--with-libdir-name[=@<:@<dir. name>@:>@]],
+ [Speficy the library name used to locate libraries, relative to the prefix of each install (for example lib64)]),
+ [lib=$withval],
+ [lib=""])
dnl Test for Berkeley DB
-try_bdb=true
-AC_ARG_WITH(bdb,
-[ --with-bdb=<directory> use bdb library in <directory>],[
-if test $withval = no
-then
- try_bdb=false
-elif test $withval = yes
-then
- dir="/usr /usr/local"
-else
- dir=$withval
-fi
-])
-bdbdir=""
-if test $try_bdb = true
-then
- if test $withval = yes
- then
- AC_CHECK_HEADER(db.h, bdb_ok=yes, bdb_ok=no, [])
- if test $bdb_ok = yes ; then
- bdbdir=yes
- BDB_LIB="libdb$linklibext"
- BDB_LIBS="-ldb"
- fi
- else
- AC_MSG_CHECKING(for Berkeley DB files)
- for d in $dir
- do
- if test $platform_win32 = yes -a -f $d/include/db.h -a -f $d/bin/libdb51.dll
- then
- AC_MSG_RESULT(found Berkeley DB in $d)
- AC_DEFINE(HAVE_BDB, 1, [Have Berkeley DB])
- bdbdir=$d
- BDB_CFLAGS="-I${bdbdir}/include"
- BDB_LIB="$d/bin/libdb51.dll"
- BDB_LIBS="-L${bdbdir}/bin -ldb51"
- break
- fi
-
- if test $platform_win32 = no -a -f $d/include/db.h -a -f $d/$lib/libdb$linklibext
- then
- AC_MSG_RESULT(found Berkeley DB in $d)
- AC_DEFINE(HAVE_BDB, 1, [Have Berkeley DB])
- bdbdir=$d
- BDB_CFLAGS="-I${bdbdir}/include"
- BDB_LIB="$d/$lib/libdb$linklibext"
- BDB_LIBS="-L${bdbdir}/${lib} -ldb"
- break
- fi
- if test $platform_win32 = no -a -f $d/include/db.h -a -f $d/lib/libdb$linklibext
- then
- AC_MSG_RESULT(found Berkeley DB in $d)
- AC_DEFINE(HAVE_BDB, 1, [Have Berkeley DB])
- bdbdir=$d
- BDB_CFLAGS="-I${bdbdir}/include"
- BDB_LIB="$d/lib/libdb$linklibext"
- BDB_LIBS="-L${bdbdir}/lib -ldb"
- break
- fi
- dnl FIXME: check for db1 (non-sleepycat implementation)
- done
- if test x$bdbdir = x
- then
- AC_MSG_WARN(Berkeley DB backend not used)
- fi
- fi
-fi
-
-bdbsqldir=""
-AM_CONDITIONAL(BDB, test x$bdbdir != x)
-if test x$bdbdir != x; then
- LIBGDA_BDB_INC="#include <libgda/gda-data-model-bdb.h>"
- LIBGDA_BDB_TYPE="gda_data_model_bdb_get_type"
-
- if test -f $bdbdir/include/dbsql.h
- then
- BDBSQL_CFLAGS="-I${bdbdir}/include"
- BDBSQL_LIBS="-L${bdbdir}/lib -ldb_sql"
- BDBSQL_PATH="${bdbdir}/lib"
- AC_CHECK_LIB(db_sql, sqlite3_table_column_metadata,[bdbsql_api=1], [bdbsql_api=0], $BDBSQL_CFLAGS $BDBSQL_LIBS -pthread -ldl)
-
- if test $bdbsql_api = 0
- then
- BDBSQL_CFLAGS=""
- BDBSQL_LIBS=""
- AC_MSG_WARN([Installed BDB Sql was not compiled with the SQLITE_ENABLE_COLUMN_METADATA, BDB Sql provider not compiled])
- else
- bdbsqldir="$bdbdir"
- AC_DEFINE(HAVE_BDBSQL, 1, [Have Berkeley DB SQL])
- fi
- fi
-fi
-AM_CONDITIONAL(BDBSQL, test x$bdbsqldir != x)
-AC_SUBST(LIBGDA_BDB_INC)
-AC_SUBST(LIBGDA_BDB_TYPE)
-
-dnl Test for ODBC
-try_odbc=true
-AC_ARG_WITH(odbc,
-[ --with-odbc=<directory> use ODBC libraries in <directory>],[
-if test $withval = no
-then
- try_odbc=false
-elif test $withval = yes
-then
- dir="/usr/local"
-else
- dir=$withval
-fi
-])
-odbcdir=""
-if test $try_odbc = true
-then
- AC_MSG_CHECKING(for ODBC files)
- for d in $dir /usr /usr/local
- do
- if test -f $d/$lib/libodbc$linklibext -a -f $d/include/sql.h
- then
- AC_MSG_RESULT(found ODBC in $d)
- odbclib="-lodbc"
- odbcdir=$d
- break
- fi
- if test -f $d/$lib/libiodbc$linklibext -a -f $d/include/sql.h
- then
- AC_MSG_RESULT(found iODBC in $d)
- odbclib="-liodbc"
- odbcdir=$d
- break
- fi
- if test -f $d/$lib/w32api/libodbc32.a -a -f $d/include/w32api/sql.h
- then
- AC_MSG_RESULT(found ODBC32 in $d)
- odbclib="-lodbc32"
- odbcdir=$d
- break
- fi
- done
- if test x$odbcdir = x
- then
- AC_MSG_WARN(ODBC backend not used)
- else
- AC_DEFINE(HAVE_ODBC, 1, [Have ODBC])
- ODBC_CFLAGS="-I${odbcdir}/include"
- ODBC_LIBS="-L${odbcdir}/lib ${odbclib}"
- fi
-fi
-
-AM_CONDITIONAL(ODBC, test x$odbcdir != x)
+BDB_CHECK($lib)
dnl Test for MySQL
-mysql_req=auto
-AC_ARG_WITH(mysql,
-[ --with-mysql=<directory> use mysql backend in <directory>],[
-if test $withval = no
-then
- mysql_req=none
-elif test $withval = yes
-then
- mysql_req=none
- if test $cross_compiling = yes
- then
- AC_MSG_WARN(Can't auto determine Mysql installation in cross-compiling environment)
- else
- AC_MSG_CHECKING(for MySQL files)
- AC_PATH_PROGS(MYSQL_CONFIG, mysql_config mysql_config5)
- fi
-else
- AC_MSG_CHECKING(for MySQL files in $withval)
- if test $cross_compiling = yes
- then
- mysql_req=$withval
- else
- AC_PATH_PROGS(MYSQL_CONFIG, mysql_config mysql_config5, [], $withval/bin)
- fi
-fi
-])
-mysqldir=""
-
-if test $mysql_req = auto
-then
- AC_MSG_CHECKING(for MySQL files)
- AC_PATH_PROGS(MYSQL_CONFIG, mysql_config mysql_config5)
-fi
-
-if test x$MYSQL_CONFIG != x
-then
- mysqldir=yes
- AC_MSG_RESULT(found mysql)
- AC_DEFINE(HAVE_MYSQL, 1, [Have MySQL])
- if test "x$MYSQL_CFLAGS" = "x"; then
- MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags`
- fi
- MYSQL_LIBS=`$MYSQL_CONFIG --libs`
-else
- if test $cross_compiling = yes
- then
- if test $platform_win32 = yes -a -f $mysql_req/$lib/opt/libmysql.lib
- then
- mysqldir=$mysql_req
-
- mysqllibdir_suffix=/opt
- AC_MSG_RESULT(found mysql)
- AC_DEFINE(HAVE_MYSQL, 1, [Have MySQL])
- MYSQL_CFLAGS="-I${mysqldir}/include${mysqldir_suffix}"
- MYSQL_LIBS="-L${mysqldir}/${lib}${mysqllibdir_suffix} -lmysql"
- else
- AC_MSG_WARN(MySQL backend not used)
- fi
- fi
-fi
-AM_CONDITIONAL(MYSQL, test x$mysqldir != x)
-
-
-dnl Test for mSQL
-try_msql=true
-AC_ARG_WITH(msql,
-[ --with-mSQL=<directory> use mSQL backend in <directory>],[
-if test $withval = no
-then
- try_msql=false
-elif test $withval = yes
-then
- dir="/usr/local"
-else
- dir=$withval
-fi
-])
-msqldir=""
-if test $try_msql = true
-then
- AC_MSG_CHECKING(for mSQL files)
- for d in $dir /usr /usr/local /usr/local/msql /opt/msql /opt/packages/msql
- do
- if test -f $d/include/msql/msql.h
- then
- msqldir_suffix=/msql
- else
- msqldir_suffix=
- fi
- if test -f $d/$lib/msql/libmsql.a -o -f $d/$lib/msql/libmsql$linklibext
- then
- AC_MSG_RESULT(found mSQL in $d)
- msqldir=$d
- msqllibdir_suffix=/msql
- break
- fi
- if test -f $d/$lib/libmsql.a -o -f $d/$lib/libmsql$linklibext
- then
- AC_MSG_RESULT(found mSQL in $d)
- msqldir=$d
- msqllibdir_suffix=
- break
- fi
- done
- if test x$msqldir = x
- then
- AC_MSG_WARN(mSQL backend not used)
- else
- AC_DEFINE(HAVE_MSQL, 1, [Have mSQL])
- MSQL_CFLAGS="-I${msqldir}/include${msqldir_suffix}"
- MSQL_LIBS="-L${msqldir}/lib${msqllibdir_suffix} -lmsql"
- AC_MSG_CHECKING(for mSQL 3.x API)
- AC_TRY_RUN([
- #include "${msqldir}/include${msqldir_suffix}/msql.h"
- int main() {
- int rc = INT64_TYPE;
- return (rc>0) ? 0 : -1;
- }
- ], AC_DEFINE(HAVE_MSQL3, 1, [Have mSQL 3.x API]) AC_MSG_RESULT(found),
- AC_MSG_RESULT(not found))
- fi
-fi
-
-AM_CONDITIONAL(MSQL, test x$msqldir != x)
+MYSQL_CHECK($lib)
dnl Test for PostgreSQL
-postgres_req=auto
-AC_ARG_WITH(postgres,
-[ --with-postgres=<directory> use PostgreSQL backend in <directory>],[
-if test $withval = no
-then
- postgres_req=none
-elif test $withval = yes
-then
- postgres_req=none
- if test $cross_compiling = yes
- then
- AC_MSG_WARN(Can't auto determine PostgreSQL installation in cross-compiling environment)
- else
- AC_MSG_CHECKING(for PostgreSQL files)
- AC_PATH_PROG(POSTGRES_CONFIG, pg_config)
- fi
-else
- AC_MSG_CHECKING(for PostgreSQL files in $withval)
- if test $cross_compiling = yes
- then
- postgres_req=$withval
- else
- AC_PATH_PROG(POSTGRES_CONFIG, pg_config, [], $withval/bin)
- fi
-fi
-])
-postgresdir=""
-
-if test $postgres_req = auto
-then
- AC_MSG_CHECKING(for PostgreSQL files)
- AC_PATH_PROG(POSTGRES_CONFIG, pg_config)
-fi
-
-if test x$POSTGRES_CONFIG != x
-then
- postgresdir=yes
- AC_MSG_RESULT(found postgres)
- AC_DEFINE(HAVE_POSTGRES, 1, [Have Postgres])
- POSTGRES_CFLAGS=-I`$POSTGRES_CONFIG --includedir`
- POSTGRES_LIBS="-L`$POSTGRES_CONFIG --libdir` -lpq"
-else
- if test $cross_compiling = yes
- then
- if test $platform_win32 = yes -a -f $postgres_req/$lib/libpq.lib
- then
- postgresdir=$postgres_req
- postgreslibdir_suffix=
- AC_MSG_RESULT(found postgres)
- AC_DEFINE(HAVE_POSTGRES, 1, [Have Postgres])
- POSTGRES_CFLAGS="-I${postgresdir}/include${postgresdir_suffix}"
- POSTGRES_LIBS="-L${postgresdir}/${lib}${postgreslibdir_suffix} -lpq"
- else
- AC_MSG_WARN(Postgres backend not used)
- fi
- fi
-fi
-AM_CONDITIONAL(POSTGRES, test x$postgresdir != x)
-
-dnl Test for freetds provider
-dnl
-try_freetds=true
-AC_ARG_WITH(tds,
-[ --with-tds=<directory> use freetds library in <directory>],[
-if test $withval = no
-then
- try_freetds=false
-elif test $withval = yes
-then
- dir="/usr/local/freetds"
-else
- dir=$withval
-fi
-])
-freetdsdir=""
-freetds_incdir=""
-freetdsvercheck=""
-if test $try_freetds = true
-then
- AC_MSG_CHECKING(for freetds files)
- for d in $dir /usr/local/freetds /usr /opt/freetds /opt/packages/freetds /opt/freetds-0.50
- do
- if test -f "$d/include/tds.h" -a -e "$d/$lib/libtds$linklibext" -a -f "$d/include/tdsver.h"
- then
- AC_MSG_RESULT(found freetds in $d)
- freetdsdir="$d"
- freetds_incdir="$d/include"
- break
- elif test -f "$d/include/freetds/tds.h" -a -e "$d/$lib/libtds$linklibext" -a -f "$d/include/freetds/tdsver.h"
- then
- AC_MSG_RESULT(found freetds in $d and includes in $d/include/freetds)
- freetdsdir="$d"
- freetds_incdir="$d/include/freetds"
- break
- fi
- done
- if test "x$freetdsdir" = "x"
- then
- AC_MSG_WARN(tds backend not used)
- else
- AC_MSG_CHECKING(for freetds version)
- freetdsvercheck="`grep \"^#define \(VERSION_NO \|TDS_VERSION_NO \)\" $freetds_incdir/tdsver.h|sed 's|^.*".*v\(.*\)"|\1|'`"
- if test "x$freetdsvercheck" = "x"
- then
- AC_MSG_WARN(freetds version check failed - backend not used)
- freetdsdir=""
- freetds_incdir=""
- else
- AC_MSG_RESULT($freetdsvercheck)
- FREETDS_CFLAGS="-I${freetds_incdir}"
- FREETDS_LIBS="-L${freetdsdir}/lib -ltds"
- AC_DEFINE(HAVE_FREETDS, 1, [Have freetds])
-
- freetds_version_major="`echo $freetdsvercheck|sed 's:^\([[^.]]*\).*:\1:'`"
- freetds_version_minor="`echo $freetdsvercheck|sed 's:^[[^.]]*\.\([[^.]]*\).*:\1:'`"
-
- AC_DEFINE_UNQUOTED(FREETDS_VERSION_MAJOR, [$freetds_version_major])
- AC_DEFINE_UNQUOTED(FREETDS_VERSION_MINOR, [$freetds_version_minor])
- fi
- fi
-fi
-
-AM_CONDITIONAL(FREETDS, test x$freetdsdir != x)
-
-dnl Test for IBM DB2
-try_ibmdb2=true
-AC_ARG_WITH(ibmdb2,
-[ --with-ibmdb2=<directory> use IBM DB2 backend in <directory>],[
-if test $withval = no
-then
- try_ibmdb2=false
-elif test $withval = yes
-then
- if test -z "$DB2DIR"
- then
- dir="/usr/IBMdb2/V7.1"
- else
- dir="$DB2DIR"
- fi
-else
- dir=$withval
-fi
-])
-if test $try_ibmdb2 = true
-then
- AC_MSG_CHECKING(for IBM DB2 files)
- if test -f "$dir/include/sqlcli1.h"
- then
- if test -e "$dir/lib/libdb2.so"
- then
- ibmdb2dir="$dir"
- ibmdb2libdir="lib"
- break
- fi
- if test -e "$dir/lib32/libdb2.so"
- then
- ibmdb2dir="$dir"
- ibmdb2libdir="lib32"
- break
- fi
- else
- for d in /usr/IBMdb2 /usr/local/IBMdb2 /opt/IBMdb2 /opt/packages/IBMdb2 /opt/ibm/db2
- do
- for v in V5.0 V.6.1 V7.1 V9.1
- do
- if test -f "$d/$v/include/sqlcli1.h" -a -e "$d/$v/lib/libdb2.so"
- then
- ibmdb2dir="$d/$v"
- ibmdb2libdir="lib"
- break
- fi
- if test -f "$d/$v/include/sqlcli1.h" -a -e "$d/$v/lib32/libdb2.so"
- then
- ibmdb2dir="$d/$v"
- ibmdb2libdir="lib32"
- break
- fi
- done
- done
- fi
- if test x$ibmdb2dir = x
- then
- AC_MSG_WARN(IBM DB2 backend not used)
- else
- AC_MSG_RESULT(found IBM DB2 in $ibmdb2dir)
- AC_DEFINE(HAVE_IBMDB2, 1, [Have IBM DB2])
- IBMDB2_CFLAGS="-DIBMDB2_DIR=\\\"${ibmdb2dir}\\\" -I${ibmdb2dir}/include"
- IBMDB2_LIBS="-L${ibmdb2dir}/${ibmdb2libdir} -Wl,-rpath,${ibmdb2dir}/${ibmdb2libdir} -ldb2"
- fi
-fi
-
-AM_CONDITIONAL(IBMDB2, test x$ibmdb2dir != x)
-
-dnl Test for Sybase
-try_sybase=true
-dir=""
-AC_ARG_WITH(sybase,
-[ --with-sybase=<directory> use Sybase backend in <directory>],[
-AC_MSG_CHECKING(for Sybase files)
-if test $withval = no
-then
- try_sybase=false
-elif test $withval = yes
-then
- dir="/opt2/sybase"
-else
- dir=$withval
-fi
-])
-sybasedir=""
-if test $try_sybase = true
-then
- AC_MSG_CHECKING(for Sybase files)
- for d in $dir /usr/local/sybase /opt/sybase /opt/packages/sybase
- do
- if test -f "$d/include/ctpublic.h"
- then
- AC_MSG_RESULT(found Sybase in $d)
- sybasedir="$d"
- break
- fi
- for v in 11.9.2 12.5 11.0.3.3
- do
- if test -f "$d-$v/include/ctpublic.h"
- then
- AC_MSG_RESULT(found Sybase in $d-$v)
- sybasedir="$d-$v"
- break
- elif test -f "$d-$v/OCS/include/ctpublic.h"
- then
- AC_MSG_RESULT(found Sybase in $d-$v)
- sybasedir="$d-$v/OCS"
- break
- fi
- done
- done
- if test x$sybasedir = x
- then
- AC_MSG_WARN(Sybase backend not used)
- else
- SYBASE_DIR=${sybasedir}
- SYBASE_CFLAGS="-I${sybasedir}/include"
- SYBASE_LIBS="-lnsl -ldl -lm"
- AC_MSG_CHECKING(for Sybase host system type)
- AC_MSG_RESULT($host)
- case "$host" in
- *linux*) sybase_ctlibs="-L${sybasedir}/lib -lct -lcs -lsybtcl -lcomn -lintl"
- sybase_blklibs="-L${sybasedir}/lib -lblk ${sybase_ctlibs}"
- SYBASE_LIBS="${SYBASE_LIBS} ${sybase_blklibs}"
- AC_CHECK_LIB(ct,tdsdump_on,[
- AC_MSG_WARN(linking against freetds libct)
- AC_DEFINE(HAVE_SYBASE, 1, [Have Sybase])
- ], AC_DEFINE(HAVE_SYBASE, 1, [Have Sybase]))
- ;;
- *) AC_MSG_WARN(this host type is unsupported; sybase backend not used)
- sybasedir=""
- ;;
- esac
- fi
-fi
-
-AM_CONDITIONAL(SYBASE, test x$sybasedir != x)
-
-dnl Link gda-sybase-srv against debugable libs
-AC_ARG_ENABLE(sybase-debug,
- [ --enable-sybase-debug=[no/min/max] no=none, min=debug msgs, max=min and link against sybase devlibs (which are static!).],,enable_sybase_debug=no)
-if test "x$sybasedir" != "x"
-then
- AC_MSG_CHECKING(for Sybase debugging level)
- if test "x$enable_sybase_debug" = "xmax"
- then
- AC_DEFINE(SYBASE_DEBUG, 1, [Enable Sybase debugging level])
- if test -f $sybasedir/devlib/libct.a
- then
- AC_MSG_RESULT(max)
- AC_MSG_WARN(erase passwords in bug-buddy debug output before sending bugreports)
- SYBASE_LIBS=${sybasedir}/devlib
- else
- AC_MSG_RESULT(min)
- AC_MSG_WARN(no debug libraries found, using --enable-sybase-debug=min)
- enable_sybase_debug=min
- fi
- else
- AC_MSG_RESULT($enable_sybase_debug)
- if test "x$enable_sybase_debug" != "x"
- then
- if test "x$enable_sybase_debug" != "xno"
- then
- AC_DEFINE(SYBASE_DEBUG)
- fi
- fi
- fi
-else
- if test "x$enable_sybase_debug" != "xno"
- then
- AC_MSG_WARN(you applied sybase debugging options, but sybase has not been found or is unsupported, disabling debug options)
- fi
- enable_sybase_debug=no
-fi
+POSTGRES_CHECK($lib)
dnl test for ORACLE
-try_oracle=true
-AC_ARG_WITH(oracle,
-[ --with-oracle=<directory> use ORACLE backend in <directory>],[
-if test $withval = no
-then
- try_oracle=false
-elif test $withval = yes
-then
- dir="/usr/local"
-else
- dir=$withval
-fi
-])
-if test $try_oracle = true
-then
- AC_MSG_CHECKING(for ORACLE installation)
- for d in $dir $ORACLE_HOME /opt/oracle /usr
- do
- if test -f $d/$lib/libclntsh.so
- then
- AC_MSG_RESULT(found ORACLE in $d)
- oracledir=$d
- oraclelibdir=$lib
- break
- else
- if test -f $d/lib/libclntsh.so
- then
- AC_MSG_RESULT(found ORACLE in $d)
- oracledir=$d
- oraclelibdir="lib"
- break
- fi
- fi
- done
- if test x$oracledir = x
- then
- AC_MSG_WARN(ORACLE backend not used)
- else
- AC_DEFINE(HAVE_ORACLE, 1, [Have ORACLE])
- ORACLE_CFLAGS=" -I$oracledir/include -I$oracledir/include/oracle/client -I$oracledir/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I$oracledir/network/public"
- ORACLE_LIBS="-L$oracledir/$oraclelibdir -lm -ldl -lclntsh"
- fi
-fi
+ORACLE_CHECK($lib)
-AM_CONDITIONAL(ORACLE, test x$oracledir != x)
+dnl Test for JAVA and JDBC
+JAVA_CHECK()
dnl test for FireBird
try_firebird=true
@@ -1155,87 +558,9 @@ fi
AM_CONDITIONAL(FIREBIRD, test x$firebirddir != x)
-dnl Test for Xbase
-try_xbase=true
-AC_ARG_WITH(xbase,
-[ --with-xbase=<directory> use Xbase files in <directory>],[
-if test $withval = no
-then
- try_xbase=false
-elif test $withval = yes
-then
- dir="/usr/local"
-else
- dir=$withval
-fi
-])
-if test $try_xbase = true
-then
- AC_MSG_CHECKING(for Xbase files)
- xbasedir=""
- for d in $dir /usr /usr/local /opt/xbase
- do
- if test -f $d/include/xbase/xbase.h
- then
- AC_MSG_RESULT(found Xbase in $d)
- xbasedir=$d
- break
- fi
- done
- if test x$xbasedir = x
- then
- AC_MSG_WARN(Xbase backend not used)
- else
- XBASE_CFLAGS=-I${xbasedir}/include
- XBASE_LIBS="-L${xbasedir}/lib -lxbase"
- AC_DEFINE(HAVE_XBASE, 1, [Have Xbase])
- fi
-fi
-
-AM_CONDITIONAL(XBASE, test x$xbasedir != x)
-
dnl Test for MDB Tools (for MS Access files)
MDBTOOLS_CHECK([$lib])
-dnl Test for LDAP
-try_ldap=true
-AC_ARG_WITH(ldap,
-[ --with-ldap=<directory> use LDAP library in <directory>],[
-if test $withval = no
-then
- try_ldap=false
-elif test $withval = yes
-then
- dir="/usr/local"
-else
- dir=$withval
-fi
-])
-if test $try_ldap = true
-then
- AC_MSG_CHECKING(for LDAP files)
- ldapdir=""
- for d in $dir /usr /usr/local /opt/openldap
- do
- if test -f $d/include/ldap.h -a -f $d/include/lber.h
- then
- AC_MSG_RESULT(found LDAP in $d)
- ldapdir=$d
- break
- fi
- done
- if test x$ldapdir = x
- then
- AC_MSG_WARN(LDAP backend not used)
- else
- LDAP_CFLAGS="-I${ldapdir}/include"
- LDAP_LIBS="-L${ldapdir}/lib -lldap -llber"
- AC_DEFINE(HAVE_LDAP, 1, [Have LDAP])
- fi
-fi
-
-AM_CONDITIONAL(LDAP, test x$ldapdir != x)
-
dnl test for system-installed SQLite
dnl If no SQLite is found or if the SQLite found does not have the sqlite3_table_column_metadata()
dnl function call, then use the embedded version
@@ -1274,260 +599,6 @@ else
AM_CONDITIONAL(HAVE_SQLITE, test x"$have_sqlite" = "xyes")
fi
-dnl Test for JAVA and JDBC
-
-## RUN_JAVA(variable for the result, parameters)
-## ----------
-## runs the java interpreter ${JAVA_PROG} with specified parameters and
-## saves the output to the supplied variable. The exit value is ignored.
-AC_DEFUN([RUN_JAVA],
-[
- acx_java_result=
- if test -z "${JAVA_PROG}"; then
- echo "$as_me:$LINENO: JAVA_PROG is not set, cannot run java $2" >&AS_MESSAGE_LOG_FD
- else
- echo "$as_me:$LINENO: running ${JAVA_PROG} $2" >&AS_MESSAGE_LOG_FD
- acx_java_result=`${JAVA_PROG} $2 2>&AS_MESSAGE_LOG_FD`
- echo "$as_me:$LINENO: output: '$acx_java_result'" >&AS_MESSAGE_LOG_FD
- fi
- $1=$acx_java_result
-])
-
-try_java=true
-AC_ARG_WITH(java,
-[ --with-java=<directory> use JAVA library in <directory>],[
-if test $withval = no
-then
- try_java=false
-elif test $withval = yes
-then
- if test -z "${JAVA_HOME}" ; then
- JAVA_PATH=${PATH}
- else
- JAVA_PATH=${JAVA_HOME}:${JAVA_HOME}/bin:${PATH}
- fi
- JAVA_PATH=${JAVA_PATH}:/usr/java/bin:/usr/jdk/bin:/usr/lib/java/bin:/usr/lib/jdk/bin:/usr/local/java/bin:/usr/local/jdk/bin:/usr/local/lib/java/bin:/usr/local/lib/jdk/bin
-else
- JAVA_PATH=$withval
-fi
-], [
-if test -z "${JAVA_HOME}" ; then
- JAVA_PATH=${PATH}
- else
- JAVA_PATH=${JAVA_HOME}:${JAVA_HOME}/bin:${PATH}
- fi
- JAVA_PATH=${JAVA_PATH}:/usr/java/bin:/usr/jdk/bin:/usr/lib/java/bin:/usr/lib/jdk/bin:/usr/local/java/bin:/usr/local/jdk/bin:/usr/local/lib/java/bin:/usr/local/lib/jdk/bin
-])
-
-save_CFLAGS="$CFLAGS"
-save_LIBS="$LIBS"
-save_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
-have_java=no
-if test $try_java = true
-then
- ## FIXME: we may want to check for jikes, kaffe and others...
- AC_PATH_PROGS(JAVA_PROG,java,,${JAVA_PATH})
- AC_PATH_PROGS(JAVAC,javac,,${JAVA_PATH})
- AC_PATH_PROGS(JAVAH,javah,,${JAVA_PATH})
- AC_PATH_PROGS(JAR,jar,,${JAVA_PATH})
-
- have_all_java=yes
- if test -z "$JAVA_PROG"; then have_all_java=no; fi
- if test -z "$JAVAC"; then have_all_java=no; fi
- if test -z "$JAVAH"; then have_all_java=no; fi
- if test -z "$JAR"; then have_all_java=no; fi
- if test ${have_all_java} = no; then
- AC_MSG_WARN([one or more Java tools are missing (JRE is not sufficient)])
- try_java=false
- fi
-fi
-
-if test $try_java = true
-then
- AC_MSG_CHECKING([whether Java interpreter works])
- try_java=false
- acx_java_works=no
- if test -n "${JAVA_PROG}" ; then
- RUN_JAVA(acx_jc_result,[-classpath . getsp -test])
- if test "${acx_jc_result}" = "Test1234OK"; then
- acx_java_works=yes
- fi
- acx_jc_result=
- fi
-
- if test ${acx_java_works} = yes; then
- AC_MSG_RESULT([yes])
-
- AC_MSG_CHECKING([java compiler version])
- JTYPE=`$JAVAC -version 2>&1 | grep -o Unrecognized`
- if test x$JTYPE = xUnrecognized; then
- # eclipse gjc?
- JVERSION=ECJ`$JAVAC -v 2>&1 | grep -o '[[0-9]].[[0-9]].[[0-9]] release' | sed -e 's/ release//'`
- else
- JTYPE=`$JAVAC -version 2>&1 | grep -o Eclipse`
- if test x$JTYPE = xEclipse; then
- JVERSION=ECJ`$JAVAC -v 2>&1 | grep -o '[[0-9]].[[0-9]].[[0-9]] release' | sed -e 's/ release//'`
- else
- # Sun's java compiler
- JVERSION=JRE`$JAVAC -version 2>&1 | sed -e "1s/javac //" -e "1q"`
- fi
- fi
- case "$JVERSION" in
- JRE1.5.*)
- try_java=true
- JTYPE="Sun JRE 1.5"
- JFLAGS="-Xlint:unchecked -Xlint:deprecation"
- ;;
- JRE1.6.*)
- try_java=true
- JTYPE="Sun JRE 1.6"
- JFLAGS="-Xlint:unchecked -Xlint:deprecation"
- ;;
- JREgcj-4*)
- try_java=true
- JTYPE="GCJ"
- JFLAGS=""
- ;;
- ECJ*) try_java=no;;
- *)
- ;;
- esac
- if test $try_java = true; then
- AC_MSG_RESULT([JAVA version used is $JTYPE ])
-
- AC_MSG_CHECKING([for Java environment])
- ## retrieve JAVA_HOME from Java itself if not set
- if test -z "${JAVA_HOME}" ; then
- RUN_JAVA(JAVA_HOME,[-classpath . getsp java.home])
- fi
-
- ## the availability of JAVA_HOME will tell us whether it's supported
- if test -z "${JAVA_HOME}" ; then
- if test x$acx_java_env_msg != xyes; then
- AC_MSG_RESULT([not found])
- fi
- else
- AC_MSG_RESULT([in ${JAVA_HOME}])
-
- case "${host_os}" in
- darwin*)
- JAVA_LIBS="-framework JavaVM"
- JAVA_LD_PATH=
- ;;
- *)
- RUN_JAVA(JAVA_LIBS, [-classpath . getsp -libs])
- JAVA_LIBS="${JAVA_LIBS} -ljvm"
- RUN_JAVA(JAVA_LD_PATH, [-classpath . getsp java.library.path])
- ;;
- esac
- ## note that we actually don't test JAVA_LIBS - we hope that the detection
- ## was correct. We should also test the functionality for javac.
- fi
- else
- AC_MSG_RESULT([SUN Java compiler Version >= 1.5 required, JDBC provider not compiled])
- fi
- else
- AC_MSG_RESULT([no])
- AC_MSG_WARN([Java not found. Please install JDK 1.4 or later, make sure that the binaries are on the PATH and re-try. If that doesn't work, set JAVA_HOME correspondingly.])
- try_java=false
- fi
-fi
-
-JNI_H=
-AC_ARG_WITH(jni,[ --with-jni=<directory> use JNI headers in <directory>],[JNI_H=$withval])
-
-if test $try_java = true
-then
- if test x$JNI_H = x
- then
- AC_CHECK_FILE(${JAVA_HOME}/include/jni.h,
- [JNI_H="${JAVA_HOME}/include"],
- [AC_CHECK_FILE(${JAVA_HOME}/jni.h,
- [JNI_H="${JAVA_HOME}"],
- [AC_CHECK_FILE(${JAVA_HOME}/../include/jni.h,
- [JNI_H="${JAVA_HOME}/../include"],
- [AC_MSG_RESULT([jni headers not found. Please make sure you have a proper JDK installed.])
- ])
- ])
- ])
- if test x$JNI_H = x
- then
- try_java=false
- fi
- fi
-fi
-
-if test $try_java = true
-then
- JAVA_CFLAGS="-I${JNI_H}"
- #: ${JAVA_CFLAGS=-D_REENTRANT}
-
- # Sun's JDK needs jni_md.h in in addition to jni.h and unfortunately it's stored somewhere else ...
- # this should be become more general at some point - so far we're checking linux and solaris only
- # (well, those are presumably the only platforms supported by Sun's JDK and others don't need this
- # at least as of now - 01/2004)
- jac_found_md=no
- for mddir in . linux solaris ppc irix alpha aix hp-ux genunix cygwin win32 freebsd; do
- AC_CHECK_FILE(${JNI_H}/$mddir/jni_md.h,[JAVA_CFLAGS="${JAVA_CFLAGS} -I${JNI_H}/$mddir" jac_found_md=yes])
- if test ${jac_found_md} = yes
- then
- break
- fi
- done
-
- LIBS="${LIBS} ${JAVA_LIBS}"
- CFLAGS="${CFLAGS} ${JAVA_CFLAGS} ${JAVA_CFLAGS}"
-
- AC_MSG_CHECKING([whether JNI programs can be compiled])
- AC_LINK_IFELSE([
- #include <jni.h>
- int main(void) {
- jobject o;
- return 0;
- }
- ],[AC_MSG_RESULT(yes)],
- [AC_MSG_ERROR([Cannot compile a simple JNI program. See config.log for details.])])
-
- LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_LD_PATH}
- export LD_LIBRARY_PATH
-
- AC_MSG_CHECKING([whether JNI programs can be run])
- AC_RUN_IFELSE([
- #include <jni.h>
- int main(void) {
- jobject o;
- return 0;
- }
- ],[AC_MSG_RESULT(yes)],
- [AC_MSG_ERROR([Cannot run a simple JNI program - probably your jvm library is in non-standard location or JVM is unsupported. See config.log for details.])])
-
- AC_MSG_CHECKING([JNI data types])
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <jni.h>
- int main(void) {
- return (sizeof(int)==sizeof(jint) && sizeof(long)==sizeof(long) && sizeof(jbyte)==sizeof(char) && sizeof(jshort)==sizeof(short) && sizeof(jfloat)==sizeof(float) && sizeof(jdouble)==sizeof(double))?0:1;
-}
- ]])],[AC_MSG_RESULT([ok])],[AC_MSG_ERROR([One or more JNI types differ from the corresponding native type. You may need to use non-standard compiler flags or a different compiler in order to fix this.])],[])
-
- JAVA_CFLAGS="-I${JNI_H}"
- for mddir in . linux solaris ppc irix alpha aix hp-ux genunix cygwin win32 freebsd; do
- if test -e ${JNI_H}/$mddir/jni_md.h
- then
- JAVA_CFLAGS="${JAVA_CFLAGS} -I${JNI_H}/$mddir"
- break
- fi
- done
-
- have_java=yes
- AC_DEFINE(HAVE_JAVA, 1, [Have JAVA])
- AC_SUBST(JAVA_LD_PATH)
- AC_SUBST(JFLAGS)
-fi
-AM_CONDITIONAL(JAVA, test x$have_java = xyes)
-CFLAGS="$save_CFLAGS"
-LIBS="$save_LIBS"
-export LD_LIBRARY_PATH="$save_LD_LIBRARY_PATH"
-
dnl ************************
dnl Check for libsoup
dnl ************************
@@ -1608,10 +679,6 @@ AM_CONDITIONAL(HISTORY_LIB, test ! "x$HISTORY_LIB" = "x")
AC_SUBST(HISTORY_LIB)
-AC_SUBST(LIB_PREFIX)
-AC_SUBST(LIB_SONAME)
-AC_SUBST(LIB_SUFFIX)
-
dnl
dnl TERMIOS.H
dnl
@@ -1627,42 +694,8 @@ AC_SUBST(LIBGDA_DTDDIR)
dnl ******************************
dnl Variables
dnl ******************************
-AC_SUBST(BDB_LIB)
-AC_SUBST(BDB_LIBS)
-AC_SUBST(BDB_CFLAGS)
-AC_SUBST(BDBSQL_LIBS)
-AC_SUBST(BDBSQL_PATH)
-AC_SUBST(BDBSQL_CFLAGS)
-AC_SUBST(ODBC_LIBS)
-AC_SUBST(ODBC_CFLAGS)
-AC_SUBST(MYSQL_LIBS)
-AC_SUBST(MYSQL_CFLAGS)
-AC_SUBST(MSQL_LIBS)
-AC_SUBST(HAVE_MSQL3)
-AC_SUBST(MSQL_CFLAGS)
-AC_SUBST(POSTGRES_LIBS)
-AC_SUBST(POSTGRES_CFLAGS)
-AC_SUBST(PRIMEBASE_LIBS)
-AC_SUBST(PRIMEBASE_CFLAGS)
-AC_SUBST(FREETDS_LIBS)
-AC_SUBST(FREETDS_CFLAGS)
-AC_SUBST(IBMDB2_LIBS)
-AC_SUBST(IBMDB2_CFLAGS)
-AC_SUBST(SYBASE_DIR)
-AC_SUBST(SYBASE_LIBS)
-AC_SUBST(SYBASE_CFLAGS)
-AC_SUBST(LDAP_LIBS)
-AC_SUBST(LDAP_CFLAGS)
-AC_SUBST(ORACLE_LIBS)
-AC_SUBST(ORACLE_CFLAGS)
AC_SUBST(FIREBIRD_LIBS)
AC_SUBST(FIREBIRD_CFLAGS)
-AC_SUBST(CAMEL_LIBS)
-AC_SUBST(CAMEL_CFLAGS)
-AC_SUBST(XBASE_LIBS)
-AC_SUBST(XBASE_CFLAGS)
-AC_SUBST(JAVA_LIBS)
-AC_SUBST(JAVA_CFLAGS)
dnl
dnl Check if lib should be build with the debug mode
@@ -1821,23 +854,16 @@ echo " Installation prefix = $prefix"
echo " Building GTK+ UI extension: `if test x$have_ui != xno; then echo yes; else echo no; fi`"
echo " Building Libxslt extension: `if test x$have_xslt != xno; then echo yes; else echo no; fi`"
echo " Compiled providers:"
-echo " Berkeley DB = `if test x$bdbdir != x; then echo yes; else echo no; fi`"
-echo " Berkeley DB SQL = `if test x$bdbsqldir = x; then echo no; else echo yes; fi`"
+echo " Berkeley DB = $bdb_found"
+echo " Berkeley DB SQL = $bdbsql_found"
dnl echo " FireBird = `if test x$firebirddir != x; then echo yes; else echo no; fi`"
-dnl echo " FreeTDS = `if test x$freetdsdir != x; then echo yes; else echo no; fi`"
-dnl echo " IBM DB2 = `if test x$ibmdb2dir != x; then echo yes; else echo no; fi`"
echo " MDB (MS Access) = $mdbtools_found"
-echo " MySQL = `if test x$mysqldir != x; then echo yes; else echo no; fi`"
-dnl echo " mSQL = `if test x$msqldir != x; then echo yes; else echo no; fi`"
-dnl echo " ODBC = `if test x$odbcdir != x; then echo yes; else echo no; fi`"
-echo " Oracle = `if test x$oracledir != x; then echo yes; else echo no; fi`"
-echo " PostgreSQL = `if test x$postgresdir != x; then echo yes; else echo no; fi`"
+echo " MySQL = $mysql_found"
+echo " Oracle = $oracle_found"
+echo " PostgreSQL = $postgres_found"
echo " SQLite = yes `if test x$have_sqlite = xyes; then echo '(from system installation)'; else echo '(embedded)'; fi`"
echo " SQLCipher = `if test x$have_crypto != xyes; then echo no; else echo yes; fi`"
-dnl echo " Sybase = `if test x$sybasedir != x; then echo yes; else echo no; fi`"
-dnl echo " xBase (dBase, Clipper, FoxPro) = `if test x$xbasedir != x; then echo yes; else echo no; fi`"
-dnl echo " LDAP = `if test x$ldapdir != x; then echo yes; else echo no; fi`"
-echo " JDBC = `if test x$have_java = xyes; then echo "yes (using $JTYPE)"; else echo no; fi`"
+echo " JDBC = $java_found"
echo " WEB = `if test x$have_libsoup = xyes; then echo yes; else echo no; fi`"
if test x"$br_cv_binreloc" != "xyes" -a x"$platform_win32" != "xyes"
then
diff --git a/control-center/cc-gray-bar.c b/control-center/cc-gray-bar.c
index 46f77f7..4b5bf30 100644
--- a/control-center/cc-gray-bar.c
+++ b/control-center/cc-gray-bar.c
@@ -272,7 +272,7 @@ cc_gray_bar_class_init (CcGrayBarClass *klass)
}
static void
-cc_gray_bar_init (CcGrayBar *bar, CcGrayBarClass *klass)
+cc_gray_bar_init (CcGrayBar *bar, G_GNUC_UNUSED CcGrayBarClass *klass)
{
gtk_widget_set_has_window (GTK_WIDGET (bar), TRUE);
@@ -379,7 +379,8 @@ cc_gray_bar_get_type (void)
NULL,
sizeof (CcGrayBar),
0,
- (GInstanceInitFunc) cc_gray_bar_init
+ (GInstanceInitFunc) cc_gray_bar_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_BIN, "CcGrayBar", &info, 0);
}
diff --git a/control-center/dsn-config.c b/control-center/dsn-config.c
index 2ac031d..59b954d 100644
--- a/control-center/dsn-config.c
+++ b/control-center/dsn-config.c
@@ -48,19 +48,19 @@ free_private_data (gpointer data)
}
static void
-list_double_clicked_cb (GdauiGrid *grid, gint row, gpointer user_data)
+list_double_clicked_cb (G_GNUC_UNUSED GdauiGrid *grid, G_GNUC_UNUSED gint row, gpointer user_data)
{
dsn_config_edit_properties (GTK_WIDGET (user_data));
}
static void
-list_popup_properties_cb (GtkWidget *menu, gpointer user_data)
+list_popup_properties_cb (G_GNUC_UNUSED GtkWidget *menu, gpointer user_data)
{
dsn_config_edit_properties (GTK_WIDGET (user_data));
}
static void
-list_popup_delete_cb (GtkWidget *menu, gpointer user_data)
+list_popup_delete_cb (G_GNUC_UNUSED GtkWidget *menu, gpointer user_data)
{
dsn_config_delete (GTK_WIDGET (user_data));
}
diff --git a/control-center/dsn-properties-dialog.c b/control-center/dsn-properties-dialog.c
index 3ac355c..f3c94f5 100644
--- a/control-center/dsn-properties-dialog.c
+++ b/control-center/dsn-properties-dialog.c
@@ -85,7 +85,7 @@ data_source_info_free (GdaDsnInfo *info)
}
static void
-delete_event_cb (GtkDialog *dlg, gpointer data)
+delete_event_cb (GtkDialog *dlg, G_GNUC_UNUSED gpointer data)
{
gtk_dialog_response (dlg, GTK_RESPONSE_OK);
}
diff --git a/control-center/gdaui-dsn-assistant.c b/control-center/gdaui-dsn-assistant.c
index 1869b4a..f4be97e 100644
--- a/control-center/gdaui-dsn-assistant.c
+++ b/control-center/gdaui-dsn-assistant.c
@@ -100,7 +100,7 @@ data_source_info_free (GdaDsnInfo *info)
*/
static void
-assistant_cancelled_cb (GtkAssistant *assistant, gpointer data)
+assistant_cancelled_cb (GtkAssistant *assistant, G_GNUC_UNUSED gpointer data)
{
g_return_if_fail (GDAUI_IS_DSN_ASSISTANT (assistant));
g_signal_emit_by_name (G_OBJECT (assistant), "finished", TRUE);
@@ -108,7 +108,7 @@ assistant_cancelled_cb (GtkAssistant *assistant, gpointer data)
}
static void
-assistant_applied_cb (GtkAssistant *assist, gpointer data)
+assistant_applied_cb (GtkAssistant *assist, G_GNUC_UNUSED gpointer data)
{
gboolean allok = TRUE;
GString *cnc_string = NULL;
@@ -237,7 +237,7 @@ dsn_auth_changed_cb (GdauiProviderAuthEditor *auth, GdauiDsnAssistant *assistant
}
static void
-provider_changed_cb (GtkWidget *combo, GdauiDsnAssistant *assistant)
+provider_changed_cb (G_GNUC_UNUSED GtkWidget *combo, GdauiDsnAssistant *assistant)
{
GdaServerOperation *op;
const gchar *provider;
@@ -395,7 +395,7 @@ forward_page_function (gint current_page, GdauiDsnAssistant *assistant)
static void
gdaui_dsn_assistant_init (GdauiDsnAssistant *assistant,
- GdauiDsnAssistantClass *klass)
+ G_GNUC_UNUSED GdauiDsnAssistantClass *klass)
{
GtkWidget *label, *vbox, *table;
GtkAssistant *assist;
@@ -696,7 +696,8 @@ gdaui_dsn_assistant_get_type (void)
NULL,
sizeof (GdauiDsnAssistant),
0,
- (GInstanceInitFunc) gdaui_dsn_assistant_init
+ (GInstanceInitFunc) gdaui_dsn_assistant_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_ASSISTANT, "GdauiDsnAssistant",
&info, 0);
diff --git a/control-center/gdaui-dsn-editor.c b/control-center/gdaui-dsn-editor.c
index 96431fa..9ed69ec 100644
--- a/control-center/gdaui-dsn-editor.c
+++ b/control-center/gdaui-dsn-editor.c
@@ -97,13 +97,13 @@ field_changed_cb (GtkWidget *widget, GdauiDsnEditor *config)
}
static void
-field_toggled_cb (GtkWidget *widget, GdauiDsnEditor *config)
+field_toggled_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiDsnEditor *config)
{
g_signal_emit (config, gdaui_dsn_editor_signals[CHANGED], 0, NULL);
}
static void
-gdaui_dsn_editor_init (GdauiDsnEditor *config, GdauiDsnEditorClass *klass)
+gdaui_dsn_editor_init (GdauiDsnEditor *config, G_GNUC_UNUSED GdauiDsnEditorClass *klass)
{
GtkWidget *table;
GtkWidget *label;
@@ -272,7 +272,8 @@ gdaui_dsn_editor_get_type (void)
NULL,
sizeof (GdauiDsnEditor),
0,
- (GInstanceInitFunc) gdaui_dsn_editor_init
+ (GInstanceInitFunc) gdaui_dsn_editor_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "GdauiDsnEditor", &info, 0);
}
diff --git a/control-center/gdaui-login-dialog.c b/control-center/gdaui-login-dialog.c
index 4a4dad6..8966308 100644
--- a/control-center/gdaui-login-dialog.c
+++ b/control-center/gdaui-login-dialog.c
@@ -69,7 +69,7 @@ gdaui_login_dialog_class_init (GdauiLoginDialogClass *klass)
}
static void
-login_changed_cb (GdauiLogin *login, gboolean valid, GdauiLoginDialog *dialog)
+login_changed_cb (GdauiLogin *login, G_GNUC_UNUSED gboolean valid, GdauiLoginDialog *dialog)
{
gchar *str;
const GdaDsnInfo *cinfo;
@@ -94,7 +94,7 @@ login_changed_cb (GdauiLogin *login, gboolean valid, GdauiLoginDialog *dialog)
}
static void
-gdaui_login_dialog_init (GdauiLoginDialog *dialog, GdauiLoginDialogClass *klass)
+gdaui_login_dialog_init (GdauiLoginDialog *dialog, G_GNUC_UNUSED GdauiLoginDialogClass *klass)
{
GtkWidget *hbox, *vbox, *image, *label;
GtkWidget *nb;
@@ -170,7 +170,7 @@ gdaui_login_dialog_init (GdauiLoginDialog *dialog, GdauiLoginDialogClass *klass)
static void
gdaui_login_dialog_set_property (GObject *object,
guint param_id,
- const GValue *value,
+ G_GNUC_UNUSED const GValue *value,
GParamSpec *pspec)
{
GdauiLoginDialog *dialog = (GdauiLoginDialog *) object;
@@ -187,7 +187,7 @@ gdaui_login_dialog_set_property (GObject *object,
static void
gdaui_login_dialog_get_property (GObject *object,
guint param_id,
- GValue *value,
+ G_GNUC_UNUSED GValue *value,
GParamSpec *pspec)
{
GdauiLoginDialog *dialog = (GdauiLoginDialog *) object;
@@ -230,7 +230,8 @@ gdaui_login_dialog_get_type (void)
NULL,
sizeof (GdauiLoginDialog),
0,
- (GInstanceInitFunc) gdaui_login_dialog_init
+ (GInstanceInitFunc) gdaui_login_dialog_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_DIALOG, "GdauiLoginDialog", &info, 0);
}
diff --git a/control-center/main.c b/control-center/main.c
index 9d554b5..2e35740 100644
--- a/control-center/main.c
+++ b/control-center/main.c
@@ -72,7 +72,7 @@ show_error (GtkWindow *parent, const gchar *format, ...)
}
static void
-assistant_finished_cb (GdauiDsnAssistant *assistant, gboolean error, gpointer user_data)
+assistant_finished_cb (GdauiDsnAssistant *assistant, gboolean error, G_GNUC_UNUSED gpointer user_data)
{
const GdaDsnInfo *dsn_info;
@@ -88,13 +88,13 @@ assistant_finished_cb (GdauiDsnAssistant *assistant, gboolean error, gpointer us
}
static void
-assistant_closed_cb (GdauiDsnAssistant *assistant, gpointer user_data)
+assistant_closed_cb (GdauiDsnAssistant *assistant, G_GNUC_UNUSED gpointer user_data)
{
gtk_widget_destroy (GTK_WIDGET (assistant));
}
static void
-file_new_cb (GtkAction *action, gpointer user_data)
+file_new_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED gpointer user_data)
{
GtkWidget *assistant;
@@ -107,7 +107,7 @@ file_new_cb (GtkAction *action, gpointer user_data)
}
static void
-file_properties_cb (GtkAction *action, gpointer user_data)
+file_properties_cb (G_GNUC_UNUSED GtkAction *action, gpointer user_data)
{
GtkWidget *nb = GTK_WIDGET (user_data);
GtkWidget *dsn, *provider, *current_widget;
@@ -126,7 +126,7 @@ file_properties_cb (GtkAction *action, gpointer user_data)
}
static void
-file_delete_cb (GtkAction *action, gpointer user_data)
+file_delete_cb (G_GNUC_UNUSED GtkAction *action, gpointer user_data)
{
GtkWidget *nb = GTK_WIDGET (user_data);
GtkWidget *dsn, *provider, *current_widget;
@@ -145,13 +145,13 @@ file_delete_cb (GtkAction *action, gpointer user_data)
}
static void
-window_closed_cb (GtkAction *action, gpointer user_data)
+window_closed_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED gpointer user_data)
{
gtk_main_quit ();
}
static void
-about_cb (GtkAction *action, gpointer user_data)
+about_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED gpointer user_data)
{
GdkPixbuf *icon;
GtkWidget *dialog;
@@ -178,7 +178,7 @@ about_cb (GtkAction *action, gpointer user_data)
g_free (path);
dialog = gtk_about_dialog_new ();
- gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (dialog), _("Database access control center"));
+ gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (dialog), _("Database access control center"));
gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (dialog), PACKAGE_VERSION);
gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (dialog), "(C) 1998-2009 GNOME Foundation");
gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (dialog), _("Database access services for the GNOME Desktop"));
@@ -301,10 +301,10 @@ create_main_window (void)
#ifdef HAVE_UNIQUE
static UniqueResponse
-message_received_cb (UniqueApp *app,
+message_received_cb (G_GNUC_UNUSED UniqueApp *app,
UniqueCommand command,
UniqueMessageData *message,
- guint time_,
+ G_GNUC_UNUSED guint time_,
gpointer user_data)
{
UniqueResponse res = UNIQUE_RESPONSE_OK;
@@ -371,7 +371,7 @@ main (int argc, char *argv[])
}
static void
-dsn_selection_changed_cb (GdauiRawGrid *dbrawgrid, gboolean row_selected, gpointer data)
+dsn_selection_changed_cb (GdauiRawGrid *dbrawgrid, gboolean row_selected, G_GNUC_UNUSED gpointer data)
{
GtkAction *action;
GArray *selection;
@@ -387,7 +387,7 @@ dsn_selection_changed_cb (GdauiRawGrid *dbrawgrid, gboolean row_selected, gpoint
}
static void
-main_nb_page_switched_cb (GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer data)
+main_nb_page_switched_cb (G_GNUC_UNUSED GtkNotebook *notebook, G_GNUC_UNUSED GtkWidget *page, guint page_num, G_GNUC_UNUSED gpointer data)
{
gboolean show;
GtkAction *action;
diff --git a/doc/C/libgda-5.0-docs.sgml b/doc/C/libgda-5.0-docs.sgml
index e896371..3403969 100644
--- a/doc/C/libgda-5.0-docs.sgml
+++ b/doc/C/libgda-5.0-docs.sgml
@@ -381,22 +381,9 @@
<para>Firebird: compiles, needs testing;</para>
</listitem>
<listitem>
- <para>IBM DB2: compiles but is not usable, work in progress;</para>
- </listitem>
- <listitem>
- <para>Microsoft SQL Server and Sybase using the <ulink url="http://www.freetds.org/">FreeTDS</ulink> library:
- compiles, needs testing;</para>
- </listitem>
- <listitem>
- <para>mSQL: compiles, needs testing;</para>
- </listitem>
- <listitem>
<para>MySQL: fully functional;</para>
</listitem>
<listitem>
- <para>ODBC: seems to work correctly, needs testing;</para>
- </listitem>
- <listitem>
<para>Oracle: work is progress, usable;</para>
</listitem>
<listitem>
@@ -406,10 +393,13 @@
<para>SQLite: fully functional;</para>
</listitem>
<listitem>
- <para>Sybase: compiles, needs testing;</para>
+ <para>Oracle Berkeley DB: fully functional;</para>
+ </listitem>
+ <listitem>
+ <para>Oracle Berkeley DB with SQL: fully functional;</para>
</listitem>
<listitem>
- <para>Xbase: compiles, needs testing</para>
+ <para>SQLCipher: fully functional;</para>
</listitem>
</itemizedlist>
</para>
diff --git a/libgda-report/DocBook/gda-report-docbook-document.c b/libgda-report/DocBook/gda-report-docbook-document.c
index 0684bd4..9457843 100644
--- a/libgda-report/DocBook/gda-report-docbook-document.c
+++ b/libgda-report/DocBook/gda-report-docbook-document.c
@@ -104,7 +104,8 @@ gda_report_docbook_document_class_init (GdaReportDocbookDocumentClass *klass)
}
static void
-gda_report_docbook_document_init (GdaReportDocbookDocument *doc, GdaReportDocbookDocumentClass *klass)
+gda_report_docbook_document_init (GdaReportDocbookDocument *doc,
+ G_GNUC_UNUSED GdaReportDocbookDocumentClass *klass)
{
doc->priv = g_new0 (GdaReportDocbookDocumentPrivate, 1);
}
@@ -146,7 +147,8 @@ gda_report_docbook_document_get_type (void)
NULL, NULL,
sizeof (GdaReportDocbookDocument),
0,
- (GInstanceInitFunc) gda_report_docbook_document_init
+ (GInstanceInitFunc) gda_report_docbook_document_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -162,7 +164,7 @@ static void
gda_report_docbook_document_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportDocbookDocument *doc;
@@ -211,7 +213,7 @@ static void
gda_report_docbook_document_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportDocbookDocument *doc;
diff --git a/libgda-report/RML/gda-report-rml-document.c b/libgda-report/RML/gda-report-rml-document.c
index 315f8e3..955731c 100644
--- a/libgda-report/RML/gda-report-rml-document.c
+++ b/libgda-report/RML/gda-report-rml-document.c
@@ -83,7 +83,7 @@ gda_report_rml_document_class_init (GdaReportRmlDocumentClass *klass)
}
static void
-gda_report_rml_document_init (GdaReportRmlDocument *doc, GdaReportRmlDocumentClass *klass)
+gda_report_rml_document_init (GdaReportRmlDocument *doc, G_GNUC_UNUSED GdaReportRmlDocumentClass *klass)
{
doc->priv = g_new0 (GdaReportRmlDocumentPrivate, 1);
}
@@ -120,7 +120,8 @@ gda_report_rml_document_get_type (void)
NULL, NULL,
sizeof (GdaReportRmlDocument),
0,
- (GInstanceInitFunc) gda_report_rml_document_init
+ (GInstanceInitFunc) gda_report_rml_document_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -135,8 +136,8 @@ gda_report_rml_document_get_type (void)
static void
gda_report_rml_document_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportRmlDocument *doc;
@@ -152,8 +153,8 @@ gda_report_rml_document_set_property (GObject *object,
static void
gda_report_rml_document_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportRmlDocument *doc;
diff --git a/libgda-report/engine/gda-report-engine.c b/libgda-report/engine/gda-report-engine.c
index 7200265..5887ce0 100644
--- a/libgda-report/engine/gda-report-engine.c
+++ b/libgda-report/engine/gda-report-engine.c
@@ -95,7 +95,7 @@ gda_report_engine_class_init (GdaReportEngineClass *klass)
}
static void
-gda_report_engine_init (GdaReportEngine *eng, GdaReportEngineClass *klass)
+gda_report_engine_init (GdaReportEngine *eng, G_GNUC_UNUSED GdaReportEngineClass *klass)
{
eng->priv = g_new0 (GdaReportEnginePrivate, 1);
eng->priv->objects = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
@@ -148,7 +148,8 @@ gda_report_engine_get_type (void)
NULL, NULL,
sizeof (GdaReportEngine),
0,
- (GInstanceInitFunc) gda_report_engine_init
+ (GInstanceInitFunc) gda_report_engine_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -164,7 +165,7 @@ static void
gda_report_engine_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportEngine *eng;
@@ -219,7 +220,7 @@ static void
gda_report_engine_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportEngine *eng;
@@ -481,7 +482,7 @@ real_run_at_node (GdaReportEngine *engine, xmlNodePtr topnode, RunContext *conte
if (!strncmp ((gchar *) node->name, "gda_report", 10)) {
GSList *created_nodes = NULL;
gboolean cmd_res = TRUE;
- gint i;
+ gsize i;
gboolean command_found = FALSE;
for (i = 0; i < sizeof (commands) / sizeof (EngineCommand); i++) {
@@ -784,7 +785,7 @@ run_context_push_with_stmt (GdaReportEngine *engine, RunContext *context, GdaCon
* Frees any memory associated to @context
*/
static void
-run_context_pop (GdaReportEngine *engine, RunContext *context)
+run_context_pop (G_GNUC_UNUSED GdaReportEngine *engine, RunContext *context)
{
/*g_print ("<<<< POP CONTEXT %p\n", context);*/
if (context->stmt)
@@ -1163,7 +1164,7 @@ gtype_equal (gconstpointer a, gconstpointer b)
* Converts @value to a string
*/
static xmlNodePtr
-value_to_node (GdaReportEngine *engine, RunContext *context, const GValue *value)
+value_to_node (G_GNUC_UNUSED GdaReportEngine *engine, G_GNUC_UNUSED RunContext *context, const GValue *value)
{
xmlNodePtr retnode;
diff --git a/libgda-report/gda-report-document.c b/libgda-report/gda-report-document.c
index 73c20de..e4c6065 100644
--- a/libgda-report/gda-report-document.c
+++ b/libgda-report/gda-report-document.c
@@ -83,7 +83,7 @@ gda_report_document_class_init (GdaReportDocumentClass *klass)
}
static void
-gda_report_document_init (GdaReportDocument *doc, GdaReportDocumentClass *klass)
+gda_report_document_init (GdaReportDocument *doc, G_GNUC_UNUSED GdaReportDocumentClass *klass)
{
doc->priv = g_new0 (GdaReportDocumentPrivate, 1);
}
@@ -130,7 +130,8 @@ gda_report_document_get_type (void)
NULL, NULL,
sizeof (GdaReportDocument),
0,
- (GInstanceInitFunc) gda_report_document_init
+ (GInstanceInitFunc) gda_report_document_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -146,7 +147,7 @@ static void
gda_report_document_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportDocument *doc;
@@ -175,7 +176,7 @@ static void
gda_report_document_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaReportDocument *doc;
diff --git a/libgda-ui/data-entries/common-bin.c b/libgda-ui/data-entries/common-bin.c
index af3c0e6..4a9cb83 100644
--- a/libgda-ui/data-entries/common-bin.c
+++ b/libgda-ui/data-entries/common-bin.c
@@ -320,7 +320,7 @@ common_bin_adjust_menu (BinMenu *binmenu, gboolean editable, const GValue *value
GList *list;
gchar *descr, *tmp;
descr = g_content_type_get_description (ctype);
- tmp = g_markup_printf_escaped (descr);
+ tmp = g_markup_escape_text (descr, -1);
g_free (descr);
g_string_append_printf (string, "\n%s: %s", _("Data type"), tmp);
g_free (tmp);
diff --git a/libgda-ui/data-entries/gdaui-data-cell-renderer-bin.c b/libgda-ui/data-entries/gdaui-data-cell-renderer-bin.c
index b3255a7..088aaee 100644
--- a/libgda-ui/data-entries/gdaui-data-cell-renderer-bin.c
+++ b/libgda-ui/data-entries/gdaui-data-cell-renderer-bin.c
@@ -112,6 +112,7 @@ gdaui_data_cell_renderer_bin_get_type (void)
sizeof (GdauiDataCellRendererBin),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_bin_init,
+ 0
};
cell_type =
@@ -438,9 +439,9 @@ gdaui_data_cell_renderer_bin_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *background_area,
GdkRectangle *cell_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererBin *bincell;
GtkTreeModel *model;
diff --git a/libgda-ui/data-entries/gdaui-data-cell-renderer-boolean.c b/libgda-ui/data-entries/gdaui-data-cell-renderer-boolean.c
index 153557b..af26411 100644
--- a/libgda-ui/data-entries/gdaui-data-cell-renderer-boolean.c
+++ b/libgda-ui/data-entries/gdaui-data-cell-renderer-boolean.c
@@ -110,6 +110,7 @@ gdaui_data_cell_renderer_boolean_get_type (void)
sizeof (GdauiDataCellRendererBoolean),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_boolean_init,
+ 0
};
cell_type =
diff --git a/libgda-ui/data-entries/gdaui-data-cell-renderer-combo.c b/libgda-ui/data-entries/gdaui-data-cell-renderer-combo.c
index 3720c95..1bb04b2 100644
--- a/libgda-ui/data-entries/gdaui-data-cell-renderer-combo.c
+++ b/libgda-ui/data-entries/gdaui-data-cell-renderer-combo.c
@@ -117,6 +117,7 @@ gdaui_data_cell_renderer_combo_get_type (void)
sizeof (GdauiDataCellRendererCombo),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_combo_init,
+ 0
};
cell_text_type =
@@ -349,7 +350,7 @@ gdaui_data_cell_renderer_combo_set_property (GObject *object,
GList *gvalues = g_value_get_pointer (value);
gchar *str;
- g_assert (g_list_length (gvalues) == datacell->priv->source->shown_n_cols);
+ g_assert (g_list_length (gvalues) == (guint)datacell->priv->source->shown_n_cols);
str = render_text_to_display_from_values (gvalues);
g_object_set (G_OBJECT (object), "text", str, NULL);
g_free (str);
@@ -569,12 +570,12 @@ static gboolean gdaui_data_cell_renderer_combo_focus_out_event (GtkWidget *widge
static GtkCellEditable *
gdaui_data_cell_renderer_combo_start_editing (GtkCellRenderer *cell,
- GdkEvent *event,
- GtkWidget *widget,
+ G_GNUC_UNUSED GdkEvent *event,
+ G_GNUC_UNUSED GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *cell_area,
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererCombo *datacell;
GtkWidget *combo;
@@ -638,7 +639,7 @@ gdaui_data_cell_renderer_combo_editing_done (GtkCellEditable *combo, GdauiDataCe
static gboolean
-gdaui_data_cell_renderer_combo_focus_out_event (GtkWidget *widget, GdkEvent *event,
+gdaui_data_cell_renderer_combo_focus_out_event (GtkWidget *widget, G_GNUC_UNUSED GdkEvent *event,
GdauiDataCellRendererCombo *datacell)
{
diff --git a/libgda-ui/data-entries/gdaui-data-cell-renderer-info.c b/libgda-ui/data-entries/gdaui-data-cell-renderer-info.c
index 26ce877..9943583 100644
--- a/libgda-ui/data-entries/gdaui-data-cell-renderer-info.c
+++ b/libgda-ui/data-entries/gdaui-data-cell-renderer-info.c
@@ -112,6 +112,7 @@ gdaui_data_cell_renderer_info_get_type (void)
sizeof (GdauiDataCellRendererInfo),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_info_init,
+ 0
};
cell_info_type =
@@ -326,7 +327,7 @@ gdaui_data_cell_renderer_info_new (GdauiDataStore *store,
static void
gdaui_data_cell_renderer_info_get_size (GtkCellRenderer *cell,
- GtkWidget *widget,
+ G_GNUC_UNUSED GtkWidget *widget,
GdkRectangle *cell_area,
gint *x_offset,
gint *y_offset,
@@ -368,10 +369,10 @@ static void
gdaui_data_cell_renderer_info_render (GtkCellRenderer *cell,
GdkWindow *window,
GtkWidget *widget,
- GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *background_area,
GdkRectangle *cell_area,
- GdkRectangle *expose_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GdkRectangle *expose_area,
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererInfo *cellinfo = (GdauiDataCellRendererInfo *) cell;
gint width, height;
@@ -446,12 +447,12 @@ gdaui_data_cell_renderer_info_render (GtkCellRenderer *cell,
static void mitem_activated_cb (GtkWidget *mitem, GdauiDataCellRendererInfo *cellinfo);
static gint
gdaui_data_cell_renderer_info_activate (GtkCellRenderer *cell,
- GdkEvent *event,
- GtkWidget *widget,
+ G_GNUC_UNUSED GdkEvent *event,
+ G_GNUC_UNUSED GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *cell_area,
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererInfo *cellinfo;
gchar *tmp;
diff --git a/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c b/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c
index 1c31f58..a7805e2 100644
--- a/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c
+++ b/libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c
@@ -37,7 +37,7 @@
#include "marshallers/gdaui-custom-marshal.h"
#include "gdaui-data-cell-renderer-util.h"
-#define MAX_ACCEPTED_STRING_LENGTH 500
+#define MAX_ACCEPTED_STRING_LENGTH 500U
static void gdaui_data_cell_renderer_textual_init (GdauiDataCellRendererTextual *celltext);
static void gdaui_data_cell_renderer_textual_class_init (GdauiDataCellRendererTextualClass *class);
@@ -137,6 +137,7 @@ gdaui_data_cell_renderer_textual_get_type (void)
sizeof (GdauiDataCellRendererTextual),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_textual_init,
+ 0
};
cell_text_type =
@@ -257,7 +258,7 @@ gdaui_data_cell_renderer_textual_finalize (GObject *object)
static void
gdaui_data_cell_renderer_textual_get_property (GObject *object,
guint param_id,
- GValue *value,
+ G_GNUC_UNUSED GValue *value,
GParamSpec *pspec)
{
switch (param_id) {
@@ -663,7 +664,7 @@ gdaui_data_cell_renderer_textual_editing_done (GtkCellEditable *entry,
static gboolean
gdaui_data_cell_renderer_textual_focus_out_event (GtkWidget *entry,
- GdkEvent *event,
+ G_GNUC_UNUSED GdkEvent *event,
gpointer data)
{
gdaui_data_cell_renderer_textual_editing_done (GTK_CELL_EDITABLE (entry), data);
@@ -674,12 +675,12 @@ gdaui_data_cell_renderer_textual_focus_out_event (GtkWidget *entry,
static GtkCellEditable *
gdaui_data_cell_renderer_textual_start_editing (GtkCellRenderer *cell,
- GdkEvent *event,
- GtkWidget *widget,
+ G_GNUC_UNUSED GdkEvent *event,
+ G_GNUC_UNUSED GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *cell_area,
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererTextual *datacell;
GtkWidget *entry;
diff --git a/libgda-ui/data-entries/gdaui-entry-bin.c b/libgda-ui/data-entries/gdaui-entry-bin.c
index 5c3c81d..e560981 100644
--- a/libgda-ui/data-entries/gdaui-entry-bin.c
+++ b/libgda-ui/data-entries/gdaui-entry-bin.c
@@ -76,7 +76,8 @@ gdaui_entry_bin_get_type (void)
NULL,
sizeof (GdauiEntryBin),
0,
- (GInstanceInitFunc) gdaui_entry_bin_init
+ (GInstanceInitFunc) gdaui_entry_bin_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryBin", &info, 0);
@@ -364,7 +365,8 @@ button_clicked_cb (GtkWidget *button, GdauiEntryBin *dbin)
}
static void
-connect_signals (GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activate_cb)
+connect_signals (GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED GCallback modify_cb,
+ G_GNUC_UNUSED GCallback activate_cb)
{
GdauiEntryBin *dbin;
@@ -377,7 +379,7 @@ connect_signals (GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activ
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
diff --git a/libgda-ui/data-entries/gdaui-entry-boolean.c b/libgda-ui/data-entries/gdaui-entry-boolean.c
index 79dc434..bbeb595 100644
--- a/libgda-ui/data-entries/gdaui-entry-boolean.c
+++ b/libgda-ui/data-entries/gdaui-entry-boolean.c
@@ -63,7 +63,8 @@ gdaui_entry_boolean_get_type (void)
NULL,
sizeof (GdauiEntryBoolean),
0,
- (GInstanceInitFunc) gdaui_entry_boolean_init
+ (GInstanceInitFunc) gdaui_entry_boolean_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryBoolean", &info, 0);
@@ -251,13 +252,13 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static void
-check_toggled_cb (GtkToggleButton *toggle, GdauiEntryBoolean *mgbool)
+check_toggled_cb (GtkToggleButton *toggle, G_GNUC_UNUSED GdauiEntryBoolean *mgbool)
{
gtk_toggle_button_set_inconsistent (toggle, FALSE);
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
diff --git a/libgda-ui/data-entries/gdaui-entry-combo.c b/libgda-ui/data-entries/gdaui-entry-combo.c
index c9c8ed9..7cfac6e 100644
--- a/libgda-ui/data-entries/gdaui-entry-combo.c
+++ b/libgda-ui/data-entries/gdaui-entry-combo.c
@@ -111,7 +111,8 @@ gdaui_entry_combo_get_type (void)
NULL,
sizeof (GdauiEntryCombo),
0,
- (GInstanceInitFunc) gdaui_entry_combo_init
+ (GInstanceInitFunc) gdaui_entry_combo_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -239,7 +240,7 @@ gdaui_entry_combo_new (GdauiSet *paramlist, GdauiSetSource *source)
}
static void
-uiset_source_model_changed_cb (GdauiSet *paramlist, GdauiSetSource *source, GdauiEntryCombo* combo)
+uiset_source_model_changed_cb (G_GNUC_UNUSED GdauiSet *paramlist, GdauiSetSource *source, GdauiEntryCombo* combo)
{
if (source == combo->priv->source) {
GSList *list, *values = NULL;
@@ -378,7 +379,7 @@ static void
gdaui_entry_combo_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiEntryCombo *combo = GDAUI_ENTRY_COMBO (object);
if (combo->priv) {
@@ -402,7 +403,7 @@ static void
gdaui_entry_combo_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiEntryCombo *combo = GDAUI_ENTRY_COMBO (object);
if (combo->priv) {
@@ -415,7 +416,7 @@ gdaui_entry_combo_get_property (GObject *object,
}
static void
-combo_contents_changed_cb (GdauiCombo *entry, GdauiEntryCombo *combo)
+combo_contents_changed_cb (G_GNUC_UNUSED GdauiCombo *entry, GdauiEntryCombo *combo)
{
if (gdaui_combo_is_null_selected (GDAUI_COMBO (combo->priv->combo_entry))) /* Set to NULL? */ {
gdaui_entry_combo_set_values (combo, NULL);
@@ -699,7 +700,7 @@ gdaui_entry_combo_get_reference_values (GdauiEntryCombo *combo)
* values provided in the list is modified.
*/
void
-gdaui_entry_combo_set_default_values (GdauiEntryCombo *combo, GSList *values)
+gdaui_entry_combo_set_default_values (GdauiEntryCombo *combo, G_GNUC_UNUSED GSList *values)
{
g_return_if_fail (combo && GDAUI_IS_ENTRY_COMBO (combo));
g_return_if_fail (combo->priv);
@@ -738,7 +739,7 @@ gdaui_entry_combo_get_value (GdauiDataEntry *iface)
}
static void
-gdaui_entry_combo_set_ref_value (GdauiDataEntry *iface, const GValue * value)
+gdaui_entry_combo_set_ref_value (GdauiDataEntry *iface, G_GNUC_UNUSED const GValue * value)
{
GdauiEntryCombo *combo;
@@ -764,7 +765,7 @@ gdaui_entry_combo_get_ref_value (GdauiDataEntry *iface)
}
static void
-gdaui_entry_combo_set_value_default (GdauiDataEntry *iface, const GValue * value)
+gdaui_entry_combo_set_value_default (GdauiDataEntry *iface, G_GNUC_UNUSED const GValue * value)
{
GdauiEntryCombo *combo;
@@ -1017,7 +1018,7 @@ gdaui_entry_combo_get_attributes (GdauiDataEntry *iface)
static gboolean
-gdaui_entry_combo_can_expand (GdauiDataEntry *iface, gboolean horiz)
+gdaui_entry_combo_can_expand (GdauiDataEntry *iface, G_GNUC_UNUSED gboolean horiz)
{
GdauiEntryCombo *combo;
diff --git a/libgda-ui/data-entries/gdaui-entry-common-time.c b/libgda-ui/data-entries/gdaui-entry-common-time.c
index 94ecc76..8592b21 100644
--- a/libgda-ui/data-entries/gdaui-entry-common-time.c
+++ b/libgda-ui/data-entries/gdaui-entry-common-time.c
@@ -108,7 +108,8 @@ gdaui_entry_common_time_get_type (void)
NULL,
sizeof (GdauiEntryCommonTime),
0,
- (GInstanceInitFunc) gdaui_entry_common_time_init
+ (GInstanceInitFunc) gdaui_entry_common_time_init,
+ 0
};
static const GInterfaceInfo cell_editable_info = {
@@ -153,7 +154,7 @@ gdaui_entry_common_time_class_init (GdauiEntryCommonTimeClass * class)
}
static gboolean
-key_press_event_cb (GdauiEntryCommonTime *mgtim, GdkEventKey *key_event, gpointer data)
+key_press_event_cb (GdauiEntryCommonTime *mgtim, GdkEventKey *key_event, G_GNUC_UNUSED gpointer data)
{
if (key_event->keyval == GDK_KEY_Escape)
mgtim->priv->editing_canceled = TRUE;
@@ -482,7 +483,7 @@ focus_out_cb (GtkWidget *widget, GdkEventFocus *event, GdauiEntryCommonTime *mgt
g_assert (activate_cb);
((Callback2)activate_cb) (widget, mgtim);
- return FALSE;
+ return gtk_widget_event (GTK_WIDGET (mgtim), (GdkEvent*) event);
}
static void
@@ -519,7 +520,7 @@ connect_signals (GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activ
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
@@ -646,7 +647,8 @@ create_entry_date (GdauiEntryCommonTime *mgtim)
}
static void
-entry_date_insert_func (GdauiFormattedEntry *fentry, gunichar insert_char, gint virt_pos, gpointer data)
+entry_date_insert_func (G_GNUC_UNUSED GdauiFormattedEntry *fentry, gunichar insert_char,
+ G_GNUC_UNUSED gint virt_pos, gpointer data)
{
GValue *value;
GType type;
@@ -725,7 +727,7 @@ entry_date_insert_func (GdauiFormattedEntry *fentry, gunichar insert_char, gint
}
static void
-internal_set_time (GtkWidget *widget, GdauiEntryCommonTime *mgtim)
+internal_set_time (G_GNUC_UNUSED GtkWidget *widget, GdauiEntryCommonTime *mgtim)
{
/* the aim is that when the mode is TIMESTAMP, when the user sets a date,
* then the time automatically sets to 00:00:00
@@ -760,7 +762,7 @@ hide_popup (GdauiEntryCommonTime *mgtim)
}
static gint
-date_delete_popup (GtkWidget *widget, GdauiEntryCommonTime *mgtim)
+date_delete_popup (G_GNUC_UNUSED GtkWidget *widget, GdauiEntryCommonTime *mgtim)
{
hide_popup (mgtim);
return TRUE;
@@ -810,7 +812,7 @@ date_day_selected (GtkCalendar *calendar, GdauiEntryCommonTime *mgtim)
{
char buffer [256];
guint year, month, day;
- struct tm mtm = {0};
+ struct tm mtm = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
char *str_utf8;
gtk_calendar_get_date (calendar, &year, &month, &day);
@@ -832,7 +834,7 @@ date_day_selected (GtkCalendar *calendar, GdauiEntryCommonTime *mgtim)
}
static void
-date_day_selected_double_click (GtkCalendar *calendar, GdauiEntryCommonTime *mgtim)
+date_day_selected_double_click (G_GNUC_UNUSED GtkCalendar *calendar, GdauiEntryCommonTime *mgtim)
{
hide_popup (mgtim);
}
@@ -1037,7 +1039,8 @@ create_entry_time (GdauiEntryCommonTime *mgtim)
}
static void
-entry_time_insert_func (GdauiFormattedEntry *fentry, gunichar insert_char, gint virt_pos, gpointer data)
+entry_time_insert_func (G_GNUC_UNUSED GdauiFormattedEntry *fentry, gunichar insert_char,
+ G_GNUC_UNUSED gint virt_pos, gpointer data)
{
GValue *value;
GType type;
@@ -1103,13 +1106,13 @@ create_entry_ts (GdauiEntryCommonTime *mgtim)
* GtkCellEditable interface
*/
static void
-gtk_cell_editable_entry_editing_done_cb (GtkEntry *entry, GdauiEntryCommonTime *mgtim)
+gtk_cell_editable_entry_editing_done_cb (G_GNUC_UNUSED GtkEntry *entry, GdauiEntryCommonTime *mgtim)
{
gtk_cell_editable_editing_done (GTK_CELL_EDITABLE (mgtim));
}
static void
-gtk_cell_editable_entry_remove_widget_cb (GtkEntry *entry, GdauiEntryCommonTime *mgtim)
+gtk_cell_editable_entry_remove_widget_cb (G_GNUC_UNUSED GtkEntry *entry, GdauiEntryCommonTime *mgtim)
{
gtk_cell_editable_remove_widget (GTK_CELL_EDITABLE (mgtim));
}
diff --git a/libgda-ui/data-entries/gdaui-entry-date.c b/libgda-ui/data-entries/gdaui-entry-date.c
index 5f7173c..1b3dee0 100644
--- a/libgda-ui/data-entries/gdaui-entry-date.c
+++ b/libgda-ui/data-entries/gdaui-entry-date.c
@@ -47,7 +47,8 @@ gdaui_entry_date_get_type (void)
NULL,
sizeof (GdauiEntryDate),
0,
- (GInstanceInitFunc) gdaui_entry_date_init
+ (GInstanceInitFunc) gdaui_entry_date_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_COMMON_TIME, "GdauiEntryDate", &info, 0);
@@ -62,7 +63,7 @@ gdaui_entry_date_class_init (GdauiEntryDateClass * class)
}
static void
-gdaui_entry_date_init (GdauiEntryDate * gdaui_entry_date)
+gdaui_entry_date_init (G_GNUC_UNUSED GdauiEntryDate * gdaui_entry_date)
{
}
diff --git a/libgda-ui/data-entries/gdaui-entry-none.c b/libgda-ui/data-entries/gdaui-entry-none.c
index 81ae605..76f6885 100644
--- a/libgda-ui/data-entries/gdaui-entry-none.c
+++ b/libgda-ui/data-entries/gdaui-entry-none.c
@@ -63,7 +63,8 @@ gdaui_entry_none_get_type (void)
NULL,
sizeof (GdauiEntryNone),
0,
- (GInstanceInitFunc) gdaui_entry_none_init
+ (GInstanceInitFunc) gdaui_entry_none_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryNone", &info, 0);
@@ -213,7 +214,8 @@ real_get_value (GdauiEntryWrapper *mgwrap)
}
static void
-connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activate_cb)
+connect_signals(GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED GCallback modify_cb,
+ G_GNUC_UNUSED GCallback activate_cb)
{
GdauiEntryNone *entry;
@@ -223,7 +225,7 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
diff --git a/libgda-ui/data-entries/gdaui-entry-number.c b/libgda-ui/data-entries/gdaui-entry-number.c
index a6ca767..6dcab0b 100644
--- a/libgda-ui/data-entries/gdaui-entry-number.c
+++ b/libgda-ui/data-entries/gdaui-entry-number.c
@@ -103,7 +103,8 @@ gdaui_entry_number_get_type (void)
NULL,
sizeof (GdauiEntryNumber),
0,
- (GInstanceInitFunc) gdaui_entry_number_init
+ (GInstanceInitFunc) gdaui_entry_number_init,
+ 0
};
static const GInterfaceInfo cell_editable_info = {
@@ -147,7 +148,7 @@ gdaui_entry_number_class_init (GdauiEntryNumberClass * klass)
}
static gboolean
-key_press_event_cb (GdauiEntryNumber *mgstr, GdkEventKey *key_event, gpointer data)
+key_press_event_cb (GdauiEntryNumber *mgstr, GdkEventKey *key_event, G_GNUC_UNUSED gpointer data)
{
if (key_event->keyval == GDK_KEY_Escape)
mgstr->priv->editing_canceled = TRUE;
@@ -362,7 +363,7 @@ focus_out_cb (GtkWidget *widget, GdkEventFocus *event, GdauiEntryNumber *mgstr)
g_assert (activate_cb);
((Callback2)activate_cb) (widget, mgstr);
- return FALSE;
+ return gtk_widget_event (GTK_WIDGET (mgstr), (GdkEvent*) event);
}
static void
@@ -384,7 +385,7 @@ connect_signals (GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activ
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
@@ -415,13 +416,13 @@ grab_focus (GdauiEntryWrapper *mgwrap)
* GtkCellEditable interface
*/
static void
-gtk_cell_editable_entry_editing_done_cb (GtkEntry *entry, GdauiEntryNumber *mgstr)
+gtk_cell_editable_entry_editing_done_cb (G_GNUC_UNUSED GtkEntry *entry, GdauiEntryNumber *mgstr)
{
gtk_cell_editable_editing_done (GTK_CELL_EDITABLE (mgstr));
}
static void
-gtk_cell_editable_entry_remove_widget_cb (GtkEntry *entry, GdauiEntryNumber *mgstr)
+gtk_cell_editable_entry_remove_widget_cb (G_GNUC_UNUSED GtkEntry *entry, GdauiEntryNumber *mgstr)
{
gtk_cell_editable_remove_widget (GTK_CELL_EDITABLE (mgstr));
}
diff --git a/libgda-ui/data-entries/gdaui-entry-shell.c b/libgda-ui/data-entries/gdaui-entry-shell.c
index 57c0b8f..7b5cc23 100644
--- a/libgda-ui/data-entries/gdaui-entry-shell.c
+++ b/libgda-ui/data-entries/gdaui-entry-shell.c
@@ -93,7 +93,8 @@ gdaui_entry_shell_get_type (void)
NULL,
sizeof (GdauiEntryShell),
0,
- (GInstanceInitFunc) gdaui_entry_shell_init
+ (GInstanceInitFunc) gdaui_entry_shell_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VIEWPORT, "GdauiEntryShell", &info, 0);
@@ -311,7 +312,7 @@ gdaui_entry_shell_pack_entry (GdauiEntryShell *shell, GtkWidget *main_widget)
}
static void
-contents_modified_cb (GdauiEntryShell *shell, gpointer unused)
+contents_modified_cb (GdauiEntryShell *shell, G_GNUC_UNUSED gpointer unused)
{
gdaui_entry_shell_refresh (shell);
}
@@ -319,7 +320,7 @@ contents_modified_cb (GdauiEntryShell *shell, gpointer unused)
static void mitem_activated_cb (GtkWidget *mitem, GdauiEntryShell *shell);
static GdaValueAttribute gdaui_entry_shell_refresh_attributes (GdauiEntryShell *shell);
static gint
-event_cb (GtkWidget *widget, GdkEvent *event, GdauiEntryShell *shell)
+event_cb (G_GNUC_UNUSED GtkWidget *widget, GdkEvent *event, GdauiEntryShell *shell)
{
gboolean done = FALSE;
diff --git a/libgda-ui/data-entries/gdaui-entry-string.c b/libgda-ui/data-entries/gdaui-entry-string.c
index 3d23522..42b4c32 100644
--- a/libgda-ui/data-entries/gdaui-entry-string.c
+++ b/libgda-ui/data-entries/gdaui-entry-string.c
@@ -25,7 +25,7 @@
#include <libgda/gda-data-handler.h>
#include "gdk/gdkkeysyms.h"
-#define MAX_ACCEPTED_STRING_LENGTH 500
+#define MAX_ACCEPTED_STRING_LENGTH 500U
/*
* Main static functions
@@ -113,7 +113,8 @@ gdaui_entry_string_get_type (void)
NULL,
sizeof (GdauiEntryString),
0,
- (GInstanceInitFunc) gdaui_entry_string_init
+ (GInstanceInitFunc) gdaui_entry_string_init,
+ 0
};
static const GInterfaceInfo cell_editable_info = {
@@ -160,7 +161,7 @@ gdaui_entry_string_class_init (GdauiEntryStringClass * klass)
}
static gboolean
-key_press_event_cb (GdauiEntryString *mgstr, GdkEventKey *key_event, gpointer data)
+key_press_event_cb (GdauiEntryString *mgstr, GdkEventKey *key_event, G_GNUC_UNUSED gpointer data)
{
if (key_event->keyval == GDK_KEY_Escape)
mgstr->priv->editing_canceled = TRUE;
@@ -480,7 +481,7 @@ focus_out_cb (GtkWidget *widget, GdkEventFocus *event, GdauiEntryString *mgstr)
g_assert (activate_cb);
((Callback2)activate_cb) (widget, mgstr);
- return FALSE;
+ return gtk_widget_event (GTK_WIDGET (mgstr), (GdkEvent*) event);
}
static void
@@ -555,13 +556,13 @@ grab_focus (GdauiEntryWrapper *mgwrap)
* GtkCellEditable interface
*/
static void
-gtk_cell_editable_entry_editing_done_cb (GtkEntry *entry, GdauiEntryString *mgstr)
+gtk_cell_editable_entry_editing_done_cb (G_GNUC_UNUSED GtkEntry *entry, GdauiEntryString *mgstr)
{
gtk_cell_editable_editing_done (GTK_CELL_EDITABLE (mgstr));
}
static void
-gtk_cell_editable_entry_remove_widget_cb (GtkEntry *entry, GdauiEntryString *mgstr)
+gtk_cell_editable_entry_remove_widget_cb (G_GNUC_UNUSED GtkEntry *entry, GdauiEntryString *mgstr)
{
gtk_cell_editable_remove_widget (GTK_CELL_EDITABLE (mgstr));
}
diff --git a/libgda-ui/data-entries/gdaui-entry-time.c b/libgda-ui/data-entries/gdaui-entry-time.c
index bf46496..9752f93 100644
--- a/libgda-ui/data-entries/gdaui-entry-time.c
+++ b/libgda-ui/data-entries/gdaui-entry-time.c
@@ -47,7 +47,8 @@ gdaui_entry_time_get_type (void)
NULL,
sizeof (GdauiEntryTime),
0,
- (GInstanceInitFunc) gdaui_entry_time_init
+ (GInstanceInitFunc) gdaui_entry_time_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_COMMON_TIME, "GdauiEntryTime", &info, 0);
@@ -62,7 +63,7 @@ gdaui_entry_time_class_init (GdauiEntryTimeClass * class)
}
static void
-gdaui_entry_time_init (GdauiEntryTime * gdaui_entry_time)
+gdaui_entry_time_init (G_GNUC_UNUSED GdauiEntryTime * gdaui_entry_time)
{
}
diff --git a/libgda-ui/data-entries/gdaui-entry-timestamp.c b/libgda-ui/data-entries/gdaui-entry-timestamp.c
index a38e3a9..585baf0 100644
--- a/libgda-ui/data-entries/gdaui-entry-timestamp.c
+++ b/libgda-ui/data-entries/gdaui-entry-timestamp.c
@@ -47,7 +47,8 @@ gdaui_entry_timestamp_get_type (void)
NULL,
sizeof (GdauiEntryTimestamp),
0,
- (GInstanceInitFunc) gdaui_entry_timestamp_init
+ (GInstanceInitFunc) gdaui_entry_timestamp_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_COMMON_TIME, "GdauiEntryTimestamp", &info, 0);
@@ -62,7 +63,7 @@ gdaui_entry_timestamp_class_init (GdauiEntryTimestampClass * class)
}
static void
-gdaui_entry_timestamp_init (GdauiEntryTimestamp * gdaui_entry_timestamp)
+gdaui_entry_timestamp_init (G_GNUC_UNUSED GdauiEntryTimestamp * gdaui_entry_timestamp)
{
}
diff --git a/libgda-ui/data-entries/gdaui-entry-wrapper.c b/libgda-ui/data-entries/gdaui-entry-wrapper.c
index 4df13a0..4d9ed81 100644
--- a/libgda-ui/data-entries/gdaui-entry-wrapper.c
+++ b/libgda-ui/data-entries/gdaui-entry-wrapper.c
@@ -105,7 +105,8 @@ gdaui_entry_wrapper_get_type (void)
NULL,
sizeof (GdauiEntryWrapper),
0,
- (GInstanceInitFunc) gdaui_entry_wrapper_init
+ (GInstanceInitFunc) gdaui_entry_wrapper_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -284,7 +285,7 @@ static void
gdaui_entry_wrapper_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiEntryWrapper *mgwrap = GDAUI_ENTRY_WRAPPER (object);
if (mgwrap->priv) {
@@ -318,7 +319,7 @@ static void
gdaui_entry_wrapper_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiEntryWrapper *mgwrap = GDAUI_ENTRY_WRAPPER (object);
if (mgwrap->priv) {
@@ -362,7 +363,7 @@ gdaui_entry_wrapper_contents_activated (GdauiEntryWrapper *mgwrap)
static void gdaui_entry_wrapper_emit_signal (GdauiEntryWrapper *mgwrap);
static void
-contents_changed_cb (GtkWidget *entry, GdauiEntryWrapper *mgwrap)
+contents_changed_cb (G_GNUC_UNUSED GtkWidget *entry, GdauiEntryWrapper *mgwrap)
{
/* @entry is not used */
if (! mgwrap->priv->signals_blocked) {
@@ -374,7 +375,7 @@ contents_changed_cb (GtkWidget *entry, GdauiEntryWrapper *mgwrap)
}
static void
-contents_activated_cb (GtkWidget *entry, GdauiEntryWrapper *mgwrap)
+contents_activated_cb (G_GNUC_UNUSED GtkWidget *entry, GdauiEntryWrapper *mgwrap)
{
/* @entry is not used */
if (! mgwrap->priv->signals_blocked) {
diff --git a/libgda-ui/data-entries/gdaui-entry.c b/libgda-ui/data-entries/gdaui-entry.c
index 8613243..1482fb6 100644
--- a/libgda-ui/data-entries/gdaui-entry.c
+++ b/libgda-ui/data-entries/gdaui-entry.c
@@ -103,6 +103,7 @@ gdaui_entry_get_type (void)
sizeof (GdauiEntry),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_entry_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_ENTRY, "GdauiEntry", &type_info, 0);
@@ -508,7 +509,7 @@ gdaui_entry_set_width_chars (GdauiEntry *entry, gint max_width)
*/
static void
-changed_cb (GtkEditable *editable, gpointer data)
+changed_cb (GtkEditable *editable, G_GNUC_UNUSED gpointer data)
{
GdauiEntry *entry = (GdauiEntry*) editable;
if (entry->priv->internal_changes > 0)
@@ -516,7 +517,7 @@ changed_cb (GtkEditable *editable, gpointer data)
}
static void
-delete_text_cb (GtkEditable *editable, gint start_pos, gint end_pos, gpointer data)
+delete_text_cb (GtkEditable *editable, gint start_pos, gint end_pos, G_GNUC_UNUSED gpointer data)
{
const gchar *otext = NULL;
gint len;
@@ -579,7 +580,8 @@ delete_text_cb (GtkEditable *editable, gint start_pos, gint end_pos, gpointer da
static void
-insert_text_cb (GtkEditable *editable, const gchar *text, gint text_length, gint *position, gpointer data)
+insert_text_cb (GtkEditable *editable, const gchar *text, gint text_length, gint *position,
+ G_GNUC_UNUSED gpointer data)
{
const gchar *otext;
gint clen;
diff --git a/libgda-ui/data-entries/gdaui-formatted-entry.c b/libgda-ui/data-entries/gdaui-formatted-entry.c
index 21775d7..e88132f 100644
--- a/libgda-ui/data-entries/gdaui-formatted-entry.c
+++ b/libgda-ui/data-entries/gdaui-formatted-entry.c
@@ -76,6 +76,7 @@ gdaui_formatted_entry_get_type (void)
sizeof (GdauiFormattedEntry),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_formatted_entry_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY, "GdauiFormattedEntry", &type_info, 0);
@@ -248,7 +249,7 @@ is_writable (GdauiFormattedEntry *fentry, gint pos, const gchar *ptr)
* Returns: %TRUE if @wc can be used to replace @ptr
*/
static gboolean
-is_allowed (GdauiFormattedEntry *fentry, const gchar *ptr, const gunichar wc, gunichar *out_wc)
+is_allowed (G_GNUC_UNUSED GdauiFormattedEntry *fentry, const gchar *ptr, const gunichar wc, gunichar *out_wc)
{
gunichar fwc;
@@ -306,7 +307,7 @@ gdaui_formatted_entry_get_empty_text (GdauiEntry *entry)
}
static void
-gdaui_formatted_entry_assume_insert (GdauiEntry *entry, const gchar *text, gint text_length,
+gdaui_formatted_entry_assume_insert (GdauiEntry *entry, const gchar *text, G_GNUC_UNUSED gint text_length,
gint *virt_pos, gint offset)
{
GdauiFormattedEntry *fentry;
diff --git a/libgda-ui/data-entries/gdaui-numeric-entry.c b/libgda-ui/data-entries/gdaui-numeric-entry.c
index 7360b16..cf8cb04 100644
--- a/libgda-ui/data-entries/gdaui-numeric-entry.c
+++ b/libgda-ui/data-entries/gdaui-numeric-entry.c
@@ -90,6 +90,7 @@ gdaui_numeric_entry_get_type (void)
sizeof (GdauiNumericEntry),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_numeric_entry_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY, "GdauiNumericEntry", &type_info, 0);
diff --git a/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c b/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c
index 26b8a13..18d3e72 100644
--- a/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c
+++ b/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c
@@ -119,6 +119,7 @@ gdaui_data_cell_renderer_password_get_type (void)
sizeof (GdauiDataCellRendererPassword),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_password_init,
+ 0
};
cell_text_type =
@@ -232,7 +233,7 @@ gdaui_data_cell_renderer_password_finalize (GObject *object)
static void
gdaui_data_cell_renderer_password_get_property (GObject *object,
guint param_id,
- GValue *value,
+ G_GNUC_UNUSED GValue *value,
GParamSpec *pspec)
{
switch (param_id) {
@@ -439,7 +440,7 @@ gdaui_data_cell_renderer_password_editing_done (GtkCellEditable *entry,
static gboolean
gdaui_data_cell_renderer_password_focus_out_event (GtkWidget *entry,
- GdkEvent *event,
+ G_GNUC_UNUSED GdkEvent *event,
gpointer data)
{
gdaui_data_cell_renderer_password_editing_done (GTK_CELL_EDITABLE (entry), data);
@@ -450,12 +451,12 @@ gdaui_data_cell_renderer_password_focus_out_event (GtkWidget *entry,
static GtkCellEditable *
gdaui_data_cell_renderer_password_start_editing (GtkCellRenderer *cell,
- GdkEvent *event,
- GtkWidget *widget,
+ G_GNUC_UNUSED GdkEvent *event,
+ G_GNUC_UNUSED GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *cell_area,
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererPassword *datacell;
GtkWidget *entry;
diff --git a/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c b/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c
index d3fa4a0..1493f4b 100644
--- a/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c
+++ b/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c
@@ -115,6 +115,7 @@ gdaui_data_cell_renderer_pict_get_type (void)
sizeof (GdauiDataCellRendererPict),
0, /* n_preallocs */
(GInstanceInitFunc) gdaui_data_cell_renderer_pict_init,
+ 0
};
cell_type = g_type_register_static (GTK_TYPE_CELL_RENDERER_PIXBUF, "GdauiDataCellRendererPict",
@@ -125,7 +126,7 @@ gdaui_data_cell_renderer_pict_get_type (void)
}
static void
-notify_property_cb (GtkCellRenderer *cell, GParamSpec *pspec, gpointer data)
+notify_property_cb (GtkCellRenderer *cell, GParamSpec *pspec, G_GNUC_UNUSED gpointer data)
{
if (!strcmp (pspec->name, "stock-size")) {
GdauiDataCellRendererPict *pictcell;
@@ -439,12 +440,12 @@ pict_data_changed_cb (GdauiDataCellRendererPict *pictcell)
static gboolean
gdaui_data_cell_renderer_pict_activate (GtkCellRenderer *cell,
- GdkEvent *event,
+ G_GNUC_UNUSED GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GtkCellRendererState flags)
+ G_GNUC_UNUSED GdkRectangle *background_area,
+ G_GNUC_UNUSED GdkRectangle *cell_area,
+ G_GNUC_UNUSED GtkCellRendererState flags)
{
GdauiDataCellRendererPict *pictcell;
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-cidr.c b/libgda-ui/data-entries/plugins/gdaui-entry-cidr.c
index b945123..2a54e5c 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-cidr.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-cidr.c
@@ -80,7 +80,8 @@ gdaui_entry_cidr_get_type (void)
NULL,
sizeof (GdauiEntryCidr),
0,
- (GInstanceInitFunc) gdaui_entry_cidr_init
+ (GInstanceInitFunc) gdaui_entry_cidr_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryCidr", &info, 0);
@@ -204,7 +205,7 @@ create_entry (GdauiEntryWrapper *mgwrap)
/* makes sure the mask part of the widget is compatible with the ip part */
static gboolean
-ip_focus_out_event_cb (GtkEntry *entry, GdkEventFocus *event, GdauiEntryCidr *mgcidr)
+ip_focus_out_event_cb (G_GNUC_UNUSED GtkEntry *entry, GdkEventFocus *event, GdauiEntryCidr *mgcidr)
{
gint ip;
@@ -230,13 +231,13 @@ ip_focus_out_event_cb (GtkEntry *entry, GdkEventFocus *event, GdauiEntryCidr *mg
}
}
- return FALSE;
+ return gtk_widget_event (GTK_WIDGET (mgcidr), (GdkEvent*) event);
}
/* makes sure the ip part of the widget is truncated to the right number of bits corresponding to
* the mask part */
static gboolean
-mask_focus_out_event_cb (GtkEntry *entry, GdkEventFocus *event, GdauiEntryCidr *mgcidr)
+mask_focus_out_event_cb (G_GNUC_UNUSED GtkEntry *entry, G_GNUC_UNUSED GdkEventFocus *event, GdauiEntryCidr *mgcidr)
{
gint mask;
@@ -249,7 +250,7 @@ mask_focus_out_event_cb (GtkEntry *entry, GdkEventFocus *event, GdauiEntryCidr *
static void popup_menu_item_activate_cb (GtkMenuItem *item, GdauiEntryCidr *mgcidr);
static void
-mask_popup (GtkEntry *entry, GtkMenu *arg1, GdauiEntryCidr *mgcidr)
+mask_popup (G_GNUC_UNUSED GtkEntry *entry, GtkMenu *arg1, GdauiEntryCidr *mgcidr)
{
GtkWidget *submenu, *item;
gint net;
@@ -375,7 +376,7 @@ real_set_value (GdauiEntryWrapper *mgwrap, const GValue *value)
static void truncate_entries_to_mask_length (GdauiEntryCidr *mgcidr, gboolean target_mask, guint mask_nb_bits)
{
- gint i, j;
+ guint i, j;
gchar *val;
guint mask, maskiter;
gint oldval, newval;
@@ -594,7 +595,7 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c b/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c
index c9831e4..e7ca003 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c
@@ -64,7 +64,8 @@ gdaui_entry_filesel_get_type (void)
NULL,
sizeof (GdauiEntryFilesel),
0,
- (GInstanceInitFunc) gdaui_entry_filesel_init
+ (GInstanceInitFunc) gdaui_entry_filesel_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryFilesel", &info, 0);
@@ -182,7 +183,7 @@ gdaui_entry_filesel_finalize (GObject * object)
}
static void
-button_clicled_cb (GtkWidget *button, GdauiEntryFilesel *filesel)
+button_clicked_cb (G_GNUC_UNUSED GtkWidget *button, GdauiEntryFilesel *filesel)
{
GtkWidget *dlg;
@@ -235,7 +236,7 @@ create_entry (GdauiEntryWrapper *mgwrap)
gtk_box_pack_start (GTK_BOX (hbox), wid, FALSE, TRUE, 5);
gtk_widget_show (wid);
g_signal_connect (G_OBJECT (wid), "clicked",
- G_CALLBACK (button_clicled_cb), filesel);
+ G_CALLBACK (button_clicked_cb), filesel);
return hbox;
}
@@ -314,7 +315,7 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-password.c b/libgda-ui/data-entries/plugins/gdaui-entry-password.c
index c53d883..2a0b9db 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-password.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-password.c
@@ -73,7 +73,8 @@ gdaui_entry_password_get_type (void)
NULL,
sizeof (GdauiEntryPassword),
0,
- (GInstanceInitFunc) gdaui_entry_password_init
+ (GInstanceInitFunc) gdaui_entry_password_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryPassword", &info, 0);
@@ -298,7 +299,7 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
@@ -318,7 +319,8 @@ signal_handlers_unblock (GdauiEntryPassword *mgstr)
}
static void
-entry_delete_text_cb (GtkEditable *editable, gint start_pos, gint end_pos, GdauiEntryPassword *mgstr)
+entry_delete_text_cb (GtkEditable *editable, G_GNUC_UNUSED gint start_pos, G_GNUC_UNUSED gint end_pos,
+ GdauiEntryPassword *mgstr)
{
if (!mgstr->priv->needs_encoding) {
mgstr->priv->needs_encoding = TRUE;
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-pict.c b/libgda-ui/data-entries/plugins/gdaui-entry-pict.c
index c64f915..f01d833 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-pict.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-pict.c
@@ -83,7 +83,8 @@ gdaui_entry_pict_get_type (void)
NULL,
sizeof (GdauiEntryPict),
0,
- (GInstanceInitFunc) gdaui_entry_pict_init
+ (GInstanceInitFunc) gdaui_entry_pict_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryPict", &info, 0);
@@ -211,7 +212,7 @@ static gboolean event_cb (GtkWidget *button, GdkEvent *event, GdauiEntryPict *mg
static void size_allocate_cb (GtkWidget *wid, GtkAllocation *allocation, GdauiEntryPict *mgpict);
static void
-realize_cb (GdauiEntryPict *mgpict, GdauiEntryWrapper *mgwrap)
+realize_cb (GdauiEntryPict *mgpict, G_GNUC_UNUSED GdauiEntryWrapper *mgwrap)
{
display_image (mgpict, NULL, NULL, NULL);
}
@@ -264,7 +265,7 @@ create_entry (GdauiEntryWrapper *mgwrap)
}
static void
-size_allocate_cb (GtkWidget *wid, GtkAllocation *allocation, GdauiEntryPict *mgpict)
+size_allocate_cb (G_GNUC_UNUSED GtkWidget *wid, GtkAllocation *allocation, GdauiEntryPict *mgpict)
{
if ((mgpict->priv->size.width != allocation->width) ||
(mgpict->priv->size.height != allocation->height)) {
@@ -434,13 +435,14 @@ real_get_value (GdauiEntryWrapper *mgwrap)
}
static void
-connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activate_cb)
+connect_signals(G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED GCallback modify_cb,
+ G_GNUC_UNUSED GCallback activate_cb)
{
- /* doe nothing because we manullay call gdaui_entry_wrapper_contents_changed() */
+ /* do nothing because we manually call gdaui_entry_wrapper_contents_changed() */
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return TRUE;
}
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-text.c b/libgda-ui/data-entries/plugins/gdaui-entry-text.c
index 8812881..d305725 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-text.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-text.c
@@ -81,7 +81,8 @@ gdaui_entry_text_get_type (void)
NULL,
sizeof (GdauiEntryText),
0,
- (GInstanceInitFunc) gdaui_entry_text_init
+ (GInstanceInitFunc) gdaui_entry_text_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryText", &info, 0);
@@ -390,7 +391,7 @@ focus_out_cb (GtkWidget *widget, GdkEventFocus *event, GdauiEntryText *mgtxt)
g_assert (activate_cb);
((Callback2)activate_cb) (widget, mgtxt);
- return FALSE;
+ return gtk_widget_event (GTK_WIDGET (mgtxt), (GdkEvent*) event);
}
static void
@@ -411,7 +412,7 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, gboolean horiz)
{
if (horiz)
return FALSE;
diff --git a/libgda-ui/data-entries/plugins/libmain.c b/libgda-ui/data-entries/plugins/libmain.c
index 8b83ff4..d622c0a 100644
--- a/libgda-ui/data-entries/plugins/libmain.c
+++ b/libgda-ui/data-entries/plugins/libmain.c
@@ -272,7 +272,7 @@ plugin_entry_filesel_create_func (GdaDataHandler *handler, GType type, const gch
}
static GdauiDataEntry *
-plugin_entry_cidr_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+plugin_entry_cidr_create_func (GdaDataHandler *handler, GType type, G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_cidr_new (handler, type);
}
diff --git a/libgda-ui/data-entries/widget-embedder.c b/libgda-ui/data-entries/widget-embedder.c
index bca0506..a578734 100644
--- a/libgda-ui/data-entries/widget-embedder.c
+++ b/libgda-ui/data-entries/widget-embedder.c
@@ -42,7 +42,7 @@ static GType widget_embedder_child_type (GtkContainer *container);
G_DEFINE_TYPE (WidgetEmbedder, widget_embedder, GTK_TYPE_CONTAINER);
static void
-to_child (WidgetEmbedder *bin,
+to_child (G_GNUC_UNUSED WidgetEmbedder *bin,
double widget_x,
double widget_y,
double *x_out,
@@ -53,7 +53,7 @@ to_child (WidgetEmbedder *bin,
}
static void
-to_parent (WidgetEmbedder *bin,
+to_parent (G_GNUC_UNUSED WidgetEmbedder *bin,
double offscreen_x,
double offscreen_y,
double *x_out,
@@ -100,7 +100,7 @@ widget_embedder_new (void)
}
static GdkWindow *
-pick_offscreen_child (GdkWindow *offscreen_window,
+pick_offscreen_child (G_GNUC_UNUSED GdkWindow *offscreen_window,
double widget_x,
double widget_y,
WidgetEmbedder *bin)
@@ -121,7 +121,7 @@ pick_offscreen_child (GdkWindow *offscreen_window,
}
static void
-offscreen_window_to_parent (GdkWindow *offscreen_window,
+offscreen_window_to_parent (G_GNUC_UNUSED GdkWindow *offscreen_window,
double offscreen_x,
double offscreen_y,
double *parent_x,
@@ -132,7 +132,7 @@ offscreen_window_to_parent (GdkWindow *offscreen_window,
}
static void
-offscreen_window_from_parent (GdkWindow *window,
+offscreen_window_from_parent (G_GNUC_UNUSED GdkWindow *window,
double parent_x,
double parent_y,
double *offscreen_x,
@@ -274,7 +274,7 @@ widget_embedder_remove (GtkContainer *container,
static void
widget_embedder_forall (GtkContainer *container,
- gboolean include_internals,
+ G_GNUC_UNUSED gboolean include_internals,
GtkCallback callback,
gpointer callback_data)
{
@@ -353,7 +353,7 @@ widget_embedder_size_allocate (GtkWidget *widget,
static gboolean
widget_embedder_damage (GtkWidget *widget,
- GdkEventExpose *event)
+ G_GNUC_UNUSED GdkEventExpose *event)
{
gdk_window_invalidate_rect (gtk_widget_get_window (widget), NULL, FALSE);
diff --git a/libgda-ui/demos/cloud.c b/libgda-ui/demos/cloud.c
index c054a9a..8dbd4aa 100644
--- a/libgda-ui/demos/cloud.c
+++ b/libgda-ui/demos/cloud.c
@@ -21,11 +21,11 @@ mode_changed_cb (GtkToggleButton *button, GdauiCloud *cloud)
}
static void
-selection_changed_cb (GdauiDataSelector *selector, gpointer data)
+selection_changed_cb (GdauiDataSelector *selector, G_GNUC_UNUSED gpointer data)
{
GString *string = NULL;
GArray *sel;
- gint i;
+ gsize i;
sel = gdaui_data_selector_get_selected_rows (selector);
if (sel) {
diff --git a/libgda-ui/demos/combo.c b/libgda-ui/demos/combo.c
index 596541d..cbf1c8c 100644
--- a/libgda-ui/demos/combo.c
+++ b/libgda-ui/demos/combo.c
@@ -34,11 +34,11 @@ column_show_changed_cb (GtkCheckButton *cbutton, GdauiCombo *combo)
}
static void
-selection_changed_cb (GdauiDataSelector *selector, gpointer data)
+selection_changed_cb (GdauiDataSelector *selector, G_GNUC_UNUSED gpointer data)
{
GString *string = NULL;
GArray *sel;
- gint i;
+ gsize i;
sel = gdaui_data_selector_get_selected_rows (selector);
if (sel) {
diff --git a/libgda-ui/demos/ddl_queries.c b/libgda-ui/demos/ddl_queries.c
index 91b92c1..ee48419 100644
--- a/libgda-ui/demos/ddl_queries.c
+++ b/libgda-ui/demos/ddl_queries.c
@@ -156,7 +156,7 @@ do_ddl_queries (GtkWidget *do_widget)
}
static void
-tested_provider_changed_cb (GdauiProviderSelector *prov_sel, DemoData *data)
+tested_provider_changed_cb (G_GNUC_UNUSED GdauiProviderSelector *prov_sel, DemoData *data)
{
if (data->prov) {
g_object_unref (data->prov);
@@ -221,7 +221,7 @@ get_provider_obj (DemoData *data)
}
static void
-tested_operation_changed_cb (GdauiCombo *combo, DemoData *data)
+tested_operation_changed_cb (G_GNUC_UNUSED GdauiCombo *combo, DemoData *data)
{
GdaServerProvider *prov = NULL;
GdaServerOperationType type;
@@ -391,7 +391,7 @@ extract_named_parameters (GdaServerOperation *op, const gchar *root_path, GtkTex
}
static void
-show_named_parameters (GtkButton *button, DemoData *data)
+show_named_parameters (G_GNUC_UNUSED GtkButton *button, DemoData *data)
{
GtkWidget *dlg, *label;
gchar **root_nodes;
@@ -449,7 +449,7 @@ show_named_parameters (GtkButton *button, DemoData *data)
}
static void
-show_sql (GtkButton *button, DemoData *data)
+show_sql (G_GNUC_UNUSED GtkButton *button, DemoData *data)
{
GdaServerProvider *prov;
@@ -477,7 +477,7 @@ show_sql (GtkButton *button, DemoData *data)
dlg = gtk_message_dialog_new_with_markup (GTK_WINDOW (data->top_window),
GTK_DIALOG_MODAL,
- msg_type, GTK_BUTTONS_CLOSE, msg);
+ msg_type, GTK_BUTTONS_CLOSE, "%s", msg);
g_free (sql);
g_free (msg);
diff --git a/libgda-ui/demos/linked_model_param.c b/libgda-ui/demos/linked_model_param.c
index f3e9c30..618a72b 100644
--- a/libgda-ui/demos/linked_model_param.c
+++ b/libgda-ui/demos/linked_model_param.c
@@ -12,7 +12,7 @@ extern GdaSqlParser *demo_parser;
static GtkWidget *window = NULL;
static void
-salesrep_changed_cb (GdaHolder *holder, gpointer data)
+salesrep_changed_cb (GdaHolder *holder, G_GNUC_UNUSED gpointer data)
{
gchar *str;
str = gda_value_stringify (gda_holder_get_value (holder));
diff --git a/libgda-ui/demos/login.c b/libgda-ui/demos/login.c
index 528063d..5499274 100644
--- a/libgda-ui/demos/login.c
+++ b/libgda-ui/demos/login.c
@@ -8,7 +8,7 @@
static GtkWidget *window = NULL;
static void
-cb1_toggled_cb (GtkCheckButton *cb, GtkWidget *login)
+cb1_toggled_cb (G_GNUC_UNUSED GtkCheckButton *cb, GtkWidget *login)
{
GdauiLoginMode mode;
g_object_get (G_OBJECT (login), "mode", &mode, NULL);
@@ -17,7 +17,7 @@ cb1_toggled_cb (GtkCheckButton *cb, GtkWidget *login)
}
static void
-cb2_toggled_cb (GtkCheckButton *cb, GtkWidget *login)
+cb2_toggled_cb (G_GNUC_UNUSED GtkCheckButton *cb, GtkWidget *login)
{
GdauiLoginMode mode;
g_object_get (G_OBJECT (login), "mode", &mode, NULL);
@@ -26,7 +26,7 @@ cb2_toggled_cb (GtkCheckButton *cb, GtkWidget *login)
}
static void
-cb3_toggled_cb (GtkCheckButton *cb, GtkWidget *login)
+cb3_toggled_cb (G_GNUC_UNUSED GtkCheckButton *cb, GtkWidget *login)
{
GdauiLoginMode mode;
g_object_get (G_OBJECT (login), "mode", &mode, NULL);
@@ -35,7 +35,7 @@ cb3_toggled_cb (GtkCheckButton *cb, GtkWidget *login)
}
static void
-button_clicked_cb (GtkButton *button, GtkWidget *login)
+button_clicked_cb (G_GNUC_UNUSED GtkButton *button, GtkWidget *login)
{
const GdaDsnInfo *info;
info = gdaui_login_get_connection_information (GDAUI_LOGIN (login));
@@ -49,7 +49,7 @@ button_clicked_cb (GtkButton *button, GtkWidget *login)
}
static void
-login_changed_cb (GdauiLogin *login, gboolean is_valid, GtkLabel *label)
+login_changed_cb (G_GNUC_UNUSED GdauiLogin *login, gboolean is_valid, GtkLabel *label)
{
if (is_valid)
gtk_label_set_markup (label, "<span foreground='#00AA00'>Valid information</span>");
diff --git a/libgda-ui/demos/main.c b/libgda-ui/demos/main.c
index fb6102e..459930a 100644
--- a/libgda-ui/demos/main.c
+++ b/libgda-ui/demos/main.c
@@ -73,7 +73,7 @@ demo_find_file (const char *base, GError **err)
}
static void
-window_closed_cb (GtkWidget *window, gpointer data)
+window_closed_cb (G_GNUC_UNUSED GtkWidget *window, gpointer data)
{
CallbackData *cbdata = data;
GtkTreeIter iter;
@@ -453,11 +453,11 @@ load_file (const gchar *filename)
q--;
if (q > p) {
- int len_chars = g_utf8_pointer_to_offset (p, q);
+ glong len_chars = g_utf8_pointer_to_offset (p, q);
end = start;
- g_assert (strlen (p) >= q - p);
+ g_assert (strlen (p) >= (gsize)(q - p));
gtk_text_buffer_insert (info_buffer, &end, p, q - p);
start = end;
@@ -479,7 +479,7 @@ load_file (const gchar *filename)
state++;
}
else {
- int len;
+ gsize len;
while (*p == '*' || g_ascii_isspace (*p))
p++;
@@ -531,7 +531,7 @@ load_file (const gchar *filename)
void
row_activated_cb (GtkTreeView *tree_view,
GtkTreePath *path,
- GtkTreeViewColumn *column)
+ G_GNUC_UNUSED GtkTreeViewColumn *column)
{
GtkTreeIter iter;
PangoStyle style;
@@ -573,17 +573,19 @@ selection_cb (GtkTreeSelection *selection,
GtkTreeModel *model)
{
GtkTreeIter iter;
- GValue value = {0, };
+ GValue *value;
if (! gtk_tree_selection_get_selected (selection, NULL, &iter))
return;
+ value = g_slice_new0(GValue);
gtk_tree_model_get_value (model, &iter,
FILENAME_COLUMN,
- &value);
- if (g_value_get_string (&value))
- load_file (g_value_get_string (&value));
- g_value_unset (&value);
+ value);
+ if (g_value_get_string (value))
+ load_file (g_value_get_string (value));
+ g_value_unset (value);
+ g_slice_free(GValue, value);
}
static GtkWidget *
diff --git a/libgda-ui/demos/provider_sel.c b/libgda-ui/demos/provider_sel.c
index a7ed1a5..b3f3a69 100644
--- a/libgda-ui/demos/provider_sel.c
+++ b/libgda-ui/demos/provider_sel.c
@@ -9,7 +9,7 @@
static GtkWidget *window = NULL;
static void
-selection_changed_cb (GdauiProviderSelector *psel, gpointer data)
+selection_changed_cb (GdauiProviderSelector *psel, G_GNUC_UNUSED gpointer data)
{
g_print ("Provider selected: %s\n", gdaui_provider_selector_get_provider (psel));
}
diff --git a/libgda-ui/demos/tree.c b/libgda-ui/demos/tree.c
index 9f04dcb..715885d 100644
--- a/libgda-ui/demos/tree.c
+++ b/libgda-ui/demos/tree.c
@@ -73,7 +73,7 @@ timout_cb (GdaTreeNode *node)
static GSList *
node_func (GdaTreeManager *manager, GdaTreeNode *node, const GSList *children_nodes,
- gboolean *out_error, GError **error)
+ G_GNUC_UNUSED gboolean *out_error, G_GNUC_UNUSED GError **error)
{
if (children_nodes) {
/* we don't create or modify already created GdaTreeNode object => simply ref them */
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index 751018c..e772999 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -184,7 +184,8 @@ gdaui_basic_form_get_type (void)
NULL,
sizeof (GdauiBasicForm),
0,
- (GInstanceInitFunc) gdaui_basic_form_init
+ (GInstanceInitFunc) gdaui_basic_form_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "GdauiBasicForm", &info, 0);
@@ -370,7 +371,7 @@ get_rid_of_set (GdaSet *paramlist, GdauiBasicForm *form)
}
static void
-paramlist_holder_type_set_cb (GdaSet *paramlist, GdaHolder *param,
+paramlist_holder_type_set_cb (G_GNUC_UNUSED GdaSet *paramlist, GdaHolder *param,
GdauiBasicForm *form)
{
SingleEntry *sentry;
@@ -388,7 +389,7 @@ paramlist_holder_type_set_cb (GdaSet *paramlist, GdaHolder *param,
static void
-paramlist_public_data_changed_cb (GdauiSet *paramlist, GdauiBasicForm *form)
+paramlist_public_data_changed_cb (G_GNUC_UNUSED GdauiSet *paramlist, GdauiBasicForm *form)
{
/* here we want to re-define all the data entry widgets */
destroy_entries (form);
@@ -398,8 +399,9 @@ paramlist_public_data_changed_cb (GdauiSet *paramlist, GdauiBasicForm *form)
}
static void
-paramlist_param_attr_changed_cb (GdaSet *paramlist, GdaHolder *param,
- const gchar *att_name, const GValue *att_value, GdauiBasicForm *form)
+paramlist_param_attr_changed_cb (G_GNUC_UNUSED GdaSet *paramlist, GdaHolder *param,
+ const gchar *att_name, G_GNUC_UNUSED const GValue *att_value,
+ GdauiBasicForm *form)
{
SingleEntry *sentry;
@@ -638,7 +640,7 @@ disconnect_single_entry_signals (SingleEntry *sentry)
sd->holder = NULL;
}
if (sentry->group_signals) {
- gint i;
+ gsize i;
for (i = 0; i < sentry->group_signals->len; i++) {
SignalData sd = g_array_index (sentry->group_signals, SignalData,
i);
@@ -1340,7 +1342,7 @@ mark_not_null_entry_labels (GdauiBasicForm *form, gboolean show_mark)
}
static void
-entry_contents_activated (GdauiDataEntry *entry, GdauiBasicForm *form)
+entry_contents_activated (G_GNUC_UNUSED GdauiDataEntry *entry, GdauiBasicForm *form)
{
g_signal_emit (G_OBJECT (form), gdaui_basic_form_signals[ACTIVATED], 0);
}
@@ -1447,7 +1449,7 @@ entry_contents_modified (GdauiDataEntry *entry, SingleEntry *sentry)
}
static void
-entry_expand_changed_cb (GdauiDataEntry *entry, SingleEntry *sentry)
+entry_expand_changed_cb (G_GNUC_UNUSED GdauiDataEntry *entry, SingleEntry *sentry)
{
pack_entry_widget (sentry);
}
@@ -2048,7 +2050,8 @@ gdaui_basic_form_new_in_dialog (GdaSet *data_set, GtkWindow *parent,
}
static void
-form_holder_changed (GdauiBasicForm *form, GdaHolder *param, gboolean is_user_modif, GtkDialog *dlg)
+form_holder_changed (GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param,
+ G_GNUC_UNUSED gboolean is_user_modif, GtkDialog *dlg)
{
gboolean valid;
diff --git a/libgda-ui/gdaui-cloud.c b/libgda-ui/gdaui-cloud.c
index 65901b2..5e1608a 100644
--- a/libgda-ui/gdaui-cloud.c
+++ b/libgda-ui/gdaui-cloud.c
@@ -104,7 +104,8 @@ gdaui_cloud_get_type (void)
NULL,
sizeof (GdauiCloud),
0,
- (GInstanceInitFunc) gdaui_cloud_init
+ (GInstanceInitFunc) gdaui_cloud_init,
+ 0
};
static const GInterfaceInfo selector_info = {
@@ -441,7 +442,7 @@ gdaui_cloud_dispose (GObject *object)
}
static void
-model_reset_cb (GdaDataModel *model, GdauiCloud *cloud)
+model_reset_cb (G_GNUC_UNUSED GdaDataModel *model, GdauiCloud *cloud)
{
update_display (cloud);
}
@@ -723,7 +724,7 @@ set_cursor_if_appropriate (GtkTextView *text_view, gint x, gint y, GdauiCloud *c
* (e.g. when a window covering it got iconified).
*/
static gboolean
-visibility_notify_event (GtkWidget *text_view, GdkEventVisibility *event, GdauiCloud *cloud)
+visibility_notify_event (GtkWidget *text_view, G_GNUC_UNUSED GdkEventVisibility *event, GdauiCloud *cloud)
{
gint wx, wy, bx, by;
@@ -761,7 +762,7 @@ motion_notify_event (GtkWidget *text_view, GdkEventMotion *event, GdauiCloud *cl
* by the data attached to it.
*/
static void
-follow_if_link (GtkWidget *text_view, GtkTextIter *iter, GdauiCloud *cloud)
+follow_if_link (G_GNUC_UNUSED GtkWidget *text_view, GtkTextIter *iter, GdauiCloud *cloud)
{
GSList *tags = NULL, *tagp;
@@ -1231,7 +1232,8 @@ cloud_selector_unselect_row (GdauiDataSelector *iface, gint row)
}
static void
-cloud_selector_set_column_visible (GdauiDataSelector *iface, gint column, gboolean visible)
+cloud_selector_set_column_visible (G_GNUC_UNUSED GdauiDataSelector *iface, G_GNUC_UNUSED gint column,
+ G_GNUC_UNUSED gboolean visible)
{
/* nothing to do */
}
diff --git a/libgda-ui/gdaui-combo.c b/libgda-ui/gdaui-combo.c
index 13874b0..7dffeac 100644
--- a/libgda-ui/gdaui-combo.c
+++ b/libgda-ui/gdaui-combo.c
@@ -96,7 +96,8 @@ gdaui_combo_get_type (void)
NULL,
sizeof (GdauiCombo),
0,
- (GInstanceInitFunc) gdaui_combo_init
+ (GInstanceInitFunc) gdaui_combo_init,
+ 0
};
static const GInterfaceInfo selector_info = {
@@ -149,7 +150,7 @@ gdaui_combo_selector_init (GdauiDataSelectorIface *iface)
static void selection_changed_cb (GtkComboBox *widget, gpointer data);
static void
-gdaui_combo_init (GdauiCombo *combo, GdauiComboClass *klass)
+gdaui_combo_init (GdauiCombo *combo, G_GNUC_UNUSED GdauiComboClass *klass)
{
g_return_if_fail (GDAUI_IS_COMBO (combo));
@@ -185,7 +186,7 @@ sync_iter_with_selection (GdauiCombo *combo)
}
static void
-selection_changed_cb (GtkComboBox *widget, gpointer data)
+selection_changed_cb (GtkComboBox *widget, G_GNUC_UNUSED gpointer data)
{
sync_iter_with_selection ((GdauiCombo *)widget);
g_signal_emit_by_name (widget, "selection-changed");
@@ -476,8 +477,8 @@ gdaui_combo_set_model (GdauiCombo *combo, GdaDataModel *model, gint n_cols, gint
}
static void
-cell_layout_data_func (GtkCellLayout *cell_layout, GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, GdauiCombo *combo)
+cell_layout_data_func (G_GNUC_UNUSED GtkCellLayout *cell_layout, GtkCellRenderer *cell,
+ GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED GdauiCombo *combo)
{
GdaDataHandler *dh;
gint colnum;
@@ -510,7 +511,7 @@ _gdaui_combo_set_selected (GdauiCombo *combo, const GSList *values)
{
g_return_val_if_fail (GDAUI_IS_COMBO (combo), FALSE);
g_return_val_if_fail (combo->priv->cols_index, FALSE);
- g_return_val_if_fail (g_slist_length ((GSList *) values) == combo->priv->n_cols, FALSE);
+ g_return_val_if_fail (g_slist_length ((GSList *) values) == (guint)combo->priv->n_cols, FALSE);
return _gdaui_combo_set_selected_ext (combo, values, combo->priv->cols_index);
}
diff --git a/libgda-ui/gdaui-data-entry.c b/libgda-ui/gdaui-data-entry.c
index 2dbf139..75e5ee0 100644
--- a/libgda-ui/gdaui-data-entry.c
+++ b/libgda-ui/gdaui-data-entry.c
@@ -49,7 +49,8 @@ gdaui_data_entry_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
type = g_type_register_static (G_TYPE_INTERFACE, "GdauiDataEntry", &info, 0);
@@ -58,10 +59,10 @@ gdaui_data_entry_get_type (void)
}
static gboolean
-contents_valid_accumulator (GSignalInvocationHint *ihint,
+contents_valid_accumulator (G_GNUC_UNUSED GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
gboolean thisvalue;
@@ -72,7 +73,7 @@ contents_valid_accumulator (GSignalInvocationHint *ihint,
}
static gboolean
-m_class_contents_valid (GdauiDataEntry *de, GError **error)
+m_class_contents_valid (G_GNUC_UNUSED GdauiDataEntry *de, G_GNUC_UNUSED GError **error)
{
return TRUE;
}
diff --git a/libgda-ui/gdaui-data-filter.c b/libgda-ui/gdaui-data-filter.c
index 0473047..c578fd7 100644
--- a/libgda-ui/gdaui-data-filter.c
+++ b/libgda-ui/gdaui-data-filter.c
@@ -81,7 +81,8 @@ gdaui_data_filter_get_type (void)
NULL,
sizeof (GdauiDataFilter),
0,
- (GInstanceInitFunc) gdaui_data_filter_init
+ (GInstanceInitFunc) gdaui_data_filter_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "GdauiDataFilter", &filter, 0);
@@ -133,7 +134,7 @@ unset_wait_cursor (GtkWidget *w)
}
static void
-apply_filter_cb (GtkButton *button, GdauiDataFilter *filter)
+apply_filter_cb (G_GNUC_UNUSED GtkButton *button, GdauiDataFilter *filter)
{
const gchar *expr;
gchar *err = NULL;
@@ -293,7 +294,7 @@ release_proxy (GdauiDataFilter *filter)
}
static void
-data_widget_proxy_changed_cb (GdauiDataProxy *data_widget, GdaDataProxy *proxy, GdauiDataFilter *filter)
+data_widget_proxy_changed_cb (GdauiDataProxy *data_widget, G_GNUC_UNUSED GdaDataProxy *proxy, GdauiDataFilter *filter)
{
g_object_set (G_OBJECT (filter), "data-widget", data_widget, NULL);
}
diff --git a/libgda-ui/gdaui-data-proxy-info.c b/libgda-ui/gdaui-data-proxy-info.c
index 070f69f..08e83e0 100644
--- a/libgda-ui/gdaui-data-proxy-info.c
+++ b/libgda-ui/gdaui-data-proxy-info.c
@@ -91,7 +91,8 @@ gdaui_data_proxy_info_get_type (void)
NULL,
sizeof (GdauiDataProxyInfo),
0,
- (GInstanceInitFunc) gdaui_data_proxy_info_init
+ (GInstanceInitFunc) gdaui_data_proxy_info_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_HBOX, "GdauiDataProxyInfo", &info, 0);
@@ -196,7 +197,7 @@ release_iter (GdauiDataProxyInfo *info)
}
static void
-data_proxy_proxy_changed_cb (GdauiDataProxy *data_proxy, GdaDataProxy *proxy, GdauiDataProxyInfo *info)
+data_proxy_proxy_changed_cb (GdauiDataProxy *data_proxy, G_GNUC_UNUSED GdaDataProxy *proxy, GdauiDataProxyInfo *info)
{
g_object_set (G_OBJECT (info), "data-proxy", data_proxy, NULL);
}
@@ -338,31 +339,32 @@ gdaui_data_proxy_info_get_property (GObject *object,
static void
-proxy_changed_cb (GdaDataProxy *proxy, GdauiDataProxyInfo *info)
+proxy_changed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, G_GNUC_UNUSED GdauiDataProxyInfo *info)
{
modif_buttons_update (info);
}
static void
-proxy_sample_changed_cb (GdaDataProxy *proxy, gint sample_start, gint sample_end, GdauiDataProxyInfo *info)
+proxy_sample_changed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, G_GNUC_UNUSED gint sample_start,
+ G_GNUC_UNUSED gint sample_end, G_GNUC_UNUSED GdauiDataProxyInfo *info)
{
modif_buttons_update (info);
}
static void
-proxy_row_changed_cb (GdaDataProxy *proxy, gint row, GdauiDataProxyInfo *info)
+proxy_row_changed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, G_GNUC_UNUSED gint row, GdauiDataProxyInfo *info)
{
modif_buttons_update (info);
}
static void
-iter_row_changed_cb (GdaDataModelIter *iter, gint row, GdauiDataProxyInfo *info)
+iter_row_changed_cb (G_GNUC_UNUSED GdaDataModelIter *iter, G_GNUC_UNUSED gint row, GdauiDataProxyInfo *info)
{
modif_buttons_update (info);
}
static void
-raw_grid_selection_changed_cb (GdauiRawGrid *grid, GdauiDataProxyInfo *info)
+raw_grid_selection_changed_cb (G_GNUC_UNUSED GdauiRawGrid *grid, GdauiDataProxyInfo *info)
{
modif_buttons_update (info);
}
diff --git a/libgda-ui/gdaui-data-proxy.c b/libgda-ui/gdaui-data-proxy.c
index 65879ae..40f3163 100644
--- a/libgda-ui/gdaui-data-proxy.c
+++ b/libgda-ui/gdaui-data-proxy.c
@@ -51,7 +51,8 @@ gdaui_data_proxy_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
type = g_type_register_static (G_TYPE_INTERFACE, "GdauiDataProxy", &info, 0);
@@ -62,7 +63,7 @@ gdaui_data_proxy_get_type (void)
static void
-gdaui_data_proxy_iface_init (gpointer g_class)
+gdaui_data_proxy_iface_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
diff --git a/libgda-ui/gdaui-data-selector.c b/libgda-ui/gdaui-data-selector.c
index b5a3952..29223a5 100644
--- a/libgda-ui/gdaui-data-selector.c
+++ b/libgda-ui/gdaui-data-selector.c
@@ -51,7 +51,8 @@ gdaui_data_selector_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
type = g_type_register_static (G_TYPE_INTERFACE, "GdauiDataSelector", &info, 0);
@@ -62,7 +63,7 @@ gdaui_data_selector_get_type (void)
static void
-gdaui_data_selector_iface_init (gpointer g_class)
+gdaui_data_selector_iface_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
diff --git a/libgda-ui/gdaui-data-store.c b/libgda-ui/gdaui-data-store.c
index 250bd09..13e0caa 100644
--- a/libgda-ui/gdaui-data-store.c
+++ b/libgda-ui/gdaui-data-store.c
@@ -85,7 +85,8 @@ gdaui_data_store_get_type (void)
NULL,
sizeof (GdauiDataStore),
0,
- (GInstanceInitFunc) gdaui_data_store_init
+ (GInstanceInitFunc) gdaui_data_store_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -154,7 +155,7 @@ gdaui_data_store_init (GdauiDataStore *store)
}
static void
-row_inserted_cb (GdaDataProxy *proxy, gint row, GtkTreeModel *store)
+row_inserted_cb (G_GNUC_UNUSED GdaDataProxy *proxy, gint row, GtkTreeModel *store)
{
GtkTreePath *path;
GtkTreeIter iter;
@@ -169,7 +170,7 @@ row_inserted_cb (GdaDataProxy *proxy, gint row, GtkTreeModel *store)
}
static void
-row_updated_cb (GdaDataProxy *proxy, gint row, GtkTreeModel *store)
+row_updated_cb (G_GNUC_UNUSED GdaDataProxy *proxy, gint row, GtkTreeModel *store)
{
GtkTreePath *path;
GtkTreeIter iter;
@@ -183,7 +184,7 @@ row_updated_cb (GdaDataProxy *proxy, gint row, GtkTreeModel *store)
}
static void
-row_removed_cb (GdaDataProxy *proxy, gint row, GtkTreeModel *store)
+row_removed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, gint row, GtkTreeModel *store)
{
GtkTreePath *path;
@@ -247,7 +248,7 @@ static void
gdaui_data_store_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiDataStore *store;
@@ -297,7 +298,7 @@ static void
gdaui_data_store_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiDataStore *store;
@@ -817,7 +818,7 @@ data_store_iter_children (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIt
}
static gboolean
-data_store_iter_has_child (GtkTreeModel *tree_model, GtkTreeIter *iter)
+data_store_iter_has_child (G_GNUC_UNUSED GtkTreeModel *tree_model, G_GNUC_UNUSED GtkTreeIter *iter)
{
return FALSE;
}
@@ -859,7 +860,7 @@ data_store_iter_nth_child (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeI
}
static gboolean
-data_store_iter_parent (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *child)
+data_store_iter_parent (G_GNUC_UNUSED GtkTreeModel *tree_model, G_GNUC_UNUSED GtkTreeIter *iter, G_GNUC_UNUSED GtkTreeIter *child)
{
return FALSE;
}
diff --git a/libgda-ui/gdaui-form.c b/libgda-ui/gdaui-form.c
index 58cdb4f..c78b50a 100644
--- a/libgda-ui/gdaui-form.c
+++ b/libgda-ui/gdaui-form.c
@@ -92,7 +92,8 @@ gdaui_form_get_type (void)
NULL,
sizeof (GdauiForm),
0,
- (GInstanceInitFunc) gdaui_form_init
+ (GInstanceInitFunc) gdaui_form_init,
+ 0
};
static const GInterfaceInfo proxy_info = {
@@ -169,7 +170,7 @@ gdaui_form_class_init (GdauiFormClass *class)
}
static void
-form_layout_changed_cb (GdauiBasicForm *raw_form, GdauiForm *form)
+form_layout_changed_cb (G_GNUC_UNUSED GdauiBasicForm *raw_form, GdauiForm *form)
{
gboolean expand;
g_object_get (G_OBJECT (form->priv->raw_form), "can-expand-v", &expand, NULL);
diff --git a/libgda-ui/gdaui-grid.c b/libgda-ui/gdaui-grid.c
index 72b035c..2b8452c 100644
--- a/libgda-ui/gdaui-grid.c
+++ b/libgda-ui/gdaui-grid.c
@@ -92,7 +92,8 @@ gdaui_grid_get_type (void)
NULL,
sizeof (GdauiGrid),
0,
- (GInstanceInitFunc) gdaui_grid_init
+ (GInstanceInitFunc) gdaui_grid_init,
+ 0
};
static const GInterfaceInfo proxy_info = {
diff --git a/libgda-ui/gdaui-init.c b/libgda-ui/gdaui-init.c
index b9d6f1f..234509d 100644
--- a/libgda-ui/gdaui-init.c
+++ b/libgda-ui/gdaui-init.c
@@ -525,19 +525,20 @@ init_plugins_hash (void)
}
static GdauiDataEntry *
-entry_none_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+entry_none_create_func (G_GNUC_UNUSED GdaDataHandler *handler, GType type, G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_none_new (type);
}
static GdauiDataEntry *
-entry_boolean_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+entry_boolean_create_func (GdaDataHandler *handler, G_GNUC_UNUSED GType type,
+ G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_boolean_new (handler, G_TYPE_BOOLEAN);
}
static GdauiDataEntry *
-entry_bin_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+entry_bin_create_func (GdaDataHandler *handler, GType type, G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_bin_new (handler, type);
}
@@ -555,19 +556,20 @@ entry_number_create_func (GdaDataHandler *handler, GType type, const gchar *opti
}
static GdauiDataEntry *
-entry_time_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+entry_time_create_func (GdaDataHandler *handler, G_GNUC_UNUSED GType type, G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_time_new (handler);
}
static GdauiDataEntry *
-entry_timestamp_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+entry_timestamp_create_func (GdaDataHandler *handler, G_GNUC_UNUSED GType type,
+ G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_timestamp_new (handler);
}
static GdauiDataEntry *
-entry_date_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+entry_date_create_func (GdaDataHandler *handler, G_GNUC_UNUSED GType type, G_GNUC_UNUSED const gchar *options)
{
return (GdauiDataEntry *) gdaui_entry_date_new (handler);
}
@@ -579,13 +581,14 @@ cell_textual_create_func (GdaDataHandler *handler, GType type, const gchar *opti
}
static GtkCellRenderer *
-cell_boolean_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+cell_boolean_create_func (GdaDataHandler *handler, G_GNUC_UNUSED GType type,
+ G_GNUC_UNUSED const gchar *options)
{
return gdaui_data_cell_renderer_boolean_new (handler, G_TYPE_BOOLEAN);
}
static GtkCellRenderer *
-cell_bin_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+cell_bin_create_func (GdaDataHandler *handler, GType type, G_GNUC_UNUSED const gchar *options)
{
return gdaui_data_cell_renderer_bin_new (handler, type);
}
diff --git a/libgda-ui/gdaui-login.c b/libgda-ui/gdaui-login.c
index ad3a52c..9c3e69b 100644
--- a/libgda-ui/gdaui-login.c
+++ b/libgda-ui/gdaui-login.c
@@ -129,7 +129,7 @@ gdaui_login_class_init (GdauiLoginClass *klass)
}
static void
-config_dsn_changed_cb (GdaConfig *config, GdaDsnInfo *dsn, GdauiLogin *login)
+config_dsn_changed_cb (G_GNUC_UNUSED GdaConfig *config, GdaDsnInfo *dsn, GdauiLogin *login)
{
if (!login->priv->prov_selector)
return;
@@ -142,7 +142,7 @@ config_dsn_changed_cb (GdaConfig *config, GdaDsnInfo *dsn, GdauiLogin *login)
}
static void
-gdaui_login_init (GdauiLogin *login, GdauiLoginClass *klass)
+gdaui_login_init (GdauiLogin *login, G_GNUC_UNUSED GdauiLoginClass *klass)
{
GtkWidget *table;
GtkWidget *wid;
@@ -324,7 +324,8 @@ gdaui_login_get_type (void)
NULL,
sizeof (GdauiLogin),
0,
- (GInstanceInitFunc) gdaui_login_init
+ (GInstanceInitFunc) gdaui_login_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "GdauiLogin", &info, 0);
}
@@ -377,7 +378,7 @@ radio_button_use_dsn_toggled_cb (GtkToggleButton *button, GdauiLogin *login)
}
static void
-run_cc_cb (GtkButton *button, GdauiLogin *login)
+run_cc_cb (G_GNUC_UNUSED GtkButton *button, GdauiLogin *login)
{
char *argv[2];
gboolean sresult;
@@ -476,7 +477,7 @@ prov_entry_changed_cb (GdauiProviderSelector *sel, GdauiLogin *login)
}
static void
-cnc_params_editor_changed_cb (GdauiProviderSpecEditor *editor, GdauiLogin *login)
+cnc_params_editor_changed_cb (G_GNUC_UNUSED GdauiProviderSpecEditor *editor, GdauiLogin *login)
{
g_signal_emit (login, gdaui_login_signals [CHANGED], 0, settings_are_valid (login));
}
@@ -492,7 +493,7 @@ cnc_params_editor_changed_cb (GdauiProviderSpecEditor *editor, GdauiLogin *login
* Since: 4.2
*/
GtkWidget *
-gdaui_login_new (const gchar *dsn)
+gdaui_login_new (G_GNUC_UNUSED const gchar *dsn)
{
GtkWidget *login;
diff --git a/libgda-ui/gdaui-provider-selector.c b/libgda-ui/gdaui-provider-selector.c
index 3c89541..38c2c01 100644
--- a/libgda-ui/gdaui-provider-selector.c
+++ b/libgda-ui/gdaui-provider-selector.c
@@ -78,7 +78,7 @@ gdaui_provider_selector_class_init (GdauiProviderSelectorClass *klass)
static void
gdaui_provider_selector_init (GdauiProviderSelector *selector,
- GdauiProviderSelectorClass *klass)
+ G_GNUC_UNUSED GdauiProviderSelectorClass *klass)
{
g_return_if_fail (GDAUI_IS_PROVIDER_SELECTOR (selector));
@@ -114,7 +114,8 @@ gdaui_provider_selector_get_type (void)
NULL,
sizeof (GdauiProviderSelector),
0,
- (GInstanceInitFunc) gdaui_provider_selector_init
+ (GInstanceInitFunc) gdaui_provider_selector_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_COMBO, "GdauiProviderSelector", &info, 0);
}
diff --git a/libgda-ui/gdaui-raw-form.c b/libgda-ui/gdaui-raw-form.c
index 8bef604..6b3e24c 100644
--- a/libgda-ui/gdaui-raw-form.c
+++ b/libgda-ui/gdaui-raw-form.c
@@ -110,7 +110,8 @@ gdaui_raw_form_get_type (void)
NULL,
sizeof (GdauiRawForm),
0,
- (GInstanceInitFunc) gdaui_raw_form_init
+ (GInstanceInitFunc) gdaui_raw_form_init,
+ 0
};
static const GInterfaceInfo proxy_info = {
@@ -212,7 +213,7 @@ static GtkActionEntry ui_actions[] = {
};
static void
-action_new_activated_cb (GtkAction *action, GdauiRawForm *wid)
+action_new_activated_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *wid)
{
/* make the first entry grab the focus */
if (wid->priv->iter && GDA_SET (wid->priv->iter)->holders)
@@ -222,7 +223,7 @@ action_new_activated_cb (GtkAction *action, GdauiRawForm *wid)
}
static void
-form_activated_cb (GdauiRawForm *form, gpointer data)
+form_activated_cb (GdauiRawForm *form, G_GNUC_UNUSED gpointer data)
{
if (form->priv->write_mode == GDAUI_DATA_PROXY_WRITE_ON_VALUE_ACTIVATED) {
gint row;
@@ -246,7 +247,7 @@ form_activated_cb (GdauiRawForm *form, gpointer data)
}
static void
-form_holder_changed_cb (GdauiRawForm *form, gpointer data)
+form_holder_changed_cb (GdauiRawForm *form, G_GNUC_UNUSED gpointer data)
{
if (form->priv->write_mode == GDAUI_DATA_PROXY_WRITE_ON_VALUE_CHANGE) {
gint row;
@@ -556,7 +557,7 @@ iter_row_changed_cb (GdaDataModelIter *iter, gint row, GdauiRawForm *form)
}
static void
-proxy_changed_cb (GdaDataProxy *proxy, GdauiRawForm *form)
+proxy_changed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, GdauiRawForm *form)
{
/* TO remove ? */
gtk_widget_set_sensitive (GTK_WIDGET (form),
@@ -572,7 +573,7 @@ proxy_reset_cb (GdaDataProxy *proxy, GdauiRawForm *form)
}
static void
-proxy_row_inserted_or_removed_cb (GdaDataProxy *proxy, gint row, GdauiRawForm *form)
+proxy_row_inserted_or_removed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, gint row, GdauiRawForm *form)
{
if (gda_data_model_get_n_rows (GDA_DATA_MODEL (form->priv->proxy)) != 0)
if (gda_data_model_iter_get_row (form->priv->iter) == -1)
@@ -585,7 +586,7 @@ proxy_row_inserted_or_removed_cb (GdaDataProxy *proxy, gint row, GdauiRawForm *f
*
*/
static void
-action_new_cb (GtkAction *action, GdauiRawForm *form)
+action_new_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
gint newrow;
GError *error = NULL;
@@ -635,7 +636,7 @@ action_new_cb (GtkAction *action, GdauiRawForm *form)
}
static void
-action_delete_cb (GtkAction *action, GdauiRawForm *form)
+action_delete_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
gint row;
@@ -660,7 +661,7 @@ action_delete_cb (GtkAction *action, GdauiRawForm *form)
}
static void
-action_undelete_cb (GtkAction *action, GdauiRawForm *form)
+action_undelete_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
gint row;
@@ -670,7 +671,7 @@ action_undelete_cb (GtkAction *action, GdauiRawForm *form)
}
static void
-action_commit_cb (GtkAction *action, GdauiRawForm *form)
+action_commit_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
gint row;
GError *error = NULL;
@@ -710,7 +711,7 @@ action_commit_cb (GtkAction *action, GdauiRawForm *form)
}
static void
-action_reset_cb (GtkAction *action, GdauiRawForm *form)
+action_reset_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
gda_data_proxy_cancel_all_changes (form->priv->proxy);
gda_data_model_send_hint (GDA_DATA_MODEL (form->priv->proxy), GDA_DATA_MODEL_HINT_REFRESH, NULL);
@@ -718,25 +719,25 @@ action_reset_cb (GtkAction *action, GdauiRawForm *form)
static void arrow_actions_real_do (GdauiRawForm *form, gint movement);
static void
-action_first_record_cb (GtkAction *action, GdauiRawForm *form)
+action_first_record_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
arrow_actions_real_do (form, -2);
}
static void
-action_prev_record_cb (GtkAction *action, GdauiRawForm *form)
+action_prev_record_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
arrow_actions_real_do (form, -1);
}
static void
-action_next_record_cb (GtkAction *action, GdauiRawForm *form)
+action_next_record_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
arrow_actions_real_do (form, 1);
}
static void
-action_last_record_cb (GtkAction *action, GdauiRawForm *form)
+action_last_record_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
arrow_actions_real_do (form, 2);
}
@@ -749,14 +750,14 @@ hide_filter_window (GdauiRawForm *form)
}
static gboolean
-filter_event (GtkWidget *widget, GdkEventAny *event, GdauiRawForm *form)
+filter_event (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED GdkEventAny *event, GdauiRawForm *form)
{
hide_filter_window (form);
return TRUE;
}
static gboolean
-key_press_filter_event (GtkWidget *widget, GdkEventKey *event, GdauiRawForm *form)
+key_press_filter_event (G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, GdauiRawForm *form)
{
if (event->keyval == GDK_KEY_Escape ||
event->keyval == GDK_KEY_Tab ||
@@ -771,7 +772,7 @@ key_press_filter_event (GtkWidget *widget, GdkEventKey *event, GdauiRawForm *for
static void
filter_position_func (GtkWidget *widget,
GtkWidget *search_dialog,
- gpointer user_data)
+ G_GNUC_UNUSED gpointer user_data)
{
gint x, y;
gint tree_x, tree_y;
@@ -833,7 +834,7 @@ popup_grab_on_window (GdkWindow *window,
}
static void
-action_filter_cb (GtkAction *action, GdauiRawForm *form)
+action_filter_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawForm *form)
{
GtkWidget *toplevel;
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (form));
@@ -947,7 +948,7 @@ gdaui_raw_form_get_proxy (GdauiDataProxy *iface)
}
void
-gdaui_raw_form_set_column_editable (GdauiDataProxy *iface, gint column, gboolean editable)
+gdaui_raw_form_set_column_editable (GdauiDataProxy *iface, G_GNUC_UNUSED gint column, G_GNUC_UNUSED gboolean editable)
{
GdauiRawForm *form;
@@ -966,7 +967,7 @@ gdaui_raw_form_set_column_editable (GdauiDataProxy *iface, gint column, gboolean
}
static void
-gdaui_raw_form_show_column_actions (GdauiDataProxy *iface, gint column, gboolean show_actions)
+gdaui_raw_form_show_column_actions (GdauiDataProxy *iface, G_GNUC_UNUSED gint column, gboolean show_actions)
{
GdauiRawForm *form;
@@ -1081,7 +1082,7 @@ gdaui_raw_form_selector_select_row (GdauiDataSelector *iface, gint row)
}
static void
-gdaui_raw_form_selector_unselect_row (GdauiDataSelector *iface, gint row)
+gdaui_raw_form_selector_unselect_row (G_GNUC_UNUSED GdauiDataSelector *iface, G_GNUC_UNUSED gint row)
{
g_warning ("%s() method not supported\n", __FUNCTION__);
}
diff --git a/libgda-ui/gdaui-raw-grid.c b/libgda-ui/gdaui-raw-grid.c
index c1bef8a..9990f53 100644
--- a/libgda-ui/gdaui-raw-grid.c
+++ b/libgda-ui/gdaui-raw-grid.c
@@ -207,7 +207,8 @@ gdaui_raw_grid_get_type (void)
NULL,
sizeof (GdauiRawGrid),
0,
- (GInstanceInitFunc) gdaui_raw_grid_init
+ (GInstanceInitFunc) gdaui_raw_grid_init,
+ 0
};
static const GInterfaceInfo proxy_info = {
@@ -304,7 +305,7 @@ gdaui_raw_grid_query_tooltip (GtkWidget *widget,
gint y,
gboolean keyboard_tip,
GtkTooltip *tooltip,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
@@ -314,7 +315,7 @@ gdaui_raw_grid_query_tooltip (GtkWidget *widget,
return FALSE;
gint position = 0;
- guint col_x = 0;
+ gint col_x = 0;
GList *list, *columns = gtk_tree_view_get_columns (tree_view);
for (list = columns; list; list = list->next) {
GtkTreeViewColumn *column = list->data;
@@ -935,9 +936,9 @@ reset_columns_in_xml_layout (GdauiRawGrid *grid, xmlNodePtr grid_node)
* called by each cell renderer before actually displaying anything.
*/
static void
-cell_value_set_attributes (GtkTreeViewColumn *tree_column,
+cell_value_set_attributes (G_GNUC_UNUSED GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
- GtkTreeModel *tree_model,
+ G_GNUC_UNUSED GtkTreeModel *tree_model,
GtkTreeIter *iter, GdauiRawGrid *grid)
{
GdauiSetGroup *group;
@@ -1051,7 +1052,7 @@ cell_value_set_attributes (GtkTreeViewColumn *tree_column,
static void
cell_info_set_attributes (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
- GtkTreeModel *tree_model,
+ G_GNUC_UNUSED GtkTreeModel *tree_model,
GtkTreeIter *iter, GdauiRawGrid *grid)
{
GdauiSetGroup *group;
@@ -1145,7 +1146,7 @@ data_cell_value_changed (GtkCellRenderer *renderer, const gchar *path, const GVa
*/
static void
data_cell_values_changed (GtkCellRenderer *renderer, const gchar *path,
- GSList *new_values, GSList *all_new_values, GdauiRawGrid *grid)
+ GSList *new_values, G_GNUC_UNUSED GSList *all_new_values, GdauiRawGrid *grid)
{
GtkTreeIter iter;
GdauiSetGroup *group;
@@ -1317,7 +1318,7 @@ data_cell_status_changed (GtkCellRenderer *renderer, const gchar *path, GdaValue
}
static void
-action_new_cb (GtkAction *action, GdauiRawGrid *grid)
+action_new_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
GtkTreeIter iter;
GtkTreePath *path;
@@ -1330,7 +1331,7 @@ action_new_cb (GtkAction *action, GdauiRawGrid *grid)
}
static void
-action_delete_cb (GtkAction *action, GdauiRawGrid *grid)
+action_delete_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
GtkTreeIter iter;
GtkTreeSelection *select;
@@ -1360,7 +1361,7 @@ action_delete_cb (GtkAction *action, GdauiRawGrid *grid)
}
static void
-action_undelete_cb (GtkAction *action, GdauiRawGrid *grid)
+action_undelete_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
GtkTreeIter iter;
GtkTreeSelection *select;
@@ -1380,7 +1381,7 @@ action_undelete_cb (GtkAction *action, GdauiRawGrid *grid)
}
static void
-action_commit_cb (GtkAction *action, GdauiRawGrid *grid)
+action_commit_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
gint row;
GError *error = NULL;
@@ -1418,20 +1419,20 @@ action_commit_cb (GtkAction *action, GdauiRawGrid *grid)
}
static void
-action_reset_cb (GtkAction *action, GdauiRawGrid *grid)
+action_reset_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
gda_data_proxy_cancel_all_changes (grid->priv->proxy);
gda_data_model_send_hint (GDA_DATA_MODEL (grid->priv->proxy), GDA_DATA_MODEL_HINT_REFRESH, NULL);
}
static void
-action_first_chunck_cb (GtkAction *action, GdauiRawGrid *grid)
+action_first_chunck_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
gda_data_proxy_set_sample_start (grid->priv->proxy, 0);
}
static void
-action_prev_chunck_cb (GtkAction *action, GdauiRawGrid *grid)
+action_prev_chunck_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
gint sample_size, sample_start;
@@ -1444,7 +1445,7 @@ action_prev_chunck_cb (GtkAction *action, GdauiRawGrid *grid)
}
static void
-action_next_chunck_cb (GtkAction *action, GdauiRawGrid *grid)
+action_next_chunck_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
gint sample_size, sample_start;
@@ -1457,7 +1458,7 @@ action_next_chunck_cb (GtkAction *action, GdauiRawGrid *grid)
}
static void
-action_last_chunck_cb (GtkAction *action, GdauiRawGrid *grid)
+action_last_chunck_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
gda_data_proxy_set_sample_start (grid->priv->proxy, G_MAXINT);
}
@@ -1470,14 +1471,14 @@ hide_filter_window (GdauiRawGrid *grid)
}
static gboolean
-filter_event (GtkWidget *widget, GdkEventAny *event, GdauiRawGrid *grid)
+filter_event (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED GdkEventAny *event, GdauiRawGrid *grid)
{
hide_filter_window (grid);
return TRUE;
}
static gboolean
-key_press_filter_event (GtkWidget *widget, GdkEventKey *event, GdauiRawGrid *grid)
+key_press_filter_event (G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, GdauiRawGrid *grid)
{
if (event->keyval == GDK_KEY_Escape ||
event->keyval == GDK_KEY_Tab ||
@@ -1492,7 +1493,7 @@ key_press_filter_event (GtkWidget *widget, GdkEventKey *event, GdauiRawGrid *gri
static void
filter_position_func (GtkWidget *widget,
GtkWidget *search_dialog,
- gpointer user_data)
+ G_GNUC_UNUSED gpointer user_data)
{
gint x, y;
gint tree_x, tree_y;
@@ -1555,7 +1556,7 @@ popup_grab_on_window (GdkWindow *window,
}
static void
-action_filter_cb (GtkAction *action, GdauiRawGrid *grid)
+action_filter_cb (G_GNUC_UNUSED GtkAction *action, GdauiRawGrid *grid)
{
GtkWidget *toplevel;
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (grid));
@@ -1706,7 +1707,7 @@ static GtkWidget *new_check_menu_item (const gchar *label,
gpointer user_data);
static gint
-tree_view_popup_button_pressed_cb (GtkWidget *widget, GdkEventButton *event, GdauiRawGrid *grid)
+tree_view_popup_button_pressed_cb (G_GNUC_UNUSED GtkWidget *widget, GdkEventButton *event, GdauiRawGrid *grid)
{
GtkWidget *menu;
GtkTreeView *tree_view;
@@ -1795,7 +1796,7 @@ new_check_menu_item (const gchar *label,
}
static void
-menu_select_all_cb (GtkWidget *widget, GdauiRawGrid *grid)
+menu_select_all_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
{
GtkTreeSelection *selection;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (grid));
@@ -1804,7 +1805,7 @@ menu_select_all_cb (GtkWidget *widget, GdauiRawGrid *grid)
}
static void
-menu_unselect_all_cb (GtkWidget *widget, GdauiRawGrid *grid)
+menu_unselect_all_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
{
GtkTreeSelection *selection;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (grid));
@@ -1825,10 +1826,9 @@ menu_show_columns_cb (GtkWidget *widget, GdauiRawGrid *grid)
}
static void export_type_changed_cb (GtkComboBox *types, GtkWidget *dialog);
-static void save_as_response_cb (GtkDialog *dialog, guint response_id, GdauiRawGrid *grid);
-
+static void save_as_response_cb (GtkDialog *dialog, gint response_id, GdauiRawGrid *grid);
static void
-menu_save_as_cb (GtkWidget *widget, GdauiRawGrid *grid)
+menu_save_as_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
{
GtkWidget *dialog;
GtkWidget *label;
@@ -2002,7 +2002,7 @@ export_type_changed_cb (GtkComboBox *types, GtkWidget *dialog)
static gboolean confirm_file_overwrite (GtkWindow *parent, const gchar *path);
static void
-save_as_response_cb (GtkDialog *dialog, guint response_id, GdauiRawGrid *grid)
+save_as_response_cb (GtkDialog *dialog, gint response_id, GdauiRawGrid *grid)
{
GtkWidget *types;
gint export_type;
@@ -2198,20 +2198,21 @@ confirm_file_overwrite (GtkWindow *parent, const gchar *path)
}
static void
-menu_set_filter_cb (GtkWidget *widget, GdauiRawGrid *grid)
+menu_set_filter_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
{
action_filter_cb (NULL, grid);
}
static void
-menu_unset_filter_cb (GtkWidget *widget, GdauiRawGrid *grid)
+menu_unset_filter_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
{
gda_data_proxy_set_filter_expr (grid->priv->proxy, NULL, NULL);
}
static void
-tree_view_row_activated_cb (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, GdauiRawGrid *grid)
+tree_view_row_activated_cb (G_GNUC_UNUSED GtkTreeView *tree_view, GtkTreePath *path,
+ G_GNUC_UNUSED GtkTreeViewColumn *column, GdauiRawGrid *grid)
{
gint *indices;
@@ -2553,7 +2554,7 @@ gdaui_raw_grid_get_actions_group (GdauiDataProxy *iface)
}
static void
-paramlist_public_data_changed_cb (GdauiSet *info, GdauiRawGrid *grid)
+paramlist_public_data_changed_cb (G_GNUC_UNUSED GdauiSet *info, GdauiRawGrid *grid)
{
/* info cells */
destroy_column_data (grid);
@@ -2562,7 +2563,7 @@ paramlist_public_data_changed_cb (GdauiSet *info, GdauiRawGrid *grid)
}
static void
-paramlist_param_attr_changed_cb (GdaSet *paramlist, GdaHolder *param,
+paramlist_param_attr_changed_cb (G_GNUC_UNUSED GdaSet *paramlist, GdaHolder *param,
const gchar *att_name, const GValue *att_value, GdauiRawGrid *grid)
{
if (!strcmp (att_name, GDAUI_ATTRIBUTE_PLUGIN)) {
@@ -2648,7 +2649,7 @@ iter_validate_set_cb (GdaDataModelIter *iter, GdauiRawGrid *grid)
}
static void
-iter_row_changed_cb (GdaDataModelIter *iter, gint row, GdauiRawGrid *grid)
+iter_row_changed_cb (G_GNUC_UNUSED GdaDataModelIter *iter, gint row, GdauiRawGrid *grid)
{
GtkTreeSelection *selection;
GtkTreePath *path;
@@ -2677,7 +2678,8 @@ iter_row_changed_cb (GdaDataModelIter *iter, gint row, GdauiRawGrid *grid)
}
static void
-proxy_sample_changed_cb (GdaDataProxy *proxy, gint sample_start, gint sample_end, GdauiRawGrid *grid)
+proxy_sample_changed_cb (G_GNUC_UNUSED GdaDataProxy *proxy, G_GNUC_UNUSED gint sample_start,
+ G_GNUC_UNUSED gint sample_end, GdauiRawGrid *grid)
{
/* bring back the vertical scrollbar to the top */
gtk_adjustment_set_value (gtk_tree_view_get_vadjustment (GTK_TREE_VIEW (grid)), 0.);
diff --git a/libgda-ui/gdaui-server-operation.c b/libgda-ui/gdaui-server-operation.c
index 305da32..7732770 100644
--- a/libgda-ui/gdaui-server-operation.c
+++ b/libgda-ui/gdaui-server-operation.c
@@ -170,7 +170,8 @@ gdaui_server_operation_get_type (void)
NULL,
sizeof (GdauiServerOperation),
0,
- (GInstanceInitFunc) gdaui_server_operation_init
+ (GInstanceInitFunc) gdaui_server_operation_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "GdauiServerOperation", &info, 0);
@@ -1148,7 +1149,8 @@ static void create_table_grid_fields_iter_row_changed_cb (GdaDataModelIter *grid
static void create_table_proxy_row_inserted_cb (GdaDataProxy *proxy, gint row, GdauiServerOperation *form);
static GtkWidget *
create_table_fields_array_create_widget (GdauiServerOperation *form, const gchar *path,
- gchar **section_str, GSList **label_widgets)
+ G_GNUC_UNUSED gchar **section_str,
+ G_GNUC_UNUSED GSList **label_widgets)
{
GdaServerOperationNode *info_node;
GtkWidget *hlayout, *sw, *box, *label;
diff --git a/libgda-ui/gdaui-set.c b/libgda-ui/gdaui-set.c
index 2a353c8..b5ea72f 100644
--- a/libgda-ui/gdaui-set.c
+++ b/libgda-ui/gdaui-set.c
@@ -83,7 +83,8 @@ _gdaui_set_get_type (void)
NULL,
sizeof (GdauiSet),
0,
- (GInstanceInitFunc) gdaui_set_init
+ (GInstanceInitFunc) gdaui_set_init,
+ 0
};
type = g_type_register_static (G_TYPE_OBJECT, "GdauiSet", &info, 0);
@@ -226,7 +227,7 @@ gdaui_set_set_property (GObject *object,
}
static void
-wrapped_set_public_data_changed_cb (GdaSet *wset, GdauiSet *set)
+wrapped_set_public_data_changed_cb (G_GNUC_UNUSED GdaSet *wset, GdauiSet *set)
{
clean_public_data (set);
compute_public_data (set);
@@ -234,7 +235,7 @@ wrapped_set_public_data_changed_cb (GdaSet *wset, GdauiSet *set)
}
static void
-wrapped_set_source_model_changed_cb (GdaSet *wset, GdaSetSource *source, GdauiSet *set)
+wrapped_set_source_model_changed_cb (G_GNUC_UNUSED GdaSet *wset, GdaSetSource *source, GdauiSet *set)
{
GdauiSetSource *uisource;
GSList *list;
diff --git a/libgda-ui/gdaui-tree-store.c b/libgda-ui/gdaui-tree-store.c
index 0d44d3c..a289fd6 100644
--- a/libgda-ui/gdaui-tree-store.c
+++ b/libgda-ui/gdaui-tree-store.c
@@ -141,7 +141,8 @@ gdaui_tree_store_get_type (void)
NULL,
sizeof (GdauiTreeStore),
0,
- (GInstanceInitFunc) gdaui_tree_store_init
+ (GInstanceInitFunc) gdaui_tree_store_init,
+ 0
};
static const GInterfaceInfo tree_model_info = {
@@ -293,7 +294,7 @@ gdaui_tree_store_dispose (GObject *object)
if (store->priv) {
if (store->priv->column_specs) {
- gint i;
+ gsize i;
for (i = 0; i < store->priv->column_specs->len; i++) {
ColumnSpec *cs;
cs = g_array_index (store->priv->column_specs, ColumnSpec*, i);
@@ -329,7 +330,7 @@ static void
gdaui_tree_store_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiTreeStore *store;
@@ -364,7 +365,7 @@ static void
gdaui_tree_store_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiTreeStore *store;
@@ -402,7 +403,7 @@ gdaui_tree_store_new (GdaTree *tree, guint n_columns, ...)
{
GObject *obj;
va_list args;
- gint i;
+ guint i;
GdauiTreeStore *store;
g_return_val_if_fail (GDA_IS_TREE (tree), NULL);
@@ -449,7 +450,7 @@ GtkTreeModel *
gdaui_tree_store_newv (GdaTree *tree, guint n_columns, GType *types, const gchar **attribute_names)
{
GObject *obj;
- gint i;
+ guint i;
GdauiTreeStore *store;
g_return_val_if_fail (GDA_IS_TREE (tree), NULL);
@@ -861,7 +862,7 @@ tree_node_has_child_toggled_cb (GdaTree *tree, GdaTreeNode *node, GdauiTreeStore
}
static void
-tree_node_deleted_cb (GdaTree *tree, const gchar *node_path, GdauiTreeStore *store)
+tree_node_deleted_cb (G_GNUC_UNUSED GdaTree *tree, const gchar *node_path, GdauiTreeStore *store)
{
GtkTreePath *path;
diff --git a/libgda-ui/internal/gdaui-dsn-selector.c b/libgda-ui/internal/gdaui-dsn-selector.c
index 302dbce..3753b90 100644
--- a/libgda-ui/internal/gdaui-dsn-selector.c
+++ b/libgda-ui/internal/gdaui-dsn-selector.c
@@ -77,7 +77,7 @@ gdaui_dsn_selector_class_init (GdauiDsnSelectorClass *klass)
static void
gdaui_dsn_selector_init (GdauiDsnSelector *selector,
- GdauiDsnSelectorClass *klass)
+ G_GNUC_UNUSED GdauiDsnSelectorClass *klass)
{
GdaDataModel *model;
gint cols_index[] = {0};
@@ -109,7 +109,7 @@ static void
gdaui_dsn_selector_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiDsnSelector *selector;
GSList *list;
@@ -129,7 +129,7 @@ static void
gdaui_dsn_selector_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiDsnSelector *selector;
GSList *list;
@@ -164,7 +164,8 @@ _gdaui_dsn_selector_get_type (void)
NULL,
sizeof (GdauiDsnSelector),
0,
- (GInstanceInitFunc) gdaui_dsn_selector_init
+ (GInstanceInitFunc) gdaui_dsn_selector_init,
+ 0
};
type = g_type_from_name ("GdauiDsnSelector");
if (type == 0)
diff --git a/libgda-ui/internal/gdaui-provider-auth-editor.c b/libgda-ui/internal/gdaui-provider-auth-editor.c
index 3dd414b..4af2dee 100644
--- a/libgda-ui/internal/gdaui-provider-auth-editor.c
+++ b/libgda-ui/internal/gdaui-provider-auth-editor.c
@@ -97,7 +97,7 @@ gdaui_provider_auth_editor_class_init (GdauiProviderAuthEditorClass *klass)
}
static void
-auth_form_changed (GdauiBasicForm *form, GdaHolder *param, gboolean is_user_modif,
+auth_form_changed (G_GNUC_UNUSED GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param, gboolean is_user_modif,
GdauiProviderAuthEditor *auth)
{
if (! is_user_modif)
@@ -107,7 +107,8 @@ auth_form_changed (GdauiBasicForm *form, GdaHolder *param, gboolean is_user_modi
}
static void
-gdaui_provider_auth_editor_init (GdauiProviderAuthEditor *auth, GdauiProviderAuthEditorClass *klass)
+gdaui_provider_auth_editor_init (GdauiProviderAuthEditor *auth,
+ G_GNUC_UNUSED GdauiProviderAuthEditorClass *klass)
{
g_return_if_fail (GDAUI_IS_PROVIDER_AUTH_EDITOR (auth));
@@ -146,7 +147,7 @@ static void
gdaui_provider_auth_editor_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pauth)
+ G_GNUC_UNUSED GParamSpec *pauth)
{
GdauiProviderAuthEditor *auth;
auth = GDAUI_PROVIDER_AUTH_EDITOR (object);
@@ -162,7 +163,7 @@ static void
gdaui_provider_auth_editor_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pauth)
+ G_GNUC_UNUSED GParamSpec *pauth)
{
GdauiProviderAuthEditor *auth;
auth = GDAUI_PROVIDER_AUTH_EDITOR (object);
@@ -189,7 +190,8 @@ _gdaui_provider_auth_editor_get_type (void)
NULL,
sizeof (GdauiProviderAuthEditor),
0,
- (GInstanceInitFunc) gdaui_provider_auth_editor_init
+ (GInstanceInitFunc) gdaui_provider_auth_editor_init,
+ 0
};
type = g_type_from_name ("GdauiProviderAuthEditor");
if (type == 0)
diff --git a/libgda-ui/internal/gdaui-provider-spec-editor.c b/libgda-ui/internal/gdaui-provider-spec-editor.c
index 3960c13..ed60fe3 100644
--- a/libgda-ui/internal/gdaui-provider-spec-editor.c
+++ b/libgda-ui/internal/gdaui-provider-spec-editor.c
@@ -168,7 +168,7 @@ update_form_contents (GdauiProviderSpecEditor *spec)
}
static void
-dsn_form_changed (GdauiBasicForm *form, GdaHolder *param, gboolean is_user_modif, GdauiProviderSpecEditor *spec)
+dsn_form_changed (G_GNUC_UNUSED GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param, gboolean is_user_modif, GdauiProviderSpecEditor *spec)
{
if (! is_user_modif)
return;
@@ -230,7 +230,8 @@ adapt_form_widget (GdauiProviderSpecEditor *spec)
static void
-gdaui_provider_spec_editor_init (GdauiProviderSpecEditor *spec, GdauiProviderSpecEditorClass *klass)
+gdaui_provider_spec_editor_init (GdauiProviderSpecEditor *spec,
+ G_GNUC_UNUSED GdauiProviderSpecEditorClass *klass)
{
g_return_if_fail (GDAUI_IS_PROVIDER_SPEC_EDITOR (spec));
@@ -283,7 +284,7 @@ static void
gdaui_provider_spec_editor_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiProviderSpecEditor *spec;
spec = GDAUI_PROVIDER_SPEC_EDITOR (object);
@@ -300,7 +301,7 @@ static void
gdaui_provider_spec_editor_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdauiProviderSpecEditor *spec;
spec = GDAUI_PROVIDER_SPEC_EDITOR (object);
@@ -327,7 +328,8 @@ _gdaui_provider_spec_editor_get_type (void)
NULL,
sizeof (GdauiProviderSpecEditor),
0,
- (GInstanceInitFunc) gdaui_provider_spec_editor_init
+ (GInstanceInitFunc) gdaui_provider_spec_editor_init,
+ 0
};
type = g_type_from_name ("GdauiProviderSpecEditor");
if (type == 0)
diff --git a/libgda-ui/internal/popup-container.c b/libgda-ui/internal/popup-container.c
index 1e55a79..6d893d7 100644
--- a/libgda-ui/internal/popup-container.c
+++ b/libgda-ui/internal/popup-container.c
@@ -56,7 +56,7 @@ popup_container_class_init (PopupContainerClass *klass)
}
static gboolean
-delete_popup (GtkWidget *widget, PopupContainer *container)
+delete_popup (G_GNUC_UNUSED GtkWidget *widget, PopupContainer *container)
{
gtk_widget_hide (GTK_WIDGET (container));
gtk_grab_remove (GTK_WIDGET (container));
@@ -102,7 +102,7 @@ button_press_popup (GtkWidget *widget, GdkEventButton *event, PopupContainer *co
}
static void
-popup_container_init (PopupContainer *container, PopupContainerClass *klass)
+popup_container_init (PopupContainer *container, G_GNUC_UNUSED PopupContainerClass *klass)
{
container->priv = g_new0 (PopupContainerPrivate, 1);
container->priv->position_func = NULL;
@@ -140,7 +140,7 @@ popup_container_dispose (GObject *object)
}
static void
-default_position_func (PopupContainer *container, gint *out_x, gint *out_y)
+default_position_func (G_GNUC_UNUSED PopupContainer *container, gint *out_x, gint *out_y)
{
gdk_display_get_pointer (gdk_display_get_default (), NULL,
out_x, out_y, NULL);
@@ -241,7 +241,8 @@ popup_container_get_type (void)
NULL,
sizeof (PopupContainer),
0,
- (GInstanceInitFunc) popup_container_init
+ (GInstanceInitFunc) popup_container_init,
+ 0
};
#ifdef PRIV_OBJ_PREFIX
type = g_type_register_static (GTK_TYPE_WINDOW, PRIV_OBJ_PREFIX "GdauiPopupContainer",
diff --git a/libgda-ui/internal/utility.c b/libgda-ui/internal/utility.c
index 0058ad8..5c1a5b7 100644
--- a/libgda-ui/internal/utility.c
+++ b/libgda-ui/internal/utility.c
@@ -600,7 +600,7 @@ _gdaui_setup_right_click_selection_on_treeview (GtkTreeView *tview)
}
static gboolean
-tree_view_button_pressed_cb (GtkWidget *widget, GdkEventButton *event, gpointer unuseddata)
+tree_view_button_pressed_cb (GtkWidget *widget, GdkEventButton *event, G_GNUC_UNUSED gpointer data)
{
GtkTreeView *tree_view;
GtkTreeSelection *selection;
diff --git a/libgda-xslt/sql_backend.c b/libgda-xslt/sql_backend.c
index 08ff6c7..6053eb9 100644
--- a/libgda-xslt/sql_backend.c
+++ b/libgda-xslt/sql_backend.c
@@ -104,7 +104,7 @@ gda_xslt_holder_set_value (GdaHolder *param, xsltTransformContextPtr ctxt)
int
gda_xslt_bk_section (GdaXsltExCont * exec, GdaXsltIntCont * pdata,
xsltTransformContextPtr ctxt, xmlNodePtr node,
- xmlNodePtr inst, xsltStylePreCompPtr comp)
+ xmlNodePtr inst, G_GNUC_UNUSED xsltStylePreCompPtr comp)
{
xmlNode *cur_node = NULL;
xmlNode *query_node = NULL;
@@ -252,8 +252,8 @@ gda_xslt_bk_fun_getvalue (xmlChar * set, xmlChar * name, GdaXsltExCont * exec,
}
xmlXPathObjectPtr
-gda_xslt_bk_fun_checkif (xmlChar * setname, xmlChar * sql_condition,
- GdaXsltExCont * exec, GdaXsltIntCont * pdata)
+gda_xslt_bk_fun_checkif (G_GNUC_UNUSED xmlChar * setname, G_GNUC_UNUSED xmlChar * sql_condition,
+ G_GNUC_UNUSED GdaXsltExCont * exec, G_GNUC_UNUSED GdaXsltIntCont * pdata)
{
return xmlXPathNewBoolean (1);
}
@@ -263,7 +263,7 @@ gda_xslt_bk_fun_checkif (xmlChar * setname, xmlChar * sql_condition,
/* utility functions */
static void
set_resultset_value (GdaXsltIntCont * pdata, const char *resultset_name,
- GObject * result, GError ** error)
+ GObject * result, G_GNUC_UNUSED GError ** error)
{
#ifdef GDA_DEBUG_NO
g_print ("new resultset: name[%s]", resultset_name);
@@ -587,12 +587,6 @@ gtype_equal (gconstpointer a, gconstpointer b)
return (GType) a == (GType) b ? TRUE : FALSE;
}
-static guint
-gtype_hash (gconstpointer key)
-{
- return (guint) key;
-}
-
static xmlChar *
value_to_xmlchar (const GValue * value)
{
@@ -609,7 +603,7 @@ value_to_xmlchar (const GValue * value)
if (!data_handlers) {
/* initialize the internal data handlers */
data_handlers =
- g_hash_table_new_full (gtype_hash, gtype_equal,
+ g_hash_table_new_full (g_direct_hash, gtype_equal,
NULL, (GDestroyNotify)
g_object_unref);
diff --git a/libgda-xslt/sql_exslt_internal.c b/libgda-xslt/sql_exslt_internal.c
index 9cc796e..161ecc6 100644
--- a/libgda-xslt/sql_exslt_internal.c
+++ b/libgda-xslt/sql_exslt_internal.c
@@ -107,8 +107,8 @@ gda_xslt_extension_init (xsltTransformContextPtr ctxt, const xmlChar * URI)
}
void
-gda_xslt_extension_shutdown (xsltTransformContextPtr ctxt,
- const xmlChar * URI, void *data)
+gda_xslt_extension_shutdown (G_GNUC_UNUSED xsltTransformContextPtr ctxt,
+ G_GNUC_UNUSED const xmlChar * URI, void *data)
{
GdaXsltIntCont *p_data = (GdaXsltIntCont *) data;
if (p_data) {
diff --git a/libgda-xslt/sqlexslt.c b/libgda-xslt/sqlexslt.c
index 0c6cca8..044b71e 100644
--- a/libgda-xslt/sqlexslt.c
+++ b/libgda-xslt/sqlexslt.c
@@ -82,7 +82,7 @@ gda_xslt_set_execution_context (xsltTransformContextPtr tcxt,
* Returns:
*/
GdaXsltExCont *
-gda_xslt_create_context_simple (GdaConnection *cnc, GError **error)
+gda_xslt_create_context_simple (GdaConnection *cnc, G_GNUC_UNUSED GError **error)
{
GdaXsltExCont *local = NULL;
diff --git a/libgda/binreloc/binreloc.c b/libgda/binreloc/binreloc.c
index a27e5c2..a4eac8c 100644
--- a/libgda/binreloc/binreloc.c
+++ b/libgda/binreloc/binreloc.c
@@ -172,7 +172,12 @@ _br_find_exe (GbrInitError *error)
* Returns a filename which must be freed, or NULL on error.
*/
static char *
-_br_find_exe_for_symbol (const void *symbol, GbrInitError *error)
+_br_find_exe_for_symbol (
+#ifndef ENABLE_BINRELOC
+ G_GNUC_UNUSED const void *symbol, GbrInitError *error)
+#else
+ const void *symbol, GbrInitError *error)
+#endif
{
#ifndef ENABLE_BINRELOC
if (error)
diff --git a/libgda/dir-blob-op.c b/libgda/dir-blob-op.c
index f7815d3..b8da5b0 100644
--- a/libgda/dir-blob-op.c
+++ b/libgda/dir-blob-op.c
@@ -63,7 +63,8 @@ gda_dir_blob_op_get_type (void)
NULL,
sizeof (GdaDirBlobOp),
0,
- (GInstanceInitFunc) gda_dir_blob_op_init
+ (GInstanceInitFunc) gda_dir_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -75,7 +76,7 @@ gda_dir_blob_op_get_type (void)
static void
gda_dir_blob_op_init (GdaDirBlobOp *op,
- GdaDirBlobOpClass *klass)
+ G_GNUC_UNUSED GdaDirBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_DIR_BLOB_OP (op));
@@ -206,7 +207,7 @@ gda_dir_blob_op_read (GdaBlobOp *op, GdaBlob *blob, glong offset, glong size)
}
bin->data = g_new0 (guchar, size);
nread = fread ((char *) (bin->data), 1, size, file);
- bin->binary_length = (nread >= 0) ? nread : 0;
+ bin->binary_length = nread;
fclose (file);
return nread;
diff --git a/libgda/gda-batch.c b/libgda/gda-batch.c
index 35affc1..b92f320 100644
--- a/libgda/gda-batch.c
+++ b/libgda/gda-batch.c
@@ -87,7 +87,8 @@ gda_batch_get_type (void)
NULL,
sizeof (GdaBatch),
0,
- (GInstanceInitFunc) gda_batch_init
+ (GInstanceInitFunc) gda_batch_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -132,7 +133,7 @@ gda_batch_class_init (GdaBatchClass * klass)
}
static void
-m_changed_cb (GdaBatch *batch, GdaStatement *changed_stmt)
+m_changed_cb (G_GNUC_UNUSED GdaBatch *batch, G_GNUC_UNUSED GdaStatement *changed_stmt)
{
}
@@ -236,7 +237,7 @@ gda_batch_finalize (GObject *object)
static void
gda_batch_set_property (GObject *object,
guint param_id,
- const GValue *value,
+ G_GNUC_UNUSED const GValue *value,
GParamSpec *pspec)
{
GdaBatch *batch;
@@ -254,7 +255,7 @@ gda_batch_set_property (GObject *object,
static void
gda_batch_get_property (GObject *object,
guint param_id,
- GValue *value,
+ G_GNUC_UNUSED GValue *value,
GParamSpec *pspec)
{
GdaBatch *batch;
diff --git a/libgda/gda-blob-op.c b/libgda/gda-blob-op.c
index 7cc1bd7..fec120e 100644
--- a/libgda/gda-blob-op.c
+++ b/libgda/gda-blob-op.c
@@ -51,7 +51,8 @@ gda_blob_op_get_type (void)
NULL,
sizeof (GdaBlobOp),
0,
- (GInstanceInitFunc) gda_blob_op_init
+ (GInstanceInitFunc) gda_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -76,7 +77,7 @@ gda_blob_op_class_init (GdaBlobOpClass *klass)
}
static void
-gda_blob_op_init (GdaBlobOp *provider, GdaBlobOpClass *klass)
+gda_blob_op_init (G_GNUC_UNUSED GdaBlobOp *provider, G_GNUC_UNUSED GdaBlobOpClass *klass)
{
}
diff --git a/libgda/gda-column.c b/libgda/gda-column.c
index 85ce4d8..fbebf62 100644
--- a/libgda/gda-column.c
+++ b/libgda/gda-column.c
@@ -138,7 +138,7 @@ gda_column_class_init (GdaColumnClass *klass)
}
static void
-gda_column_init (GdaColumn *column, GdaColumnClass *klass)
+gda_column_init (GdaColumn *column, G_GNUC_UNUSED GdaColumnClass *klass)
{
g_return_if_fail (GDA_IS_COLUMN (column));
@@ -191,7 +191,8 @@ gda_column_get_type (void)
NULL,
sizeof (GdaColumn),
0,
- (GInstanceInitFunc) gda_column_init
+ (GInstanceInitFunc) gda_column_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -206,7 +207,7 @@ static void
gda_column_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaColumn *col;
@@ -230,7 +231,7 @@ static void
gda_column_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaColumn *col;
diff --git a/libgda/gda-config.c b/libgda/gda-config.c
index 2304c01..f5503c3 100644
--- a/libgda/gda-config.c
+++ b/libgda/gda-config.c
@@ -228,7 +228,7 @@ gda_config_class_init (GdaConfigClass *klass)
}
static void
-gda_config_init (GdaConfig *conf, GdaConfigClass *klass)
+gda_config_init (GdaConfig *conf, G_GNUC_UNUSED GdaConfigClass *klass)
{
g_return_if_fail (GDA_IS_CONFIG (conf));
@@ -497,7 +497,7 @@ gda_config_constructor (GType type,
sync_keyring = TRUE;
#endif
- gint i;
+ guint i;
gboolean user_file_set = FALSE, system_file_set = FALSE;
object = G_OBJECT_CLASS (parent_class)->constructor (type,
@@ -715,7 +715,8 @@ gda_config_get_type (void)
NULL, NULL,
sizeof (GdaConfig),
0,
- (GInstanceInitFunc) gda_config_init
+ (GInstanceInitFunc) gda_config_init,
+ 0
};
GDA_CONFIG_LOCK ();
if (type == 0)
@@ -730,7 +731,7 @@ static void
gda_config_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaConfig *conf;
@@ -757,7 +758,7 @@ static void
gda_config_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaConfig *conf;
@@ -1719,8 +1720,8 @@ str_equal (const gchar *str1, const gchar *str2)
}
static void
-conf_file_changed (GFileMonitor *mon, GFile *file, GFile *other_file,
- GFileMonitorEvent event_type, gpointer data)
+conf_file_changed (G_GNUC_UNUSED GFileMonitor *mon, G_GNUC_UNUSED GFile *file,
+ G_GNUC_UNUSED GFile *other_file, GFileMonitorEvent event_type, G_GNUC_UNUSED gpointer data)
{
GSList *list, *current_dsn_list, *new_dsn_list;
g_assert (unique_instance);
diff --git a/libgda/gda-connection-event.c b/libgda/gda-connection-event.c
index dfd60ff..24a15e3 100644
--- a/libgda/gda-connection-event.c
+++ b/libgda/gda-connection-event.c
@@ -68,7 +68,8 @@ gda_connection_event_get_type (void)
NULL,
sizeof (GdaConnectionEvent),
0,
- (GInstanceInitFunc) gda_connection_event_init
+ (GInstanceInitFunc) gda_connection_event_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -102,7 +103,7 @@ gda_connection_event_class_init (GdaConnectionEventClass *klass)
}
static void
-gda_connection_event_init (GdaConnectionEvent *event, GdaConnectionEventClass *klass)
+gda_connection_event_init (GdaConnectionEvent *event, G_GNUC_UNUSED GdaConnectionEventClass *klass)
{
event->priv = g_new0 (GdaConnectionEventPrivate, 1);
event->priv->type = GDA_CONNECTION_EVENT_ERROR;
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 0193270..dc93bd7 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -383,9 +383,11 @@ gda_connection_class_init (GdaConnectionClass *klass)
str = getenv ("GDA_CONNECTION_EVENTS_SHOW");
if (str) {
gchar **array;
- gint i;
+ guint i;
+ guint array_len;
array = g_strsplit_set (str, " ,/;:", 0);
- for (i = 0; i < g_strv_length (array); i++) {
+ array_len = g_strv_length (array);
+ for (i = 0; i < array_len; i++) {
if (!g_ascii_strcasecmp (array[i], "notice"))
debug_level += 1;
else if (!g_ascii_strcasecmp (array[i], "warning"))
@@ -409,7 +411,7 @@ gda_connection_lockable_init (GdaLockableIface *iface)
}
static void
-gda_connection_init (GdaConnection *cnc, GdaConnectionClass *klass)
+gda_connection_init (GdaConnection *cnc, G_GNUC_UNUSED GdaConnectionClass *klass)
{
g_return_if_fail (GDA_IS_CONNECTION (cnc));
@@ -504,7 +506,7 @@ gda_connection_dispose (GObject *object)
}
if (cnc->priv->completed_tasks) {
- gint i, len = cnc->priv->completed_tasks->len;
+ gssize i, len = cnc->priv->completed_tasks->len;
for (i = 0; i < len; i++)
cnc_task_free (CNC_TASK (g_array_index (cnc->priv->completed_tasks, gpointer, i)));
g_array_free (cnc->priv->completed_tasks, TRUE);
@@ -512,7 +514,7 @@ gda_connection_dispose (GObject *object)
}
if (cnc->priv->trans_meta_context) {
- gint i;
+ gsize i;
for (i = 0; i < cnc->priv->trans_meta_context->len; i++) {
GdaMetaContext *context;
context = g_array_index (cnc->priv->trans_meta_context, GdaMetaContext*, i);
@@ -582,7 +584,8 @@ gda_connection_get_type (void)
NULL, NULL,
sizeof (GdaConnection),
0,
- (GInstanceInitFunc) gda_connection_init
+ (GInstanceInitFunc) gda_connection_init,
+ 0
};
static GInterfaceInfo lockable_info = {
@@ -766,7 +769,7 @@ gda_connection_set_property (GObject *object,
(GSourceFunc) monitor_wrapped_cnc,
cdata->wrapper);
/* steal signals for current thread */
- gint i;
+ gsize i;
for (i = 0; i < cdata->handlers_ids->len; i++) {
gulong id;
id = g_array_index (cdata->handlers_ids, gulong, i);
@@ -789,7 +792,7 @@ static void
gda_connection_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaConnection *cnc;
@@ -863,7 +866,7 @@ cnc_task_new (guint id, GdaStatement *stmt, GdaStatementModelUsage model_usage,
}
static void
-task_stmt_reset_cb (GdaStatement *stmt, CncTask *task)
+task_stmt_reset_cb (G_GNUC_UNUSED GdaStatement *stmt, CncTask *task)
{
g_mutex_lock (task->mutex);
g_signal_handlers_disconnect_by_func (task->stmt,
@@ -1251,7 +1254,7 @@ _gda_open_internal_sqlite_connection (const gchar *cnc_string)
}
static void
-sqlite_connection_closed_cb (GdaConnection *cnc, gpointer data)
+sqlite_connection_closed_cb (GdaConnection *cnc, G_GNUC_UNUSED gpointer data)
{
gchar *filename;
filename = g_object_get_data (G_OBJECT (cnc), "__gda_fname");
@@ -1565,7 +1568,7 @@ gda_connection_close_no_warning (GdaConnection *cnc)
GdaConnection *mscnc;
mscnc = gda_meta_store_get_internal_connection (cnc->priv->meta_store);
if (cnc != mscnc) {
- gint i;
+ gsize i;
for (i = 0; i < cnc->priv->trans_meta_context->len; i++) {
GdaMetaContext *context;
GError *lerror = NULL;
@@ -2182,7 +2185,7 @@ gda_connection_statement_prepare (GdaConnection *cnc, GdaStatement *stmt, GError
}
static GType *
-make_col_types_array (gint init_size, va_list args)
+make_col_types_array (va_list args)
{
GType *types;
gint max = 10;
@@ -2242,8 +2245,8 @@ get_task_index (GdaConnection *cnc, guint task_id, gboolean *out_completed, gboo
* This callback is called from the GdaServerProvider object
*/
static void
-async_stmt_exec_cb (GdaServerProvider *provider, GdaConnection *cnc, guint task_id,
- GObject *result_obj, const GError *error, CncTask *task)
+async_stmt_exec_cb (G_GNUC_UNUSED GdaServerProvider *provider, GdaConnection *cnc, guint task_id,
+ GObject *result_obj, const GError *error, G_GNUC_UNUSED CncTask *task)
{
gint i;
gboolean is_completed;
@@ -2581,7 +2584,7 @@ gda_connection_statement_execute_v (GdaConnection *cnc, GdaStatement *stmt, GdaS
GObject *obj;
GType *types;
va_start (ap, error);
- types = make_col_types_array (10, ap);
+ types = make_col_types_array (ap);
va_end (ap);
g_object_ref ((GObject*) cnc);
@@ -2855,7 +2858,7 @@ gda_connection_statement_execute_select_fullv (GdaConnection *cnc, GdaStatement
GType *types;
va_start (ap, error);
- types = make_col_types_array (10, ap);
+ types = make_col_types_array (ap);
va_end (ap);
g_object_ref ((GObject*) cnc);
@@ -4094,7 +4097,7 @@ typedef struct {
} DownstreamCallbackData;
static GError *
-suggest_update_cb_downstream (GdaMetaStore *store, GdaMetaContext *suggest, DownstreamCallbackData *data)
+suggest_update_cb_downstream (G_GNUC_UNUSED GdaMetaStore *store, GdaMetaContext *suggest, DownstreamCallbackData *data)
{
#define MAX_CONTEXT_SIZE 10
if (data->error)
@@ -5135,7 +5138,8 @@ gda_connection_internal_savepoint_removed (GdaConnection *cnc, const gchar *svp_
* to keep track of the transaction status of the connection
*/
void
-gda_connection_internal_statement_executed (GdaConnection *cnc, GdaStatement *stmt, GdaSet *params, GdaConnectionEvent *error)
+gda_connection_internal_statement_executed (GdaConnection *cnc, GdaStatement *stmt,
+ G_GNUC_UNUSED GdaSet *params, GdaConnectionEvent *error)
{
if (!error || (error && (gda_connection_event_get_event_type (error) != GDA_CONNECTION_EVENT_ERROR))) {
const GdaSqlStatement *sqlst;
@@ -5280,7 +5284,7 @@ prepared_stmts_stmt_reset_cb (GdaStatement *gda_stmt, GdaConnection *cnc)
}
static void
-prepared_stms_foreach_func (GdaStatement *gda_stmt, GdaPStmt *prepared_stmt, GdaConnection *cnc)
+prepared_stms_foreach_func (GdaStatement *gda_stmt, G_GNUC_UNUSED GdaPStmt *prepared_stmt, GdaConnection *cnc)
{
g_signal_handlers_disconnect_by_func (gda_stmt, G_CALLBACK (prepared_stmts_stmt_reset_cb), cnc);
g_object_weak_unref (G_OBJECT (gda_stmt), (GWeakNotify) statement_weak_notify_cb, cnc);
@@ -5678,7 +5682,7 @@ update_meta_store_after_statement_exec (GdaConnection *cnc, GdaStatement *stmt,
GdaConnection *mscnc;
mscnc = gda_meta_store_get_internal_connection (cnc->priv->meta_store);
if (cnc != mscnc) {
- gint i;
+ gsize i;
g_assert (cnc->priv->trans_meta_context);
for (i = 0; i < cnc->priv->trans_meta_context->len; i++) {
GdaMetaContext *context;
@@ -5698,7 +5702,7 @@ update_meta_store_after_statement_exec (GdaConnection *cnc, GdaStatement *stmt,
GdaConnection *mscnc;
mscnc = gda_meta_store_get_internal_connection (cnc->priv->meta_store);
if (cnc != mscnc) {
- gint i;
+ gsize i;
g_assert (cnc->priv->trans_meta_context);
for (i = 0; i < cnc->priv->trans_meta_context->len; i++) {
GdaMetaContext *context;
diff --git a/libgda/gda-data-access-wrapper.c b/libgda/gda-data-access-wrapper.c
index 2b5b8d1..6a0fac7 100644
--- a/libgda/gda-data-access-wrapper.c
+++ b/libgda/gda-data-access-wrapper.c
@@ -109,7 +109,8 @@ gda_data_access_wrapper_get_type (void)
NULL,
sizeof (GdaDataAccessWrapper),
0,
- (GInstanceInitFunc) gda_data_access_wrapper_init
+ (GInstanceInitFunc) gda_data_access_wrapper_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -178,7 +179,7 @@ gda_data_access_wrapper_data_model_init (GdaDataModelIface *iface)
}
static void
-gda_data_access_wrapper_init (GdaDataAccessWrapper *model, GdaDataAccessWrapperClass *klass)
+gda_data_access_wrapper_init (GdaDataAccessWrapper *model, G_GNUC_UNUSED GdaDataAccessWrapperClass *klass)
{
g_return_if_fail (GDA_IS_DATA_ACCESS_WRAPPER (model));
model->priv = g_new0 (GdaDataAccessWrapperPrivate, 1);
@@ -191,19 +192,19 @@ gda_data_access_wrapper_init (GdaDataAccessWrapper *model, GdaDataAccessWrapperC
}
static void
-model_row_inserted_cb (GdaDataModel *mod, gint row, GdaDataAccessWrapper *model)
+model_row_inserted_cb (G_GNUC_UNUSED GdaDataModel *mod, gint row, GdaDataAccessWrapper *model)
{
gda_data_model_row_inserted ((GdaDataModel*) model, row);
}
static void
-model_row_updated_cb (GdaDataModel *mod, gint row, GdaDataAccessWrapper *model)
+model_row_updated_cb (G_GNUC_UNUSED GdaDataModel *mod, gint row, GdaDataAccessWrapper *model)
{
gda_data_model_row_updated ((GdaDataModel*) model, row);
}
static void
-model_row_removed_cb (GdaDataModel *mod, gint row, GdaDataAccessWrapper *model)
+model_row_removed_cb (G_GNUC_UNUSED GdaDataModel *mod, gint row, GdaDataAccessWrapper *model)
{
gda_data_model_row_removed ((GdaDataModel*) model, row);
}
@@ -281,7 +282,7 @@ static void
gda_data_access_wrapper_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataAccessWrapper *model;
@@ -333,7 +334,7 @@ static void
gda_data_access_wrapper_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataAccessWrapper *model;
@@ -618,7 +619,7 @@ iter_row_changed_cb (GdaDataModelIter *iter, gint row, GdaDataAccessWrapper *mod
}
static void
-iter_end_of_data_cb (GdaDataModelIter *iter, GdaDataAccessWrapper *model)
+iter_end_of_data_cb (G_GNUC_UNUSED GdaDataModelIter *iter, GdaDataAccessWrapper *model)
{
g_assert (GDA_IS_DATA_ACCESS_WRAPPER (model));
model->priv->end_of_data = TRUE;
diff --git a/libgda/gda-data-comparator.c b/libgda/gda-data-comparator.c
index f354806..03cbd2c 100644
--- a/libgda/gda-data-comparator.c
+++ b/libgda/gda-data-comparator.c
@@ -98,7 +98,8 @@ gda_data_comparator_get_type (void)
NULL,
sizeof (GdaDataComparator),
0,
- (GInstanceInitFunc) gda_data_comparator_init
+ (GInstanceInitFunc) gda_data_comparator_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -110,10 +111,10 @@ gda_data_comparator_get_type (void)
}
static gboolean
-diff_computed_accumulator (GSignalInvocationHint *ihint,
+diff_computed_accumulator (G_GNUC_UNUSED GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
gboolean thisvalue;
@@ -124,7 +125,7 @@ diff_computed_accumulator (GSignalInvocationHint *ihint,
}
static gboolean
-m_diff_computed (GdaDataComparator *comparator, GdaDiff *diff)
+m_diff_computed (G_GNUC_UNUSED GdaDataComparator *comparator, G_GNUC_UNUSED GdaDiff *diff)
{
return FALSE; /* default is to allow differences computing to proceed (understand it as: FALSE => don't stop) */
}
@@ -201,7 +202,7 @@ static void
clean_diff (GdaDataComparator *comparator)
{
if (comparator->priv->diffs) {
- gint i;
+ gsize i;
for (i = 0; i < comparator->priv->diffs->len; i++) {
GdaDiff *diff = g_array_index (comparator->priv->diffs, GdaDiff *, i);
gda_diff_free (diff);
@@ -260,7 +261,7 @@ static void
gda_data_comparator_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataComparator *comparator;
comparator = GDA_DATA_COMPARATOR (object);
@@ -302,7 +303,7 @@ static void
gda_data_comparator_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataComparator *comparator;
diff --git a/libgda/gda-data-handler.c b/libgda/gda-data-handler.c
index 0253bd6..e68c013 100644
--- a/libgda/gda-data-handler.c
+++ b/libgda/gda-data-handler.c
@@ -38,7 +38,8 @@ gda_data_handler_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -53,7 +54,7 @@ gda_data_handler_get_type (void)
static void
-gda_data_handler_iface_init (gpointer g_class)
+gda_data_handler_iface_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
diff --git a/libgda/gda-data-meta-wrapper.c b/libgda/gda-data-meta-wrapper.c
index dc5dd52..ae25184 100644
--- a/libgda/gda-data-meta-wrapper.c
+++ b/libgda/gda-data-meta-wrapper.c
@@ -131,7 +131,8 @@ _gda_data_meta_wrapper_get_type (void)
NULL,
sizeof (GdaDataMetaWrapper),
0,
- (GInstanceInitFunc) gda_data_meta_wrapper_init
+ (GInstanceInitFunc) gda_data_meta_wrapper_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -204,7 +205,7 @@ gda_data_meta_wrapper_data_model_init (GdaDataModelIface *iface)
}
static void
-gda_data_meta_wrapper_init (GdaDataMetaWrapper *model, GdaDataMetaWrapperClass *klass)
+gda_data_meta_wrapper_init (GdaDataMetaWrapper *model, G_GNUC_UNUSED GdaDataMetaWrapperClass *klass)
{
g_return_if_fail (GDA_IS_DATA_META_WRAPPER (model));
model->priv = g_new0 (GdaDataMetaWrapperPrivate, 1);
@@ -274,7 +275,7 @@ static void
gda_data_meta_wrapper_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataMetaWrapper *model;
@@ -310,7 +311,7 @@ static void
gda_data_meta_wrapper_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataMetaWrapper *model;
diff --git a/libgda/gda-data-model-array.c b/libgda/gda-data-model-array.c
index 8f18c3c..d659e7b 100644
--- a/libgda/gda-data-model-array.c
+++ b/libgda/gda-data-model-array.c
@@ -125,7 +125,8 @@ gda_data_model_array_get_type (void)
NULL,
sizeof (GdaDataModelArray),
0,
- (GInstanceInitFunc) gda_data_model_array_init
+ (GInstanceInitFunc) gda_data_model_array_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -173,7 +174,7 @@ gda_data_model_array_class_init (GdaDataModelArrayClass *klass)
}
static void
-gda_data_model_array_init (GdaDataModelArray *model, GdaDataModelArrayClass *klass)
+gda_data_model_array_init (GdaDataModelArray *model, G_GNUC_UNUSED GdaDataModelArrayClass *klass)
{
g_return_if_fail (GDA_IS_DATA_MODEL_ARRAY (model));
@@ -189,7 +190,7 @@ gda_data_model_array_init (GdaDataModelArray *model, GdaDataModelArrayClass *kla
static void column_g_type_changed_cb (GdaColumn *column, GType old, GType new, GdaDataModelArray *model);
static void
-hash_free_column (gpointer key, GdaColumn *column, GdaDataModelArray *model)
+hash_free_column (G_GNUC_UNUSED gpointer key, GdaColumn *column, GdaDataModelArray *model)
{
g_signal_handlers_disconnect_by_func (G_OBJECT (column),
G_CALLBACK (column_g_type_changed_cb), model);
@@ -381,8 +382,9 @@ GdaRow *
gda_data_model_array_get_row (GdaDataModelArray *model, gint row, GError **error)
{
g_return_val_if_fail (GDA_IS_DATA_MODEL_ARRAY (model), NULL);
+ g_return_val_if_fail (row >= 0, NULL);
- if (row >= model->priv->rows->len) {
+ if ((guint)row >= model->priv->rows->len) {
if (model->priv->rows->len > 0)
g_set_error (error, GDA_DATA_MODEL_ERROR, GDA_DATA_MODEL_ROW_OUT_OF_RANGE_ERROR,
_("Row %d out of range (0-%d)"), row,
@@ -475,14 +477,14 @@ gda_data_model_array_describe_column (GdaDataModel *model, gint col)
}
static void
-column_g_type_changed_cb (GdaColumn *column, GType old, GType new, GdaDataModelArray *model)
+column_g_type_changed_cb (GdaColumn *column, G_GNUC_UNUSED GType old, GType new, GdaDataModelArray *model)
{
/* emit a warning if there are GValues which are not compatible with the new type */
gint i, nrows, col;
const GValue *value;
gchar *str;
gint nb_warnings = 0;
-#define max_warnings 5
+ const gint max_warnings = 5;
if ((new == G_TYPE_INVALID) ||
(new == GDA_TYPE_NULL))
@@ -523,13 +525,15 @@ gda_data_model_array_get_value_at (GdaDataModel *model, gint col, gint row, GErr
GdaRow *fields;
GdaDataModelArray *amodel = (GdaDataModelArray*) model;
+ g_return_val_if_fail(row >= 0, NULL);
+
if (amodel->priv->rows->len == 0) {
g_set_error (error, GDA_DATA_MODEL_ERROR, GDA_DATA_MODEL_ROW_NOT_FOUND_ERROR,
"%s", _("No row in data model"));
return NULL;
}
- if (row >= amodel->priv->rows->len) {
+ if ((guint)row >= amodel->priv->rows->len) {
if (amodel->priv->rows->len > 0)
g_set_error (error, GDA_DATA_MODEL_ERROR, GDA_DATA_MODEL_ROW_OUT_OF_RANGE_ERROR,
_("Row %d out of range (0-%d)"), row, amodel->priv->rows->len - 1);
@@ -616,7 +620,7 @@ gda_data_model_array_set_value_at (GdaDataModel *model, gint col, gint row,
return FALSE;
}
- if (row > amodel->priv->rows->len) {
+ if ((guint)row > amodel->priv->rows->len) {
if (amodel->priv->rows->len > 0)
g_set_error (error, GDA_DATA_MODEL_ERROR, GDA_DATA_MODEL_VALUES_LIST_ERROR,
_("Row %d out of range (0-%d)"), row, amodel->priv->rows->len - 1);
@@ -660,7 +664,7 @@ gda_data_model_array_set_values (GdaDataModel *model, gint row, GList *values, G
return FALSE;
}
- if (g_list_length (values) > gda_data_model_get_n_columns (model)) {
+ if (g_list_length (values) > (guint)gda_data_model_get_n_columns (model)) {
g_set_error (error, GDA_DATA_MODEL_ERROR, GDA_DATA_MODEL_VALUES_LIST_ERROR,
"%s", _("Too many values in list"));
return FALSE;
@@ -699,7 +703,7 @@ gda_data_model_array_append_values (GdaDataModel *model, const GList *values, GE
return FALSE;
}
- if (g_list_length ((GList *) values) > amodel->priv->number_of_columns) {
+ if (g_list_length ((GList *) values) > (guint)amodel->priv->number_of_columns) {
g_set_error (error, GDA_DATA_MODEL_ERROR, GDA_DATA_MODEL_VALUES_LIST_ERROR,
"%s", _("Too many values in list"));
return FALSE;
diff --git a/libgda/gda-data-model-bdb.c b/libgda/gda-data-model-bdb.c
index 7318738..82d5475 100644
--- a/libgda/gda-data-model-bdb.c
+++ b/libgda/gda-data-model-bdb.c
@@ -134,7 +134,7 @@ gda_data_model_bdb_data_model_init (GdaDataModelIface *iface)
static void
gda_data_model_bdb_init (GdaDataModelBdb *model,
- GdaDataModelBdbClass *klass)
+ G_GNUC_UNUSED GdaDataModelBdbClass *klass)
{
g_return_if_fail (GDA_IS_DATA_MODEL_BDB (model));
@@ -242,7 +242,8 @@ gda_data_model_bdb_get_type (void)
NULL,
sizeof (GdaDataModelBdb),
0,
- (GInstanceInitFunc) gda_data_model_bdb_init
+ (GInstanceInitFunc) gda_data_model_bdb_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
(GInterfaceInitFunc) gda_data_model_bdb_data_model_init,
@@ -324,7 +325,7 @@ static void
gda_data_model_bdb_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelBdb *model;
const gchar *string;
@@ -440,7 +441,7 @@ static void
gda_data_model_bdb_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelBdb *model;
@@ -743,7 +744,7 @@ gda_data_model_bdb_get_value_at (GdaDataModel *model, gint col, gint row, GError
}
static GdaValueAttribute
-gda_data_model_bdb_get_attributes_at (GdaDataModel *model, gint col, gint row)
+gda_data_model_bdb_get_attributes_at (GdaDataModel *model, gint col, G_GNUC_UNUSED gint row)
{
GdaDataModelBdb *imodel;
GdaValueAttribute flags;
@@ -962,7 +963,8 @@ gda_data_model_bdb_set_values (GdaDataModel *model, gint row, GList *values, GEr
}
static gint
-gda_data_model_bdb_append_values (GdaDataModel *model, const GList *values, GError **error)
+gda_data_model_bdb_append_values (GdaDataModel *model, G_GNUC_UNUSED const GList *values,
+ G_GNUC_UNUSED GError **error)
{
g_return_val_if_fail (GDA_IS_DATA_MODEL_BDB (model), -1);
diff --git a/libgda/gda-data-model-dir.c b/libgda/gda-data-model-dir.c
index bcc0bbc..1687e11 100644
--- a/libgda/gda-data-model-dir.c
+++ b/libgda/gda-data-model-dir.c
@@ -171,7 +171,7 @@ gda_data_model_dir_data_model_init (GdaDataModelIface *iface)
static void
gda_data_model_dir_init (GdaDataModelDir *model,
- GdaDataModelDirClass *klass)
+ G_GNUC_UNUSED GdaDataModelDirClass *klass)
{
g_return_if_fail (GDA_IS_DATA_MODEL_DIR (model));
@@ -202,7 +202,7 @@ gda_data_model_dir_class_init (GdaDataModelDirClass *klass)
}
static void
-file_row_foreach_func (FileRow *row, gpointer data)
+file_row_foreach_func (FileRow *row, G_GNUC_UNUSED gpointer data)
{
file_row_free (row);
}
@@ -274,7 +274,8 @@ gda_data_model_dir_get_type (void)
NULL,
sizeof (GdaDataModelDir),
0,
- (GInstanceInitFunc) gda_data_model_dir_init
+ (GInstanceInitFunc) gda_data_model_dir_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
(GInterfaceInitFunc) gda_data_model_dir_data_model_init,
@@ -296,7 +297,7 @@ static void
gda_data_model_dir_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelDir *model;
const gchar *string;
@@ -626,7 +627,7 @@ update_data_model (GdaDataModelDir *model)
update_data_model_real (model, "");
/* clean extra rows */
- gint i;
+ gsize i;
for (i = model->priv->upd_row + 1; i < model->priv->rows->len; i++) {
FileRow *row = g_ptr_array_index (model->priv->rows, model->priv->rows->len - 1);
file_row_free (row);
@@ -639,7 +640,7 @@ static void
gda_data_model_dir_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelDir *model;
@@ -768,6 +769,7 @@ gda_data_model_dir_get_value_at (GdaDataModel *model, gint col, gint row, GError
FileRow *frow;
g_return_val_if_fail (GDA_IS_DATA_MODEL_DIR (model), NULL);
+ g_return_val_if_fail (row >= 0, NULL);
imodel = GDA_DATA_MODEL_DIR (model);
g_return_val_if_fail (imodel->priv, NULL);
@@ -781,7 +783,7 @@ gda_data_model_dir_get_value_at (GdaDataModel *model, gint col, gint row, GError
return NULL;
}
- if (row >= imodel->priv->rows->len) {
+ if ((guint)row >= imodel->priv->rows->len) {
gchar *str;
if (imodel->priv->rows->len > 0)
str = g_strdup_printf (_("Row %d out of range (0-%d)"), row,
@@ -862,7 +864,7 @@ gda_data_model_dir_get_value_at (GdaDataModel *model, gint col, gint row, GError
}
static GdaValueAttribute
-gda_data_model_dir_get_attributes_at (GdaDataModel *model, gint col, gint row)
+gda_data_model_dir_get_attributes_at (GdaDataModel *model, gint col, G_GNUC_UNUSED gint row)
{
GdaDataModelDir *imodel;
GdaValueAttribute flags = 0;
@@ -948,12 +950,13 @@ gda_data_model_dir_set_values (GdaDataModel *model, gint row, GList *values, GEr
gboolean has_changed = FALSE;
g_return_val_if_fail (GDA_IS_DATA_MODEL_DIR (model), FALSE);
+ g_return_val_if_fail (row >= 0, FALSE);
imodel = (GdaDataModelDir *) model;
g_return_val_if_fail (imodel->priv, FALSE);
if (!values)
return TRUE;
- if (row >= imodel->priv->rows->len) {
+ if ((guint)row >= imodel->priv->rows->len) {
gchar *str;
if (imodel->priv->rows->len > 0)
str = g_strdup_printf (_("Row %d out of range (0-%d)"), row,
@@ -1304,10 +1307,11 @@ gda_data_model_dir_remove_row (GdaDataModel *model, gint row, GError **error)
FileRow *frow;
g_return_val_if_fail (GDA_IS_DATA_MODEL_DIR (model), FALSE);
+ g_return_val_if_fail (row >=0, FALSE);
imodel = (GdaDataModelDir *) model;
g_return_val_if_fail (imodel->priv, FALSE);
- if (row >= imodel->priv->rows->len) {
+ if ((guint)row >= imodel->priv->rows->len) {
gchar *str;
if (imodel->priv->rows->len > 0)
str = g_strdup_printf (_("Row %d out of range (0-%d)"), row,
diff --git a/libgda/gda-data-model-dsn-list.c b/libgda/gda-data-model-dsn-list.c
index 3a70617..af65103 100644
--- a/libgda/gda-data-model-dsn-list.c
+++ b/libgda/gda-data-model-dsn-list.c
@@ -90,7 +90,7 @@ gda_data_model_dsn_list_data_model_init (GdaDataModelIface *iface)
static void
gda_data_model_dsn_list_init (GdaDataModelDsnList *model,
- GdaDataModelDsnListClass *klass)
+ G_GNUC_UNUSED GdaDataModelDsnListClass *klass)
{
GdaConfig *config;
GdaColumn *col;
@@ -195,20 +195,20 @@ gda_data_model_dsn_list_dispose (GObject *object)
}
static void
-dsn_added_cb (GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
+dsn_added_cb (G_GNUC_UNUSED GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
{
model->priv->nb_dsn++;
gda_data_model_row_inserted ((GdaDataModel *) model, gda_config_get_dsn_info_index (info->name));
}
static void
-dsn_to_be_removed_cb (GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
+dsn_to_be_removed_cb (G_GNUC_UNUSED GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
{
model->priv->row_to_remove = gda_config_get_dsn_info_index (info->name);
}
static void
-dsn_removed_cb (GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
+dsn_removed_cb (G_GNUC_UNUSED GdaConfig *conf, G_GNUC_UNUSED GdaDsnInfo *info, GdaDataModelDsnList *model)
{
model->priv->nb_dsn--;
gda_data_model_row_removed ((GdaDataModel *) model, model->priv->row_to_remove);
@@ -216,7 +216,7 @@ dsn_removed_cb (GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
}
static void
-dsn_changed_cb (GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
+dsn_changed_cb (G_GNUC_UNUSED GdaConfig *conf, GdaDsnInfo *info, GdaDataModelDsnList *model)
{
gda_data_model_row_updated ((GdaDataModel *) model, gda_config_get_dsn_info_index (info->name));
}
@@ -242,7 +242,8 @@ gda_data_model_dsn_list_get_type (void)
NULL,
sizeof (GdaDataModelDsnList),
0,
- (GInstanceInitFunc) gda_data_model_dsn_list_init
+ (GInstanceInitFunc) gda_data_model_dsn_list_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
(GInterfaceInitFunc) gda_data_model_dsn_list_data_model_init,
@@ -290,7 +291,7 @@ gda_data_model_dsn_list_describe_column (GdaDataModel *model, gint col)
}
static GdaDataModelAccessFlags
-gda_data_model_dsn_list_get_access_flags (GdaDataModel *model)
+gda_data_model_dsn_list_get_access_flags (G_GNUC_UNUSED GdaDataModel *model)
{
return GDA_DATA_MODEL_ACCESS_RANDOM;
}
@@ -364,7 +365,7 @@ gda_data_model_dsn_list_get_value_at (GdaDataModel *model, gint col, gint row, G
}
static GdaValueAttribute
-gda_data_model_dsn_list_get_attributes_at (GdaDataModel *model, gint col, gint row)
+gda_data_model_dsn_list_get_attributes_at (G_GNUC_UNUSED GdaDataModel *model, G_GNUC_UNUSED gint col, G_GNUC_UNUSED gint row)
{
return GDA_VALUE_ATTR_NO_MODIF;
}
diff --git a/libgda/gda-data-model-import.c b/libgda/gda-data-model-import.c
index 9a77205..1105be2 100644
--- a/libgda/gda-data-model-import.c
+++ b/libgda/gda-data-model-import.c
@@ -194,7 +194,8 @@ gda_data_model_import_get_type (void)
NULL,
sizeof (GdaDataModelImport),
0,
- (GInstanceInitFunc) gda_data_model_import_init
+ (GInstanceInitFunc) gda_data_model_import_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -281,7 +282,7 @@ gda_data_model_import_data_model_init (GdaDataModelIface *iface)
}
static void
-gda_data_model_import_init (GdaDataModelImport *model, GdaDataModelImportClass *klass)
+gda_data_model_import_init (GdaDataModelImport *model, G_GNUC_UNUSED GdaDataModelImportClass *klass)
{
g_return_if_fail (GDA_IS_DATA_MODEL_IMPORT (model));
model->priv = g_new0 (GdaDataModelImportPrivate, 1);
@@ -306,7 +307,7 @@ gda_data_model_import_init (GdaDataModelImport *model, GdaDataModelImportClass *
static void
csv_free_stored_rows (GdaDataModelImport *model)
{
- gint i;
+ gsize i;
g_assert (model->priv->format == FORMAT_CSV);
for (i = 0; i < model->priv->extract.csv.rows_read->len; i++) {
GSList *list = g_array_index (model->priv->extract.csv.rows_read,
@@ -477,7 +478,7 @@ static void
gda_data_model_import_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelImport *model;
const gchar *string;
@@ -637,7 +638,7 @@ static void
gda_data_model_import_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelImport *model;
@@ -955,7 +956,7 @@ csv_parser_field_read_cb (char *s, size_t len, void *data)
}
static void
-csv_parser_row_read_cb (char c, void *data)
+csv_parser_row_read_cb (G_GNUC_UNUSED char c, void *data)
{
CsvParserData *pdata = (CsvParserData* ) data;
GSList *row;
@@ -1711,7 +1712,7 @@ gda_data_model_import_get_value_at (GdaDataModel *model, gint col, gint row, GEr
}
static GdaValueAttribute
-gda_data_model_import_get_attributes_at (GdaDataModel *model, gint col, gint row)
+gda_data_model_import_get_attributes_at (GdaDataModel *model, gint col, G_GNUC_UNUSED gint row)
{
GdaValueAttribute flags = 0;
GdaDataModelImport *imodel;
diff --git a/libgda/gda-data-model-iter.c b/libgda/gda-data-model-iter.c
index f1aa261..883a208 100644
--- a/libgda/gda-data-model-iter.c
+++ b/libgda/gda-data-model-iter.c
@@ -116,7 +116,8 @@ gda_data_model_iter_get_type (void)
NULL,
sizeof (GdaDataModelIter),
0,
- (GInstanceInitFunc) gda_data_model_iter_init
+ (GInstanceInitFunc) gda_data_model_iter_init,
+ 0
};
@@ -222,7 +223,7 @@ model_row_updated_cb (GdaDataModel *model, gint row, GdaDataModelIter *iter)
}
static void
-model_row_removed_cb (GdaDataModel *model, gint row, GdaDataModelIter *iter)
+model_row_removed_cb (G_GNUC_UNUSED GdaDataModel *model, gint row, GdaDataModelIter *iter)
{
if (iter->priv->row < 0)
/* we are not concerned by handling this signal */
@@ -408,7 +409,7 @@ static void
gda_data_model_iter_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelIter *iter;
@@ -541,7 +542,7 @@ static void
gda_data_model_iter_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataModelIter *iter = GDA_DATA_MODEL_ITER (object);
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index 72ca57e..0533888 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -90,7 +90,8 @@ gda_data_model_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -104,7 +105,7 @@ gda_data_model_get_type (void)
}
static void
-gda_data_model_class_init (gpointer g_class)
+gda_data_model_class_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
@@ -1228,8 +1229,8 @@ gda_data_model_export_to_string (GdaDataModel *model, GdaDataModelIOFormat forma
gboolean
gda_data_model_export_to_file (GdaDataModel *model, GdaDataModelIOFormat format,
const gchar *file,
- const gint *cols, gint nb_cols,
- const gint *rows, gint nb_rows,
+ const gint *cols, G_GNUC_UNUSED gint nb_cols,
+ const gint *rows, G_GNUC_UNUSED gint nb_rows,
GdaSet *options, GError **error)
{
gchar *body;
@@ -1493,7 +1494,7 @@ add_xml_row (GdaDataModel *model, xmlNodePtr xml_row, GError **error)
xmlNodePtr xml_field;
GList *value_list = NULL;
GPtrArray *values;
- gint i;
+ gsize i;
gboolean retval = TRUE;
gint pos = 0;
@@ -2195,7 +2196,7 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
if (! dump_attributes) {
value = gda_data_model_get_value_at (model, i, j, NULL);
if (!value) {
- cols_size [i + col_offset] = MAX (cols_size [i + col_offset], strlen (ERROR_STRING));
+ cols_size [i + col_offset] = MAX ((guint)cols_size [i + col_offset], strlen (ERROR_STRING));
}
else {
str = NULL;
@@ -2230,7 +2231,7 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
const gchar *title;
title = g_object_get_data (G_OBJECT (model), "name");
if (title) {
- gint total_width = n_cols -1, i;
+ gsize total_width = n_cols -1;
for (i = 0; i < n_cols; i++)
total_width += cols_size [i];
diff --git a/libgda/gda-data-proxy.c b/libgda/gda-data-proxy.c
index 52db36a..9022c2d 100644
--- a/libgda/gda-data-proxy.c
+++ b/libgda/gda-data-proxy.c
@@ -318,7 +318,7 @@ proxy_row_to_absolute_row (GdaDataProxy *proxy, gint proxy_row)
proxy_row--;
}
if (proxy->priv->chunk) {
- if (proxy_row < proxy->priv->chunk->mapping->len)
+ if ((guint)proxy_row < proxy->priv->chunk->mapping->len)
return g_array_index (proxy->priv->chunk->mapping, gint, proxy_row);
else
return -1;
@@ -327,7 +327,7 @@ proxy_row_to_absolute_row (GdaDataProxy *proxy, gint proxy_row)
if (proxy->priv->chunk_to &&
proxy->priv->chunk_to->mapping &&
(proxy_row < proxy->priv->chunk_sep) &&
- (proxy_row < proxy->priv->chunk_to->mapping->len))
+ ((guint)proxy_row < proxy->priv->chunk_to->mapping->len))
return g_array_index (proxy->priv->chunk_to->mapping, gint, proxy_row);
else
return proxy_row;
@@ -371,7 +371,7 @@ absolute_row_to_proxy_row (GdaDataProxy *proxy, gint abs_row)
}
if (proxy->priv->chunk) {
- gint i;
+ gsize i;
for (i = 0; i < proxy->priv->chunk->mapping->len; i++) {
if (g_array_index (proxy->priv->chunk->mapping, gint, i) == abs_row) {
proxy_row = i;
@@ -502,7 +502,8 @@ gda_data_proxy_get_type (void)
NULL,
sizeof (GdaDataProxy),
0,
- (GInstanceInitFunc) gda_data_proxy_init
+ (GInstanceInitFunc) gda_data_proxy_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -522,10 +523,10 @@ gda_data_proxy_get_type (void)
}
static gboolean
-validate_row_changes_accumulator (GSignalInvocationHint *ihint,
+validate_row_changes_accumulator (G_GNUC_UNUSED GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
GError *error;
@@ -536,7 +537,8 @@ validate_row_changes_accumulator (GSignalInvocationHint *ihint,
}
static GError *
-m_validate_row_changes (GdaDataProxy *proxy, gint row, gint proxied_row)
+m_validate_row_changes (G_GNUC_UNUSED GdaDataProxy *proxy, G_GNUC_UNUSED gint row,
+ G_GNUC_UNUSED gint proxied_row)
{
return NULL; /* defaults allows changes */
}
@@ -892,7 +894,7 @@ static void
gda_data_proxy_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataProxy *proxy;
@@ -989,7 +991,7 @@ static void
gda_data_proxy_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataProxy *proxy;
@@ -1012,7 +1014,7 @@ gda_data_proxy_get_property (GObject *object,
}
static void
-proxied_model_row_inserted_cb (GdaDataModel *model, gint row, GdaDataProxy *proxy)
+proxied_model_row_inserted_cb (G_GNUC_UNUSED GdaDataModel *model, gint row, GdaDataProxy *proxy)
{
gint abs_row;
gint signal_row_offset = proxy->priv->add_null_entry ? 1 : 0;
@@ -1020,7 +1022,8 @@ proxied_model_row_inserted_cb (GdaDataModel *model, gint row, GdaDataProxy *prox
/* internal cleanups: update chunk and chunk_to arrays */
if (proxy->priv->chunk) {
- gint i, *v;
+ gsize i;
+ gint *v;
for (i = 0; i < proxy->priv->chunk->mapping->len; i++) {
v = &g_array_index (proxy->priv->chunk->mapping, gint, i);
@@ -1029,7 +1032,8 @@ proxied_model_row_inserted_cb (GdaDataModel *model, gint row, GdaDataProxy *prox
}
}
if (proxy->priv->chunk_to && proxy->priv->chunk->mapping) {
- gint i, *v;
+ gsize i;
+ gint *v;
for (i = 0; i < proxy->priv->chunk_to->mapping->len; i++) {
v = &g_array_index (proxy->priv->chunk_to->mapping, gint, i);
@@ -1064,7 +1068,7 @@ proxied_model_row_inserted_cb (GdaDataModel *model, gint row, GdaDataProxy *prox
}
static void
-proxied_model_row_updated_cb (GdaDataModel *model, gint row, GdaDataProxy *proxy)
+proxied_model_row_updated_cb (G_GNUC_UNUSED GdaDataModel *model, gint row, GdaDataProxy *proxy)
{
gint proxy_row;
RowModif *rm;
@@ -1087,7 +1091,7 @@ proxied_model_row_updated_cb (GdaDataModel *model, gint row, GdaDataProxy *proxy
}
static void
-proxied_model_row_removed_cb (GdaDataModel *model, gint row, GdaDataProxy *proxy)
+proxied_model_row_removed_cb (G_GNUC_UNUSED GdaDataModel *model, gint row, GdaDataProxy *proxy)
{
gint proxy_row, abs_row;
RowModif *rm;
@@ -1097,7 +1101,8 @@ proxied_model_row_removed_cb (GdaDataModel *model, gint row, GdaDataProxy *proxy
/* internal cleanups: update chunk and chunk_to arrays */
if (proxy->priv->chunk) {
- gint i, *v, remove_index = -1;
+ gsize i;
+ gint *v, remove_index = -1;
for (i = 0; i < proxy->priv->chunk->mapping->len; i++) {
v = &g_array_index (proxy->priv->chunk->mapping, gint, i);
@@ -1114,7 +1119,8 @@ proxied_model_row_removed_cb (GdaDataModel *model, gint row, GdaDataProxy *proxy
proxy->priv->chunk_sep--;
}
if (proxy->priv->chunk_to && proxy->priv->chunk->mapping) {
- gint i, *v, remove_index = -1;
+ guint i;
+ gint *v, remove_index = -1;
for (i = 0; i < proxy->priv->chunk_to->mapping->len; i++) {
v = &g_array_index (proxy->priv->chunk_to->mapping, gint, i);
@@ -1557,7 +1563,8 @@ gda_data_proxy_delete (GdaDataProxy *proxy, gint proxy_row)
if (proxy->priv->chunk) {
/* Update chunk */
- gint i, *v;
+ gsize i;
+ gint *v;
gint row_cmp = proxy_row - (proxy->priv->add_null_entry ? 1 : 0);
for (i = 0; i < proxy->priv->chunk->mapping->len; i++) {
v = &g_array_index (proxy->priv->chunk->mapping, gint, i);
@@ -1833,7 +1840,8 @@ gda_data_proxy_cancel_row_changes (GdaDataProxy *proxy, gint proxy_row, gint col
if (rm->model_row < 0) {
if (proxy->priv->chunk) {
/* Update chunk */
- gint i, *v, abs_row;
+ gsize i;
+ gint *v, abs_row;
gint row_cmp = proxy_row - (proxy->priv->add_null_entry ? 1 : 0);
abs_row = proxy_row_to_absolute_row (proxy, proxy_row);
for (i = 0; i < proxy->priv->chunk->mapping->len; i++) {
@@ -2350,7 +2358,7 @@ display_chunks_dump (GdaDataProxy *proxy)
}
#else
static void
-display_chunks_dump (GdaDataProxy *proxy)
+display_chunks_dump (G_GNUC_UNUSED GdaDataProxy *proxy)
{}
#endif
@@ -2382,8 +2390,7 @@ chunk_sync_idle (GdaDataProxy *proxy)
gda_mutex_lock (proxy->priv->mutex);
gboolean finished = FALSE;
- gint index;
- gint step, max_steps;
+ guint index, max_steps, step;
GdaDataModelIter *iter = NULL;
gint signal_row_offset = proxy->priv->add_null_entry ? 1 : 0;
@@ -2689,7 +2696,7 @@ adjust_displayed_chunk (GdaDataProxy *proxy)
if (proxy->priv->chunk && proxy->priv->chunk_to->mapping) {
/* compare the 2 chunks */
if (proxy->priv->chunk->mapping->len == proxy->priv->chunk_to->mapping->len) {
- gint i;
+ gsize i;
equal = TRUE;
for (i = 0; i < proxy->priv->chunk->mapping->len; i++) {
if (g_array_index (proxy->priv->chunk->mapping, gint, i) !=
@@ -2856,7 +2863,7 @@ gda_data_proxy_cancel_all_changes (GdaDataProxy *proxy)
}
static gboolean
-sql_where_foreach (GdaSqlAnyPart *part, GdaDataProxy *proxy, GError **error)
+sql_where_foreach (GdaSqlAnyPart *part, GdaDataProxy *proxy, G_GNUC_UNUSED GError **error)
{
if (part->type == GDA_SQL_ANY_EXPR) {
GdaSqlExpr *expr = (GdaSqlExpr*) part;
@@ -3784,7 +3791,7 @@ gda_data_proxy_set_values (GdaDataModel *model, gint row, GList *values, GError
if (!values)
return TRUE;
- g_return_val_if_fail (g_list_length (values) <= gda_data_proxy_get_n_columns (model) , FALSE);
+ g_return_val_if_fail (g_list_length (values) <= gda_data_proxy_get_n_columns (model), FALSE);
/* check values */
col = 0;
@@ -3871,7 +3878,7 @@ gda_data_proxy_append_values (GdaDataModel *model, const GList *values, GError *
}
static gint
-gda_data_proxy_append_row (GdaDataModel *model, GError **error)
+gda_data_proxy_append_row (GdaDataModel *model, G_GNUC_UNUSED GError **error)
{
GdaDataProxy *proxy;
gint i;
diff --git a/libgda/gda-data-select.c b/libgda/gda-data-select.c
index e69cd7d..32d2457 100644
--- a/libgda/gda-data-select.c
+++ b/libgda/gda-data-select.c
@@ -198,7 +198,8 @@ gda_data_select_get_type (void)
NULL,
sizeof (GdaDataSelect),
0,
- (GInstanceInitFunc) gda_data_select_init
+ (GInstanceInitFunc) gda_data_select_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
@@ -315,7 +316,7 @@ gda_data_select_data_model_init (GdaDataModelIface *iface)
}
static void
-gda_data_select_init (GdaDataSelect *model, GdaDataSelectClass *klass)
+gda_data_select_init (GdaDataSelect *model, G_GNUC_UNUSED GdaDataSelectClass *klass)
{
ModType i;
@@ -359,7 +360,8 @@ gda_data_select_init (GdaDataSelect *model, GdaDataSelectClass *klass)
}
static void
-ext_params_holder_changed_cb (GdaSet *paramlist, GdaHolder *param, GdaDataSelect *model)
+ext_params_holder_changed_cb (G_GNUC_UNUSED GdaSet *paramlist, G_GNUC_UNUSED GdaHolder *param,
+ GdaDataSelect *model)
{
if (model->priv->sh->reset_with_ext_params_change) {
GError *error = NULL;
@@ -379,7 +381,7 @@ free_private_shared_data (GdaDataSelect *model)
model->priv->sh->ref_count --;
if (model->priv->sh->ref_count == 0) {
- gint i;
+ guint i;
if (model->priv->sh->sel_stmt) {
g_object_unref (model->priv->sh->sel_stmt);
@@ -619,7 +621,7 @@ static void
gda_data_select_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataSelect *model = (GdaDataSelect *) object;
if (model->priv) {
@@ -708,7 +710,7 @@ static void
gda_data_select_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDataSelect *model = (GdaDataSelect *) object;
if (model->priv) {
@@ -1328,7 +1330,7 @@ gda_data_select_compute_modification_statements (GdaDataSelect *model, GError **
}
static gboolean
-row_selection_condition_foreach_func (GdaSqlAnyPart *part, gpointer data, GError **error)
+row_selection_condition_foreach_func (GdaSqlAnyPart *part, G_GNUC_UNUSED gpointer data, GError **error)
{
if (part->type != GDA_SQL_ANY_SQL_OPERATION)
return TRUE;
@@ -1629,7 +1631,7 @@ external_to_internal_row (GdaDataSelect *model, gint ext_row, GError **error)
/* row number alteration: deleted rows */
if (model->priv->sh->del_rows) {
gint i;
- for (i = 0; i < model->priv->sh->del_rows->len; i++) {
+ for (i = 0; (guint)i < model->priv->sh->del_rows->len; i++) {
gint indexed = g_array_index (model->priv->sh->del_rows, gint, i);
if (indexed <= ext_row + i)
int_row += 1;
@@ -1811,7 +1813,7 @@ gda_data_select_get_value_at (GdaDataModel *model, gint col, gint row, GError **
}
static GdaValueAttribute
-gda_data_select_get_attributes_at (GdaDataModel *model, gint col, gint row)
+gda_data_select_get_attributes_at (GdaDataModel *model, gint col, G_GNUC_UNUSED gint row)
{
GdaValueAttribute flags = GDA_VALUE_ATTR_IS_UNCHANGED;
GdaDataSelect *imodel;
@@ -2991,7 +2993,8 @@ static gboolean
gda_data_select_remove_row (GdaDataModel *model, gint row, GError **error)
{
GdaDataSelect *imodel;
- gint int_row, i, ncols, index;
+ guint i, ncols;
+ gint int_row, index;
GdaHolder *holder;
gchar *str;
@@ -3174,7 +3177,8 @@ compute_insert_select_params_mapping (GdaSet *sel_params, GdaSet *ins_values, Gd
}
static gboolean
-compute_insert_select_params_mapping_foreach_func (GdaSqlAnyPart *part, CorrespData *data, GError **error)
+compute_insert_select_params_mapping_foreach_func (GdaSqlAnyPart *part, CorrespData *data,
+ G_GNUC_UNUSED GError **error)
{
if (part->type != GDA_SQL_ANY_SQL_OPERATION)
return TRUE;
diff --git a/libgda/gda-holder.c b/libgda/gda-holder.c
index b26a1bc..d089163 100644
--- a/libgda/gda-holder.c
+++ b/libgda/gda-holder.c
@@ -134,7 +134,8 @@ gda_holder_get_type (void)
NULL,
sizeof (GdaHolder),
0,
- (GInstanceInitFunc) gda_holder_init
+ (GInstanceInitFunc) gda_holder_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -147,10 +148,10 @@ gda_holder_get_type (void)
}
static gboolean
-validate_change_accumulator (GSignalInvocationHint *ihint,
+validate_change_accumulator (G_GNUC_UNUSED GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
GError *error;
@@ -161,13 +162,14 @@ validate_change_accumulator (GSignalInvocationHint *ihint,
}
static GError *
-m_validate_change (GdaHolder *holder, const GValue *new_value)
+m_validate_change (G_GNUC_UNUSED GdaHolder *holder, G_GNUC_UNUSED const GValue *new_value)
{
return NULL;
}
static void
-holder_attribute_set_cb (GObject *obj, const gchar *att_name, const GValue *value, gpointer data)
+holder_attribute_set_cb (GObject *obj, const gchar *att_name, const GValue *value,
+ G_GNUC_UNUSED gpointer data)
{
g_signal_emit (obj, gda_holder_signals[ATT_CHANGED], 0, att_name, value);
}
@@ -555,7 +557,7 @@ static void
gda_holder_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaHolder *holder;
@@ -622,7 +624,7 @@ static void
gda_holder_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaHolder *holder;
const GValue *cvalue;
@@ -1439,7 +1441,7 @@ gda_holder_get_not_null (GdaHolder *holder)
*/
gboolean
gda_holder_set_source_model (GdaHolder *holder, GdaDataModel *model,
- gint col, GError **error)
+ gint col, G_GNUC_UNUSED GError **error)
{
g_return_val_if_fail (GDA_IS_HOLDER (holder), FALSE);
g_return_val_if_fail (holder->priv, FALSE);
@@ -1508,7 +1510,7 @@ gda_holder_get_source_model (GdaHolder *holder, gint *col)
* gda_holder_set_bind() was called, and it makes sure @holder's GType is the same as @holder->priv->simple_bind's
*/
static void
-bind_to_notify_cb (GdaHolder *bind_to, GParamSpec *pspec, GdaHolder *holder)
+bind_to_notify_cb (GdaHolder *bind_to, G_GNUC_UNUSED GParamSpec *pspec, GdaHolder *holder)
{
g_signal_handler_disconnect (holder->priv->simple_bind,
holder->priv->simple_bind_notify_signal_id);
diff --git a/libgda/gda-lockable.c b/libgda/gda-lockable.c
index 0a94307..20855c1 100644
--- a/libgda/gda-lockable.c
+++ b/libgda/gda-lockable.c
@@ -41,7 +41,8 @@ gda_lockable_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -55,7 +56,7 @@ gda_lockable_get_type (void)
}
static void
-gda_lockable_class_init (gpointer g_class)
+gda_lockable_class_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index ca9da76..1cea7e5 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -293,7 +293,8 @@ gda_meta_store_get_type (void) {
NULL,
sizeof (GdaMetaStore),
0,
- (GInstanceInitFunc) gda_meta_store_init
+ (GInstanceInitFunc) gda_meta_store_init,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -339,10 +340,10 @@ ProviderSpecific_equal (gconstpointer a, gconstpointer b)
}
static gboolean
-suggest_update_accumulator (GSignalInvocationHint *ihint,
+suggest_update_accumulator (G_GNUC_UNUSED GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
GError *error;
@@ -353,7 +354,7 @@ suggest_update_accumulator (GSignalInvocationHint *ihint,
}
static GError *
-m_suggest_update (GdaMetaStore *store, GdaMetaContext *suggest)
+m_suggest_update (G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *suggest)
{
return NULL; /* defaults allows update suggest */
}
@@ -542,7 +543,7 @@ gda_meta_store_constructor (GType type,
GObjectConstructParam *construct_properties)
{
GObject *object;
- gint i;
+ guint i;
GdaMetaStore *store;
gboolean been_specified = FALSE;
@@ -733,7 +734,7 @@ static void
gda_meta_store_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaMetaStore *store;
const gchar *cnc_string;
@@ -786,7 +787,7 @@ static void
gda_meta_store_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaMetaStore *store;
store = GDA_META_STORE (object);
@@ -1043,7 +1044,7 @@ create_server_operation_for_table (GHashTable *specific_hash,
}
static GdaServerOperation *
-create_server_operation_for_view (GHashTable *specific_hash,
+create_server_operation_for_view (G_GNUC_UNUSED GHashTable *specific_hash,
GdaServerProvider *prov, GdaConnection *cnc, DbObject *dbobj, GError **error)
{
GdaServerOperation *op;
@@ -1740,7 +1741,8 @@ make_expr_AND (GdaSqlAnyPart *parent, GdaSqlExpr *current)
}
static GdaSqlExpr *
-make_expr_EQUAL (GdaSqlAnyPart *parent, xmlChar *cname, xmlChar *type, GType ptype, gboolean nullok, gint index)
+make_expr_EQUAL (GdaSqlAnyPart *parent, xmlChar *cname, G_GNUC_UNUSED xmlChar *type, GType ptype,
+ gboolean nullok, gint index)
{
GdaSqlOperation *op;
GdaSqlExpr *retexpr, *expr;
@@ -1855,7 +1857,7 @@ build_pass (GSList *objects, GSList *ordered_list)
* in a way that for any given DbObject in the list, all the dependencies are _before_ it in the list
*/
static GSList *
-reorder_db_objects (GSList *objects, GHashTable *hash)
+reorder_db_objects (GSList *objects, G_GNUC_UNUSED GHashTable *hash)
{
GSList *pass_list;
GSList *ordered_list = NULL;
@@ -1878,7 +1880,7 @@ reorder_db_objects (GSList *objects, GHashTable *hash)
* Returns: TRUE if all information is Ok
*/
static gboolean
-complement_db_objects (GSList *objects, GHashTable *hash, GError **error)
+complement_db_objects (GSList *objects, G_GNUC_UNUSED GHashTable *hash, GError **error)
{
GSList *list;
for (list = objects; list; list = list->next) {
@@ -2013,7 +2015,7 @@ table_fkey_free (TableFKey *tfk)
}
static gboolean
-update_schema_version (GdaMetaStore *store, const gchar *version, GError **error)
+update_schema_version (GdaMetaStore *store, G_GNUC_UNUSED const gchar *version, GError **error)
{
GdaSet *params;
GdaMetaStoreClass *klass;
diff --git a/libgda/gda-meta-struct.c b/libgda/gda-meta-struct.c
index 36fb4d0..5081c51 100644
--- a/libgda/gda-meta-struct.c
+++ b/libgda/gda-meta-struct.c
@@ -100,7 +100,8 @@ gda_meta_struct_get_type (void) {
NULL,
sizeof (GdaMetaStruct),
0,
- (GInstanceInitFunc) gda_meta_struct_init
+ (GInstanceInitFunc) gda_meta_struct_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -220,7 +221,7 @@ static void
gda_meta_struct_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaMetaStruct *mstruct;
@@ -250,7 +251,7 @@ static void
gda_meta_struct_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaMetaStruct *mstruct;
mstruct = GDA_META_STRUCT (object);
@@ -270,14 +271,14 @@ gda_meta_struct_get_property (GObject *object,
}
static void
-meta_store_changed_cb (GdaMetaStore *store, GSList *changes, GdaMetaStruct *mstruct)
+meta_store_changed_cb (GdaMetaStore *store, G_GNUC_UNUSED GSList *changes, GdaMetaStruct *mstruct)
{
/* for now we mark ALL the db objects as outdated */
meta_store_reset_cb (store, mstruct);
}
static void
-meta_store_reset_cb (GdaMetaStore *store, GdaMetaStruct *mstruct)
+meta_store_reset_cb (G_GNUC_UNUSED GdaMetaStore *store, GdaMetaStruct *mstruct)
{
/* mark ALL the db objects as outdated */
GSList *list;
@@ -1450,7 +1451,8 @@ db_object_sort_func (GdaMetaDbObject *dbo1, GdaMetaDbObject *dbo2)
* Returns: TRUE if no error occurred
*/
gboolean
-gda_meta_struct_sort_db_objects (GdaMetaStruct *mstruct, GdaMetaSortType sort_type, GError **error)
+gda_meta_struct_sort_db_objects (GdaMetaStruct *mstruct, GdaMetaSortType sort_type,
+ G_GNUC_UNUSED GError **error)
{
GSList *pass_list;
GSList *ordered_list = NULL;
@@ -1645,7 +1647,7 @@ gda_meta_struct_get_table_column (GdaMetaStruct *mstruct, GdaMetaTable *table, c
* Returns: (transfer full): a new string, or %NULL if an error occurred.
*/
gchar *
-gda_meta_struct_dump_as_graph (GdaMetaStruct *mstruct, GdaMetaGraphInfo info, GError **error)
+gda_meta_struct_dump_as_graph (GdaMetaStruct *mstruct, GdaMetaGraphInfo info, G_GNUC_UNUSED GError **error)
{
GString *string;
gchar *result;
diff --git a/libgda/gda-row.c b/libgda/gda-row.c
index c2ecd03..e76a36b 100644
--- a/libgda/gda-row.c
+++ b/libgda/gda-row.c
@@ -79,7 +79,7 @@ gda_row_class_init (GdaRowClass *klass)
}
static void
-gda_row_init (GdaRow *row, GdaRowClass *klass)
+gda_row_init (GdaRow *row, G_GNUC_UNUSED GdaRowClass *klass)
{
g_return_if_fail (GDA_IS_ROW (row));
@@ -124,7 +124,7 @@ static void
gda_row_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaRow *row;
@@ -148,7 +148,7 @@ static void
gda_row_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaRow *row;
@@ -181,7 +181,8 @@ gda_row_get_type (void)
NULL,
sizeof (GdaRow),
0,
- (GInstanceInitFunc) gda_row_init
+ (GInstanceInitFunc) gda_row_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -238,7 +239,7 @@ gda_row_get_value (GdaRow *row, gint num)
* providers' implementations to report any error while reading a value from the database.
*/
void
-gda_row_invalidate_value (GdaRow *row, GValue *value)
+gda_row_invalidate_value (G_GNUC_UNUSED GdaRow *row, GValue *value)
{
gda_value_set_null (value);
G_VALUE_TYPE (value) = G_TYPE_NONE;
@@ -256,7 +257,7 @@ gda_row_invalidate_value (GdaRow *row, GValue *value)
* Returns: %TRUE if @value is valid
*/
gboolean
-gda_row_value_is_valid (GdaRow *row, GValue *value)
+gda_row_value_is_valid (G_GNUC_UNUSED GdaRow *row, GValue *value)
{
return (G_VALUE_TYPE (value) == G_TYPE_NONE) ? FALSE : TRUE;
}
diff --git a/libgda/gda-server-operation.c b/libgda/gda-server-operation.c
index 4d0d91f..6eafdd2 100644
--- a/libgda/gda-server-operation.c
+++ b/libgda/gda-server-operation.c
@@ -201,7 +201,7 @@ gda_server_operation_class_init (GdaServerOperationClass *klass)
static void
gda_server_operation_init (GdaServerOperation *operation,
- GdaServerOperationClass *klass)
+ G_GNUC_UNUSED GdaServerOperationClass *klass)
{
g_return_if_fail (GDA_IS_SERVER_OPERATION (operation));
@@ -273,7 +273,8 @@ gda_server_operation_get_type (void)
NULL,
sizeof (GdaServerOperation),
0,
- (GInstanceInitFunc) gda_server_operation_init
+ (GInstanceInitFunc) gda_server_operation_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -443,7 +444,7 @@ node_find_or_create (GdaServerOperation *op, const gchar *path)
* Computes the complete path of a node
*/
static gchar *
-node_get_complete_path (GdaServerOperation *op, Node *node)
+node_get_complete_path (G_GNUC_UNUSED GdaServerOperation *op, Node *node)
{
GString *string;
gchar *retval;
@@ -525,7 +526,7 @@ static void
gda_server_operation_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaServerOperation *op;
@@ -622,7 +623,7 @@ static void
gda_server_operation_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaServerOperation *op;
@@ -1303,7 +1304,7 @@ static gboolean node_save (GdaServerOperation *op, Node *opnode, xmlNodePtr pare
* Returns: (transfer full): a new #xmlNodePtr structure, or %NULL
*/
xmlNodePtr
-gda_server_operation_save_data_to_xml (GdaServerOperation *op, GError **error)
+gda_server_operation_save_data_to_xml (GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
xmlNodePtr topnode = NULL;
GSList *list;
diff --git a/libgda/gda-server-provider-extra.c b/libgda/gda-server-provider-extra.c
index 1980554..d899400 100644
--- a/libgda/gda-server-provider-extra.c
+++ b/libgda/gda-server-provider-extra.c
@@ -109,8 +109,8 @@ gda_server_provider_perform_operation_default (GdaServerProvider *provider, GdaC
* Returns: (transfer none): a #GdaDataHandler, or %NULL
*/
GdaDataHandler *
-gda_server_provider_get_data_handler_default (GdaServerProvider *provider, GdaConnection *cnc,
- GType type, const gchar *dbms_type)
+gda_server_provider_get_data_handler_default (GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc,
+ GType type, G_GNUC_UNUSED const gchar *dbms_type)
{
GdaDataHandler *dh;
if ((type == G_TYPE_INT64) ||
@@ -185,7 +185,7 @@ gda_server_provider_get_data_handler_default (GdaServerProvider *provider, GdaCo
}
static gboolean
-param_to_null_foreach (GdaSqlAnyPart *part, gpointer data, GError **error)
+param_to_null_foreach (GdaSqlAnyPart *part, G_GNUC_UNUSED gpointer data, G_GNUC_UNUSED GError **error)
{
if (part->type == GDA_SQL_ANY_EXPR) {
GdaSqlExpr *expr = (GdaSqlExpr*) part;
@@ -216,7 +216,7 @@ param_to_null_foreach (GdaSqlAnyPart *part, gpointer data, GError **error)
* Returns: (transfer full): a new #GdaStatement
*/
GdaStatement *
-gda_select_alter_select_for_empty (GdaStatement *stmt, GError **error)
+gda_select_alter_select_for_empty (GdaStatement *stmt, G_GNUC_UNUSED GError **error)
{
GdaStatement *estmt;
GdaSqlStatement *sqlst;
diff --git a/libgda/gda-server-provider.c b/libgda/gda-server-provider.c
index 9ff0dfa..20ff1e1 100644
--- a/libgda/gda-server-provider.c
+++ b/libgda/gda-server-provider.c
@@ -158,7 +158,7 @@ gda_server_provider_handler_info_free (GdaServerProviderHandlerInfo *info)
static void
gda_server_provider_init (GdaServerProvider *provider,
- GdaServerProviderClass *klass)
+ G_GNUC_UNUSED GdaServerProviderClass *klass)
{
g_return_if_fail (GDA_IS_SERVER_PROVIDER (provider));
@@ -206,7 +206,8 @@ gda_server_provider_get_type (void)
NULL,
sizeof (GdaServerProvider),
0,
- (GInstanceInitFunc) gda_server_provider_init
+ (GInstanceInitFunc) gda_server_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -220,8 +221,8 @@ gda_server_provider_get_type (void)
static void
gda_server_provider_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec) {
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec) {
GdaServerProvider *prov;
prov = GDA_SERVER_PROVIDER (object);
@@ -236,8 +237,8 @@ gda_server_provider_set_property (GObject *object,
static void
gda_server_provider_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec) {
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec) {
GdaServerProvider *prov;
prov = GDA_SERVER_PROVIDER (object);
@@ -345,13 +346,13 @@ typedef struct {
static OpReq op_req_CREATE_DB [] = {
{"/DB_DEF_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/DB_DEF_P/DB_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_DROP_DB [] = {
{"/DB_DESC_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/DB_DESC_P/DB_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_CREATE_TABLE [] = {
@@ -360,26 +361,26 @@ static OpReq op_req_CREATE_TABLE [] = {
{"/FIELDS_A", GDA_SERVER_OPERATION_NODE_DATA_MODEL, 0},
{"/FIELDS_A/@COLUMN_NAME", GDA_SERVER_OPERATION_NODE_DATA_MODEL_COLUMN, G_TYPE_STRING},
{"/FIELDS_A/@COLUMN_TYPE", GDA_SERVER_OPERATION_NODE_DATA_MODEL_COLUMN, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_DROP_TABLE [] = {
{"/TABLE_DESC_P/TABLE_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_RENAME_TABLE [] = {
{"/TABLE_DESC_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/TABLE_DESC_P/TABLE_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/TABLE_DESC_P/TABLE_NEW_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_COMMENT_TABLE [] = {
{"/TABLE_DESC_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/TABLE_DESC_P/TABLE_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/TABLE_DESC_P/TABLE_COMMENT", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_ADD_COLUMN [] = {
@@ -387,14 +388,14 @@ static OpReq op_req_ADD_COLUMN [] = {
{"/COLUMN_DEF_P/TABLE_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/COLUMN_DEF_P/COLUMN_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/COLUMN_DEF_P/COLUMN_TYPE", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_DROP_COLUMN [] = {
{"/COLUMN_DESC_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/COLUMN_DESC_P/TABLE_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/COLUMN_DESC_P/COLUMN_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_COMMENT_COLUMN [] = {
@@ -402,37 +403,37 @@ static OpReq op_req_COMMENT_COLUMN [] = {
{"/COLUMN_DESC_P/TABLE_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/COLUMN_DESC_P/COLUMN_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/COLUMN_DESC_P/COLUMN_COMMENT", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_CREATE_INDEX [] = {
{"/INDEX_DEF_P/INDEX_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/INDEX_DEF_P/INDEX_ON_TABLE", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/INDEX_FIELDS_S", GDA_SERVER_OPERATION_NODE_SEQUENCE, 0},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_DROP_INDEX [] = {
{"/INDEX_DESC_P/INDEX_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_CREATE_VIEW [] = {
{"/VIEW_DEF_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/VIEW_DEF_P/VIEW_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
{"/VIEW_DEF_P/VIEW_DEF", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_DROP_VIEW [] = {
{"/VIEW_DESC_P/VIEW_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
static OpReq op_req_CREATE_USER [] = {
{"/USER_DEF_P", GDA_SERVER_OPERATION_NODE_PARAMLIST, 0},
{"/USER_DEF_P/USER_NAME", GDA_SERVER_OPERATION_NODE_PARAM, G_TYPE_STRING},
- {NULL}
+ {NULL, 0, 0}
};
@@ -795,7 +796,7 @@ gda_server_provider_string_to_value (GdaServerProvider *provider, GdaConnection
{
GValue *retval = NULL;
GdaDataHandler *dh;
- gint i;
+ gsize i;
g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), NULL);
g_return_val_if_fail (!cnc || GDA_IS_CONNECTION (cnc), NULL);
diff --git a/libgda/gda-set.c b/libgda/gda-set.c
index 1028fa1..ad08ea1 100644
--- a/libgda/gda-set.c
+++ b/libgda/gda-set.c
@@ -193,7 +193,8 @@ gda_set_get_type (void)
NULL,
sizeof (GdaSet),
0,
- (GInstanceInitFunc) gda_set_init
+ (GInstanceInitFunc) gda_set_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -206,10 +207,10 @@ gda_set_get_type (void)
}
static gboolean
-validate_accumulator (GSignalInvocationHint *ihint,
+validate_accumulator (G_GNUC_UNUSED GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
GError *error;
@@ -220,13 +221,14 @@ validate_accumulator (GSignalInvocationHint *ihint,
}
static GError *
-m_validate_holder_change (GdaSet *set, GdaHolder *holder, const GValue *new_value)
+m_validate_holder_change (G_GNUC_UNUSED GdaSet *set, G_GNUC_UNUSED GdaHolder *holder,
+ G_GNUC_UNUSED const GValue *new_value)
{
return NULL;
}
static GError *
-m_validate_set (GdaSet *set)
+m_validate_set (G_GNUC_UNUSED GdaSet *set)
{
return NULL;
}
@@ -1010,7 +1012,7 @@ gda_set_remove_holder (GdaSet *set, GdaHolder *holder)
}
static void
-source_changed_holder_cb (GdaHolder *holder, GdaSet *set)
+source_changed_holder_cb (G_GNUC_UNUSED GdaHolder *holder, GdaSet *set)
{
compute_public_data (set);
}
@@ -1060,7 +1062,7 @@ changed_holder_cb (GdaHolder *holder, GdaSet *set)
}
static void
-group_free (GdaSetGroup *group, gpointer data)
+group_free (GdaSetGroup *group, G_GNUC_UNUSED gpointer data)
{
g_slist_free (group->nodes);
g_free (group);
@@ -1472,6 +1474,8 @@ GdaHolder *
gda_set_get_nth_holder (GdaSet *set, gint pos)
{
g_return_val_if_fail (GDA_IS_SET (set), NULL);
+ g_return_val_if_fail (pos >= 0, NULL);
+
if (! set->priv->holders_array) {
GSList *list;
set->priv->holders_array = g_array_sized_new (FALSE, FALSE, sizeof (GdaHolder*),
@@ -1479,7 +1483,7 @@ gda_set_get_nth_holder (GdaSet *set, gint pos)
for (list = set->holders; list; list = list->next)
g_array_append_val (set->priv->holders_array, list->data);
}
- if ((pos < 0) || (pos > set->priv->holders_array->len))
+ if ((guint)pos > set->priv->holders_array->len)
return NULL;
else
return g_array_index (set->priv->holders_array, GdaHolder*, pos);
diff --git a/libgda/gda-sql-builder.c b/libgda/gda-sql-builder.c
index 80b6269..1494058 100644
--- a/libgda/gda-sql-builder.c
+++ b/libgda/gda-sql-builder.c
@@ -89,7 +89,8 @@ gda_sql_builder_get_type (void) {
NULL,
sizeof (GdaSqlBuilder),
0,
- (GInstanceInitFunc) gda_sql_builder_init
+ (GInstanceInitFunc) gda_sql_builder_init,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -220,7 +221,7 @@ static void
gda_sql_builder_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaSqlBuilder *builder;
GdaSqlStatementType stmt_type;
@@ -249,8 +250,8 @@ gda_sql_builder_set_property (GObject *object,
static void
gda_sql_builder_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaSqlBuilder *builder;
builder = GDA_SQL_BUILDER (object);
diff --git a/libgda/gda-statement.c b/libgda/gda-statement.c
index 3f8aa1f..d562f4c 100644
--- a/libgda/gda-statement.c
+++ b/libgda/gda-statement.c
@@ -108,7 +108,8 @@ gda_statement_get_type (void)
NULL,
sizeof (GdaStatement),
0,
- (GInstanceInitFunc) gda_statement_init
+ (GInstanceInitFunc) gda_statement_init,
+ 0
};
g_static_mutex_lock (®istering);
diff --git a/libgda/gda-transaction-status.c b/libgda/gda-transaction-status.c
index ad74c10..29d2369 100644
--- a/libgda/gda-transaction-status.c
+++ b/libgda/gda-transaction-status.c
@@ -50,7 +50,7 @@ gda_transaction_status_class_init (GdaTransactionStatusClass *klass)
}
static void
-gda_transaction_status_init (GdaTransactionStatus *tstatus, GdaTransactionStatusClass *klass)
+gda_transaction_status_init (GdaTransactionStatus *tstatus, G_GNUC_UNUSED GdaTransactionStatusClass *klass)
{
tstatus->name = NULL;
tstatus->isolation_level = GDA_TRANSACTION_ISOLATION_UNKNOWN;
@@ -118,7 +118,8 @@ gda_transaction_status_get_type (void)
NULL, NULL,
sizeof (GdaTransactionStatus),
0,
- (GInstanceInitFunc) gda_transaction_status_init
+ (GInstanceInitFunc) gda_transaction_status_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
diff --git a/libgda/gda-tree-manager.c b/libgda/gda-tree-manager.c
index 317e9b5..4b391cd 100644
--- a/libgda/gda-tree-manager.c
+++ b/libgda/gda-tree-manager.c
@@ -106,7 +106,7 @@ gda_tree_manager_class_init (GdaTreeManagerClass *klass)
}
static void
-gda_tree_manager_init (GdaTreeManager *manager, GdaTreeManagerClass *klass)
+gda_tree_manager_init (GdaTreeManager *manager, G_GNUC_UNUSED GdaTreeManagerClass *klass)
{
g_return_if_fail (GDA_IS_TREE_MANAGER (manager));
@@ -181,7 +181,8 @@ gda_tree_manager_get_type (void)
NULL,
sizeof (GdaTreeManager),
0,
- (GInstanceInitFunc) gda_tree_manager_init
+ (GInstanceInitFunc) gda_tree_manager_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -196,7 +197,7 @@ static void
gda_tree_manager_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeManager *manager;
@@ -217,7 +218,7 @@ static void
gda_tree_manager_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeManager *manager;
diff --git a/libgda/gda-tree-mgr-columns.c b/libgda/gda-tree-mgr-columns.c
index cc6fda3..7ece97b 100644
--- a/libgda/gda-tree-mgr-columns.c
+++ b/libgda/gda-tree-mgr-columns.c
@@ -107,7 +107,7 @@ gda_tree_mgr_columns_class_init (GdaTreeMgrColumnsClass *klass)
}
static void
-gda_tree_mgr_columns_init (GdaTreeMgrColumns *mgr, GdaTreeMgrColumnsClass *klass)
+gda_tree_mgr_columns_init (GdaTreeMgrColumns *mgr, G_GNUC_UNUSED GdaTreeMgrColumnsClass *klass)
{
g_return_if_fail (GDA_IS_TREE_MGR_COLUMNS (mgr));
mgr->priv = g_new0 (GdaTreeMgrColumnsPriv, 1);
@@ -162,7 +162,8 @@ gda_tree_mgr_columns_get_type (void)
NULL,
sizeof (GdaTreeMgrColumns),
0,
- (GInstanceInitFunc) gda_tree_mgr_columns_init
+ (GInstanceInitFunc) gda_tree_mgr_columns_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -177,7 +178,7 @@ static void
gda_tree_mgr_columns_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrColumns *mgr;
@@ -203,7 +204,7 @@ static void
gda_tree_mgr_columns_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrColumns *mgr;
@@ -250,7 +251,7 @@ gda_tree_mgr_columns_new (GdaConnection *cnc, const gchar *schema, const gchar *
}
static GSList *
-gda_tree_mgr_columns_update_children (GdaTreeManager *manager, GdaTreeNode *node, const GSList *children_nodes,
+gda_tree_mgr_columns_update_children (GdaTreeManager *manager, GdaTreeNode *node, G_GNUC_UNUSED const GSList *children_nodes,
gboolean *out_error, GError **error)
{
GdaTreeMgrColumns *mgr = GDA_TREE_MGR_COLUMNS (manager);
diff --git a/libgda/gda-tree-mgr-label.c b/libgda/gda-tree-mgr-label.c
index f720135..22367a5 100644
--- a/libgda/gda-tree-mgr-label.c
+++ b/libgda/gda-tree-mgr-label.c
@@ -81,7 +81,7 @@ gda_tree_mgr_label_class_init (GdaTreeMgrLabelClass *klass)
}
static void
-gda_tree_mgr_label_init (GdaTreeMgrLabel *mgr, GdaTreeMgrLabelClass *klass)
+gda_tree_mgr_label_init (GdaTreeMgrLabel *mgr, G_GNUC_UNUSED GdaTreeMgrLabelClass *klass)
{
g_return_if_fail (GDA_IS_TREE_MGR_LABEL (mgr));
mgr->priv = g_new0 (GdaTreeMgrLabelPriv, 1);
@@ -125,7 +125,8 @@ gda_tree_mgr_label_get_type (void)
NULL,
sizeof (GdaTreeMgrLabel),
0,
- (GInstanceInitFunc) gda_tree_mgr_label_init
+ (GInstanceInitFunc) gda_tree_mgr_label_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -140,7 +141,7 @@ static void
gda_tree_mgr_label_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrLabel *mgr;
@@ -158,7 +159,7 @@ static void
gda_tree_mgr_label_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrLabel *mgr;
@@ -193,7 +194,7 @@ gda_tree_mgr_label_new (const gchar *label)
static GSList *
gda_tree_mgr_label_update_children (GdaTreeManager *manager, GdaTreeNode *node, const GSList *children_nodes,
- gboolean *out_error, GError **error)
+ G_GNUC_UNUSED gboolean *out_error, G_GNUC_UNUSED GError **error)
{
if (children_nodes) {
GSList *list = g_slist_copy ((GSList*) children_nodes);
diff --git a/libgda/gda-tree-mgr-schemas.c b/libgda/gda-tree-mgr-schemas.c
index 674ba6b..5d39afb 100644
--- a/libgda/gda-tree-mgr-schemas.c
+++ b/libgda/gda-tree-mgr-schemas.c
@@ -81,7 +81,7 @@ gda_tree_mgr_schemas_class_init (GdaTreeMgrSchemasClass *klass)
}
static void
-gda_tree_mgr_schemas_init (GdaTreeMgrSchemas *mgr, GdaTreeMgrSchemasClass *klass)
+gda_tree_mgr_schemas_init (GdaTreeMgrSchemas *mgr, G_GNUC_UNUSED GdaTreeMgrSchemasClass *klass)
{
g_return_if_fail (GDA_IS_TREE_MGR_SCHEMAS (mgr));
mgr->priv = g_new0 (GdaTreeMgrSchemasPriv, 1);
@@ -131,7 +131,8 @@ gda_tree_mgr_schemas_get_type (void)
NULL,
sizeof (GdaTreeMgrSchemas),
0,
- (GInstanceInitFunc) gda_tree_mgr_schemas_init
+ (GInstanceInitFunc) gda_tree_mgr_schemas_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -146,7 +147,7 @@ static void
gda_tree_mgr_schemas_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrSchemas *mgr;
@@ -166,7 +167,7 @@ static void
gda_tree_mgr_schemas_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrSchemas *mgr;
@@ -203,8 +204,9 @@ gda_tree_mgr_schemas_new (GdaConnection *cnc)
}
static GSList *
-gda_tree_mgr_schemas_update_children (GdaTreeManager *manager, GdaTreeNode *node, const GSList *children_nodes,
- gboolean *out_error, GError **error)
+gda_tree_mgr_schemas_update_children (GdaTreeManager *manager, GdaTreeNode *node,
+ G_GNUC_UNUSED const GSList *children_nodes, gboolean *out_error,
+ GError **error)
{
GdaTreeMgrSchemas *mgr = GDA_TREE_MGR_SCHEMAS (manager);
GdaMetaStore *store;
diff --git a/libgda/gda-tree-mgr-select.c b/libgda/gda-tree-mgr-select.c
index d38dabc..0778c5a 100644
--- a/libgda/gda-tree-mgr-select.c
+++ b/libgda/gda-tree-mgr-select.c
@@ -95,7 +95,7 @@ gda_tree_mgr_select_class_init (GdaTreeMgrSelectClass *klass)
}
static void
-gda_tree_mgr_select_init (GdaTreeMgrSelect *mgr, GdaTreeMgrSelectClass *klass)
+gda_tree_mgr_select_init (GdaTreeMgrSelect *mgr, G_GNUC_UNUSED GdaTreeMgrSelectClass *klass)
{
g_return_if_fail (GDA_IS_TREE_MGR_SELECT (mgr));
mgr->priv = g_new0 (GdaTreeMgrSelectPriv, 1);
@@ -151,7 +151,8 @@ gda_tree_mgr_select_get_type (void)
NULL,
sizeof (GdaTreeMgrSelect),
0,
- (GInstanceInitFunc) gda_tree_mgr_select_init
+ (GInstanceInitFunc) gda_tree_mgr_select_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -166,7 +167,7 @@ static void
gda_tree_mgr_select_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrSelect *mgr;
@@ -234,7 +235,7 @@ static void
gda_tree_mgr_select_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrSelect *mgr;
@@ -282,8 +283,9 @@ gda_tree_mgr_select_new (GdaConnection *cnc, GdaStatement *stmt, GdaSet *params)
}
static GSList *
-gda_tree_mgr_select_update_children (GdaTreeManager *manager, GdaTreeNode *node, const GSList *children_nodes,
- gboolean *out_error, GError **error)
+gda_tree_mgr_select_update_children (GdaTreeManager *manager, GdaTreeNode *node,
+ G_GNUC_UNUSED const GSList *children_nodes, gboolean *out_error,
+ GError **error)
{
GdaTreeMgrSelect *mgr = GDA_TREE_MGR_SELECT (manager);
GdaDataModel *model;
diff --git a/libgda/gda-tree-mgr-tables.c b/libgda/gda-tree-mgr-tables.c
index 58fddec..2cb7362 100644
--- a/libgda/gda-tree-mgr-tables.c
+++ b/libgda/gda-tree-mgr-tables.c
@@ -98,7 +98,7 @@ gda_tree_mgr_tables_class_init (GdaTreeMgrTablesClass *klass)
}
static void
-gda_tree_mgr_tables_init (GdaTreeMgrTables *mgr, GdaTreeMgrTablesClass *klass)
+gda_tree_mgr_tables_init (GdaTreeMgrTables *mgr, G_GNUC_UNUSED GdaTreeMgrTablesClass *klass)
{
g_return_if_fail (GDA_IS_TREE_MGR_TABLES (mgr));
mgr->priv = g_new0 (GdaTreeMgrTablesPriv, 1);
@@ -154,7 +154,8 @@ gda_tree_mgr_tables_get_type (void)
NULL,
sizeof (GdaTreeMgrTables),
0,
- (GInstanceInitFunc) gda_tree_mgr_tables_init
+ (GInstanceInitFunc) gda_tree_mgr_tables_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -169,7 +170,7 @@ static void
gda_tree_mgr_tables_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrTables *mgr;
@@ -192,7 +193,7 @@ static void
gda_tree_mgr_tables_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeMgrTables *mgr;
@@ -234,8 +235,9 @@ gda_tree_mgr_tables_new (GdaConnection *cnc, const gchar *schema)
}
static GSList *
-gda_tree_mgr_tables_update_children (GdaTreeManager *manager, GdaTreeNode *node, const GSList *children_nodes,
- gboolean *out_error, GError **error)
+gda_tree_mgr_tables_update_children (GdaTreeManager *manager, GdaTreeNode *node,
+ G_GNUC_UNUSED const GSList *children_nodes, gboolean *out_error,
+ GError **error)
{
GdaTreeMgrTables *mgr = GDA_TREE_MGR_TABLES (manager);
GdaMetaStore *store;
diff --git a/libgda/gda-tree-node.c b/libgda/gda-tree-node.c
index 47f7a1f..bf676ab 100644
--- a/libgda/gda-tree-node.c
+++ b/libgda/gda-tree-node.c
@@ -261,7 +261,7 @@ m_node_deleted (GdaTreeNode *reporting, const gchar *relative_path)
}
static void
-gda_tree_node_init (GdaTreeNode *tnode, GdaTreeNodeClass *klass)
+gda_tree_node_init (GdaTreeNode *tnode, G_GNUC_UNUSED GdaTreeNodeClass *klass)
{
g_return_if_fail (GDA_IS_TREE_NODE (tnode));
@@ -322,7 +322,8 @@ gda_tree_node_get_type (void)
NULL,
sizeof (GdaTreeNode),
0,
- (GInstanceInitFunc) gda_tree_node_init
+ (GInstanceInitFunc) gda_tree_node_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -337,7 +338,7 @@ static void
gda_tree_node_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeNode *tnode;
@@ -355,7 +356,7 @@ static void
gda_tree_node_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTreeNode *tnode;
diff --git a/libgda/gda-tree.c b/libgda/gda-tree.c
index 3ca4ff6..7952303 100644
--- a/libgda/gda-tree.c
+++ b/libgda/gda-tree.c
@@ -178,7 +178,7 @@ gda_tree_class_init (GdaTreeClass *klass)
}
static void
-gda_tree_init (GdaTree *tree, GdaTreeClass *klass)
+gda_tree_init (GdaTree *tree, G_GNUC_UNUSED GdaTreeClass *klass)
{
g_return_if_fail (GDA_IS_TREE (tree));
@@ -247,7 +247,8 @@ gda_tree_get_type (void)
NULL,
sizeof (GdaTree),
0,
- (GInstanceInitFunc) gda_tree_init
+ (GInstanceInitFunc) gda_tree_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -261,8 +262,8 @@ gda_tree_get_type (void)
static void
gda_tree_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTree *tree;
@@ -277,7 +278,7 @@ static void
gda_tree_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaTree *tree;
@@ -600,7 +601,7 @@ gda_tree_get_node_path (GdaTree *tree, GdaTreeNode *node)
if (build_node_path (tree, node, array))
str = g_strjoinv (":", (gchar **) array->data);
- gint i;
+ gsize i;
for (i = 0; i < array->len; i++)
g_free (g_array_index (array, gchar *, i));
g_array_free (array, TRUE);
@@ -929,7 +930,7 @@ node_has_child_toggled_cb (GdaTreeNode *reporting, GdaTreeNode *node, GdaTree *t
}
static void
-node_deleted_cb (GdaTreeNode *reporting, const gchar *relative_path, GdaTree *tree)
+node_deleted_cb (G_GNUC_UNUSED GdaTreeNode *reporting, const gchar *relative_path, GdaTree *tree)
{
g_signal_emit (tree, gda_tree_signals [NODE_DELETED], 0, relative_path);
}
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index 492721f..536dbd7 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -1610,11 +1610,11 @@ gda_completion_list_get (GdaConnection *cnc, const gchar *sql, gint start, gint
/*
* start of a statement => complete with SQL start of statement words
*/
- gint len;
- gint i;
+ gsize len;
+ gsize i;
len = strlen (text);
for (i = 0; i < (sizeof (sql_start_words) / sizeof (gchar*)); i++) {
- gint clen = strlen (sql_start_words[i]);
+ gsize clen = strlen (sql_start_words[i]);
if (!g_ascii_strncasecmp (sql_start_words[i], text, MIN (clen, len))) {
gchar *str;
str = g_strdup (sql_start_words[i]);
@@ -1766,11 +1766,11 @@ gda_completion_list_get (GdaConnection *cnc, const gchar *sql, gint start, gint
* middle of a statement and no completion yet => complete with SQL statement words
*/
{
- gint len;
- gint i;
+ gsize len;
+ gsize i;
len = strlen (text);
for (i = 0; i < (sizeof (sql_middle_words) / sizeof (gchar*)); i++) {
- gint clen = strlen (sql_middle_words[i]);
+ gsize clen = strlen (sql_middle_words[i]);
if (!g_ascii_strncasecmp (sql_middle_words[i], text, MIN (clen, len))) {
gchar *str;
str = g_strdup (sql_middle_words[i]);
@@ -1784,7 +1784,7 @@ gda_completion_list_get (GdaConnection *cnc, const gchar *sql, gint start, gint
if (compl) {
if (compl->len >= 1) {
/* sort */
- gint i;
+ gsize i;
g_array_sort (compl, cmp_func);
/* remove duplicates if any */
@@ -2212,7 +2212,7 @@ gda_rfc1738_encode (const gchar *string)
{
gchar *ret, *wptr;
const gchar *rptr;
- gint i;
+ gsize i;
if (!string)
return NULL;
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index da6869b..6d10850 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -873,9 +873,9 @@ gda_time_valid (const GdaTime *time)
{
g_return_val_if_fail (time, FALSE);
- if (time->hour < 0 || time->hour > 24 ||
- time->minute < 0 || time->minute > 59 ||
- time->second < 0 || time->second > 59)
+ if (time->hour > 24 ||
+ time->minute > 59 ||
+ time->second > 59)
return FALSE;
else
return TRUE;
@@ -1022,9 +1022,9 @@ gda_timestamp_valid (const GdaTimestamp *timestamp)
g_date_free (gdate);
/* check the time part */
- if (timestamp->hour < 0 || timestamp->hour > 24 ||
- timestamp->minute < 0 || timestamp->minute > 59 ||
- timestamp->second < 0 || timestamp->second > 59)
+ if (timestamp->hour > 24 ||
+ timestamp->minute > 59 ||
+ timestamp->second > 59)
return FALSE;
else
return TRUE;
@@ -2423,7 +2423,7 @@ gda_binary_to_string (const GdaBinary *bin, guint maxlen)
gulong realsize = MYMIN (bin->binary_length, maxlen);
gchar *retval;
- glong offset = 0;
+ gulong offset = 0;
if (!bin->data || (bin->binary_length == 0))
return g_strdup ("");
diff --git a/libgda/gda-xa-transaction.c b/libgda/gda-xa-transaction.c
index eee2371..a62c60f 100644
--- a/libgda/gda-xa-transaction.c
+++ b/libgda/gda-xa-transaction.c
@@ -89,7 +89,7 @@ gda_xa_transaction_class_init (GdaXaTransactionClass *klass)
}
static void
-gda_xa_transaction_init (GdaXaTransaction *xa_trans, GdaXaTransactionClass *klass)
+gda_xa_transaction_init (GdaXaTransaction *xa_trans, G_GNUC_UNUSED GdaXaTransactionClass *klass)
{
xa_trans->priv = g_new0 (GdaXaTransactionPrivate, 1);
xa_trans->priv->xid.format = 1;
@@ -225,7 +225,8 @@ gda_xa_transaction_get_type (void)
NULL, NULL,
sizeof (GdaXaTransaction),
0,
- (GInstanceInitFunc) gda_xa_transaction_init
+ (GInstanceInitFunc) gda_xa_transaction_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
diff --git a/libgda/handlers/gda-handler-bin.c b/libgda/handlers/gda-handler-bin.c
index 2085b7d..6c4ccf2 100644
--- a/libgda/handlers/gda-handler-bin.c
+++ b/libgda/handlers/gda-handler-bin.c
@@ -67,7 +67,8 @@ gda_handler_bin_get_type (void)
NULL,
sizeof (GdaHandlerBin),
0,
- (GInstanceInitFunc) gda_handler_bin_init
+ (GInstanceInitFunc) gda_handler_bin_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
diff --git a/libgda/handlers/gda-handler-boolean.c b/libgda/handlers/gda-handler-boolean.c
index 4d972f5..aecceda 100644
--- a/libgda/handlers/gda-handler-boolean.c
+++ b/libgda/handlers/gda-handler-boolean.c
@@ -67,7 +67,8 @@ gda_handler_boolean_get_type (void)
NULL,
sizeof (GdaHandlerBoolean),
0,
- (GInstanceInitFunc) gda_handler_boolean_init
+ (GInstanceInitFunc) gda_handler_boolean_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -192,7 +193,7 @@ gda_handler_boolean_get_str_from_value (GdaDataHandler *iface, const GValue *val
}
static GValue *
-gda_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, GType type)
+gda_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, G_GNUC_UNUSED GType type)
{
GdaHandlerBoolean *hdl;
GValue *value;
@@ -210,7 +211,7 @@ gda_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql,
}
static GValue *
-gda_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str, GType type)
+gda_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str, G_GNUC_UNUSED GType type)
{
GdaHandlerBoolean *hdl;
GValue *value = NULL;
@@ -240,7 +241,7 @@ gda_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str,
static GValue *
-gda_handler_boolean_get_sane_init_value (GdaDataHandler *iface, GType type)
+gda_handler_boolean_get_sane_init_value (GdaDataHandler *iface, G_GNUC_UNUSED GType type)
{
GdaHandlerBoolean *hdl;
GValue *value;
diff --git a/libgda/handlers/gda-handler-numerical.c b/libgda/handlers/gda-handler-numerical.c
index 98e4a2e..065271e 100644
--- a/libgda/handlers/gda-handler-numerical.c
+++ b/libgda/handlers/gda-handler-numerical.c
@@ -68,7 +68,8 @@ gda_handler_numerical_get_type (void)
NULL,
sizeof (GdaHandlerNumerical),
0,
- (GInstanceInitFunc) gda_handler_numerical_init
+ (GInstanceInitFunc) gda_handler_numerical_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
diff --git a/libgda/handlers/gda-handler-string.c b/libgda/handlers/gda-handler-string.c
index 95e2639..bb330b0 100644
--- a/libgda/handlers/gda-handler-string.c
+++ b/libgda/handlers/gda-handler-string.c
@@ -71,7 +71,8 @@ gda_handler_string_get_type (void)
NULL,
sizeof (GdaHandlerString),
0,
- (GInstanceInitFunc) gda_handler_string_init
+ (GInstanceInitFunc) gda_handler_string_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -243,7 +244,7 @@ gda_handler_string_get_str_from_value (GdaDataHandler *iface, const GValue *valu
}
static GValue *
-gda_handler_string_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, GType type)
+gda_handler_string_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, G_GNUC_UNUSED GType type)
{
GdaHandlerString *hdl;
GValue *value = NULL;
@@ -276,7 +277,7 @@ gda_handler_string_get_value_from_sql (GdaDataHandler *iface, const gchar *sql,
}
static GValue *
-gda_handler_string_get_value_from_str (GdaDataHandler *iface, const gchar *sql, GType type)
+gda_handler_string_get_value_from_str (GdaDataHandler *iface, const gchar *sql, G_GNUC_UNUSED GType type)
{
GdaHandlerString *hdl;
GValue *value;
@@ -291,7 +292,7 @@ gda_handler_string_get_value_from_str (GdaDataHandler *iface, const gchar *sql,
}
static GValue *
-gda_handler_string_get_sane_init_value (GdaDataHandler *iface, GType type)
+gda_handler_string_get_sane_init_value (GdaDataHandler *iface, G_GNUC_UNUSED GType type)
{
GdaHandlerString *hdl;
GValue *value;
diff --git a/libgda/handlers/gda-handler-time.c b/libgda/handlers/gda-handler-time.c
index a164395..4f6fa7c 100644
--- a/libgda/handlers/gda-handler-time.c
+++ b/libgda/handlers/gda-handler-time.c
@@ -93,7 +93,8 @@ gda_handler_time_get_type (void)
NULL,
sizeof (GdaHandlerTime),
0,
- (GInstanceInitFunc) gda_handler_time_init
+ (GInstanceInitFunc) gda_handler_time_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -823,7 +824,7 @@ make_timestamp (GdaHandlerTime *hdl, GdaTimestamp *timestamp, const gchar *value
/* Makes a GDate from a string like "24-12-2003" */
static gboolean
-make_date (GdaHandlerTime *hdl, GDate *date, const gchar *value, LocaleSetting *locale)
+make_date (G_GNUC_UNUSED GdaHandlerTime *hdl, GDate *date, const gchar *value, LocaleSetting *locale)
{
gboolean retval = TRUE;
gushort nums[3];
@@ -923,7 +924,7 @@ make_date (GdaHandlerTime *hdl, GDate *date, const gchar *value, LocaleSetting *
* Also works if there is only 0 or 1 digit instead of 2
*/
static gboolean
-make_time (GdaHandlerTime *hdl, GdaTime *timegda, const gchar *value)
+make_time (G_GNUC_UNUSED GdaHandlerTime *hdl, GdaTime *timegda, const gchar *value)
{
const gchar *ptr;
diff --git a/libgda/handlers/gda-handler-type.c b/libgda/handlers/gda-handler-type.c
index a3f21e6..f6a13e8 100644
--- a/libgda/handlers/gda-handler-type.c
+++ b/libgda/handlers/gda-handler-type.c
@@ -65,7 +65,8 @@ gda_handler_type_get_type (void)
NULL,
sizeof (GdaHandlerType),
0,
- (GInstanceInitFunc) gda_handler_type_init
+ (GInstanceInitFunc) gda_handler_type_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -213,7 +214,7 @@ gda_handler_type_get_str_from_value (GdaDataHandler *iface, const GValue *value)
}
static GValue *
-gda_handler_type_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, GType type)
+gda_handler_type_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, G_GNUC_UNUSED GType type)
{
GdaHandlerType *hdl;
GValue *value = NULL;
@@ -240,7 +241,7 @@ gda_handler_type_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, GT
}
static GValue *
-gda_handler_type_get_value_from_str (GdaDataHandler *iface, const gchar *str, GType type)
+gda_handler_type_get_value_from_str (GdaDataHandler *iface, const gchar *str, G_GNUC_UNUSED GType type)
{
GdaHandlerType *hdl;
GValue *value;
diff --git a/libgda/providers-support/gda-pstmt.c b/libgda/providers-support/gda-pstmt.c
index 0c7ce50..17a977f 100644
--- a/libgda/providers-support/gda-pstmt.c
+++ b/libgda/providers-support/gda-pstmt.c
@@ -57,7 +57,8 @@ gda_pstmt_get_type (void)
NULL,
sizeof (GdaPStmt),
0,
- (GInstanceInitFunc) gda_pstmt_init
+ (GInstanceInitFunc) gda_pstmt_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -80,7 +81,7 @@ gda_pstmt_class_init (GdaPStmtClass *klass)
}
static void
-gda_pstmt_init (GdaPStmt *pstmt, GdaPStmtClass *klass)
+gda_pstmt_init (GdaPStmt *pstmt, G_GNUC_UNUSED GdaPStmtClass *klass)
{
g_return_if_fail (GDA_IS_PSTMT (pstmt));
pstmt->priv = g_new0 (GdaPStmtPrivate, 1);
diff --git a/libgda/sql-parser/gda-sql-parser.c b/libgda/sql-parser/gda-sql-parser.c
index 49577bc..41679c0 100644
--- a/libgda/sql-parser/gda-sql-parser.c
+++ b/libgda/sql-parser/gda-sql-parser.c
@@ -124,7 +124,8 @@ gda_sql_parser_get_type (void)
NULL,
sizeof (GdaSqlParser),
0,
- (GInstanceInitFunc) gda_sql_parser_init
+ (GInstanceInitFunc) gda_sql_parser_init,
+ 0
};
static GInterfaceInfo lockable_info = {
diff --git a/libgda/sql-parser/gda-statement-struct-compound.c b/libgda/sql-parser/gda-statement-struct-compound.c
index 886e12c..bc3d8c8 100644
--- a/libgda/sql-parser/gda-statement-struct-compound.c
+++ b/libgda/sql-parser/gda-statement-struct-compound.c
@@ -36,6 +36,10 @@ GdaSqlStatementContentsInfo compound_infos = {
_gda_sql_statement_compound_serialize,
gda_sql_statement_compound_check_structure,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -241,7 +245,7 @@ _gda_sql_statement_compound_get_n_cols (GdaSqlStatementCompound *compound, GErro
}
static gboolean
-gda_sql_statement_compound_check_structure (GdaSqlAnyPart *stmt, gpointer data, GError **error)
+gda_sql_statement_compound_check_structure (GdaSqlAnyPart *stmt, G_GNUC_UNUSED gpointer data, GError **error)
{
GdaSqlStatementCompound *compound = (GdaSqlStatementCompound *) stmt;
gint nb_cols = -1;
diff --git a/libgda/sql-parser/gda-statement-struct-delete.c b/libgda/sql-parser/gda-statement-struct-delete.c
index d234488..6db0ddf 100644
--- a/libgda/sql-parser/gda-statement-struct-delete.c
+++ b/libgda/sql-parser/gda-statement-struct-delete.c
@@ -40,6 +40,10 @@ GdaSqlStatementContentsInfo delete_infos = {
gda_sql_statement_delete_serialize,
gda_sql_statement_delete_check_structure,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -152,7 +156,7 @@ gda_sql_statement_delete_take_condition (GdaSqlStatement *stmt, GdaSqlExpr *cond
}
static gboolean
-gda_sql_statement_delete_check_structure (GdaSqlAnyPart *stmt, gpointer data, GError **error)
+gda_sql_statement_delete_check_structure (GdaSqlAnyPart *stmt, G_GNUC_UNUSED gpointer data, GError **error)
{
GdaSqlStatementDelete *delete = (GdaSqlStatementDelete *) stmt;
if (!delete->table) {
diff --git a/libgda/sql-parser/gda-statement-struct-insert.c b/libgda/sql-parser/gda-statement-struct-insert.c
index 12d73f6..8635b81 100644
--- a/libgda/sql-parser/gda-statement-struct-insert.c
+++ b/libgda/sql-parser/gda-statement-struct-insert.c
@@ -41,6 +41,10 @@ GdaSqlStatementContentsInfo insert_infos = {
gda_sql_statement_insert_serialize,
gda_sql_statement_insert_check_structure,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -338,10 +342,10 @@ gda_sql_statement_insert_take_select (GdaSqlStatement *stmt, GdaSqlStatement *se
}
static gboolean
-gda_sql_statement_insert_check_structure (GdaSqlAnyPart *stmt, gpointer data, GError **error)
+gda_sql_statement_insert_check_structure (GdaSqlAnyPart *stmt, G_GNUC_UNUSED gpointer data, GError **error)
{
GdaSqlStatementInsert *insert = (GdaSqlStatementInsert *) stmt;
- gint nb_values;
+ guint nb_values;
GSList *list;
if (!stmt) return TRUE;
@@ -358,15 +362,17 @@ gda_sql_statement_insert_check_structure (GdaSqlAnyPart *stmt, gpointer data, GE
return FALSE;
}
if (nb_values > 0) {
- gint len;
+ guint len;
if (GDA_SQL_ANY_PART (insert->select)->type == GDA_SQL_ANY_STMT_SELECT) {
GdaSqlStatementSelect *select = (GdaSqlStatementSelect*) insert->select;
len = g_slist_length (select->expr_list);
}
else if (GDA_SQL_ANY_PART (insert->select)->type == GDA_SQL_ANY_STMT_COMPOUND) {
+ gint compound_len;
GdaSqlStatementCompound *compound = (GdaSqlStatementCompound*) insert->select;
- len = _gda_sql_statement_compound_get_n_cols (compound, error);
- if (len < 0)
+ compound_len = _gda_sql_statement_compound_get_n_cols (compound, error);
+ len = compound_len;
+ if (compound_len < 0)
return FALSE;
}
else
diff --git a/libgda/sql-parser/gda-statement-struct-select.c b/libgda/sql-parser/gda-statement-struct-select.c
index cd284f6..48e9163 100644
--- a/libgda/sql-parser/gda-statement-struct-select.c
+++ b/libgda/sql-parser/gda-statement-struct-select.c
@@ -37,7 +37,11 @@ GdaSqlStatementContentsInfo select_infos = {
_gda_sql_statement_select_serialize,
gda_sql_statement_select_check_structure,
- gda_sql_statement_select_check_validity
+ gda_sql_statement_select_check_validity,
+ NULL,
+ NULL,
+ NULL,
+ NULL
};
GdaSqlStatementContentsInfo *
@@ -392,7 +396,7 @@ gda_sql_statement_select_take_limits (GdaSqlStatement *stmt, GdaSqlExpr *count,
}
static gboolean
-gda_sql_statement_select_check_structure (GdaSqlAnyPart *stmt, gpointer data, GError **error)
+gda_sql_statement_select_check_structure (GdaSqlAnyPart *stmt, G_GNUC_UNUSED gpointer data, GError **error)
{
GdaSqlStatementSelect *select = (GdaSqlStatementSelect *) stmt;
if (!select->expr_list) {
@@ -422,7 +426,7 @@ gda_sql_statement_select_check_structure (GdaSqlAnyPart *stmt, gpointer data, GE
}
static gboolean
-gda_sql_statement_select_check_validity (GdaSqlAnyPart *stmt, gpointer data, GError **error)
+gda_sql_statement_select_check_validity (GdaSqlAnyPart *stmt, G_GNUC_UNUSED gpointer data, GError **error)
{
GdaSqlStatementSelect *select = (GdaSqlStatementSelect *) stmt;
gboolean retval = TRUE;
diff --git a/libgda/sql-parser/gda-statement-struct-trans.c b/libgda/sql-parser/gda-statement-struct-trans.c
index 3a087d8..adcd199 100644
--- a/libgda/sql-parser/gda-statement-struct-trans.c
+++ b/libgda/sql-parser/gda-statement-struct-trans.c
@@ -37,6 +37,10 @@ GdaSqlStatementContentsInfo begin_infos = {
gda_sql_statement_trans_copy,
gda_sql_statement_trans_serialize,
NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -54,6 +58,11 @@ GdaSqlStatementContentsInfo commit_infos = {
gda_sql_statement_trans_free,
gda_sql_statement_trans_copy,
gda_sql_statement_trans_serialize,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -71,6 +80,11 @@ GdaSqlStatementContentsInfo rollback_infos = {
gda_sql_statement_trans_free,
gda_sql_statement_trans_copy,
gda_sql_statement_trans_serialize,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -88,6 +102,11 @@ GdaSqlStatementContentsInfo svp_infos = {
gda_sql_statement_trans_free,
gda_sql_statement_trans_copy,
gda_sql_statement_trans_serialize,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -105,6 +124,11 @@ GdaSqlStatementContentsInfo rollback_svp_infos = {
gda_sql_statement_trans_free,
gda_sql_statement_trans_copy,
gda_sql_statement_trans_serialize,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -122,6 +146,11 @@ GdaSqlStatementContentsInfo delete_svp_infos = {
gda_sql_statement_trans_free,
gda_sql_statement_trans_copy,
gda_sql_statement_trans_serialize,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
diff --git a/libgda/sql-parser/gda-statement-struct-unknown.c b/libgda/sql-parser/gda-statement-struct-unknown.c
index 68224ab..ea6bcd6 100644
--- a/libgda/sql-parser/gda-statement-struct-unknown.c
+++ b/libgda/sql-parser/gda-statement-struct-unknown.c
@@ -35,6 +35,10 @@ GdaSqlStatementContentsInfo unknown_infos = {
gda_sql_statement_unknown_copy,
gda_sql_statement_unknown_serialize,
NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
diff --git a/libgda/sql-parser/gda-statement-struct-update.c b/libgda/sql-parser/gda-statement-struct-update.c
index d375e73..29d4068 100644
--- a/libgda/sql-parser/gda-statement-struct-update.c
+++ b/libgda/sql-parser/gda-statement-struct-update.c
@@ -40,6 +40,10 @@ GdaSqlStatementContentsInfo update_infos = {
gda_sql_statement_update_serialize,
gda_sql_statement_update_check_structure,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
@@ -268,7 +272,7 @@ gda_sql_statement_update_take_set_value (GdaSqlStatement *stmt, GValue *fname, G
}
static gboolean
-gda_sql_statement_update_check_structure (GdaSqlAnyPart *stmt, gpointer data, GError **error)
+gda_sql_statement_update_check_structure (GdaSqlAnyPart *stmt, G_GNUC_UNUSED gpointer data, GError **error)
{
GdaSqlStatementUpdate *update = (GdaSqlStatementUpdate *) stmt;
diff --git a/libgda/sql-parser/gda-statement-struct.c b/libgda/sql-parser/gda-statement-struct.c
index aea1658..d4ef6d4 100644
--- a/libgda/sql-parser/gda-statement-struct.c
+++ b/libgda/sql-parser/gda-statement-struct.c
@@ -538,7 +538,7 @@ foreach_check_validity (GdaSqlAnyPart *node, GdaSqlStatementCheckValidityData *d
}
static gboolean
-gda_sql_expr_check_validity (GdaSqlExpr *expr, GdaSqlStatementCheckValidityData *data, GError **error)
+gda_sql_expr_check_validity (GdaSqlExpr *expr, G_GNUC_UNUSED GdaSqlStatementCheckValidityData *data, G_GNUC_UNUSED GError **error)
{
if (!expr) return TRUE;
if (!expr->param_spec) return TRUE;
@@ -886,7 +886,7 @@ gda_sql_statement_check_clean (GdaSqlStatement *stmt)
}
static gboolean
-foreach_check_clean (GdaSqlAnyPart *node, gpointer data, GError **error)
+foreach_check_clean (GdaSqlAnyPart *node, G_GNUC_UNUSED gpointer data, G_GNUC_UNUSED GError **error)
{
if (!node) return TRUE;
@@ -936,7 +936,7 @@ gda_sql_statement_check_structure (GdaSqlStatement *stmt, GError **error)
}
static gboolean
-foreach_check_struct (GdaSqlAnyPart *node, gpointer data, GError **error)
+foreach_check_struct (GdaSqlAnyPart *node, G_GNUC_UNUSED gpointer data, GError **error)
{
return gda_sql_any_part_check_structure (node, error);
}
@@ -1407,7 +1407,7 @@ gda_sql_statement_normalize (GdaSqlStatement *stmt, GdaConnection *cnc, GError *
}
static gboolean
-foreach_normalize (GdaSqlAnyPart *node, GdaConnection *cnc, GError **error)
+foreach_normalize (GdaSqlAnyPart *node, G_GNUC_UNUSED GdaConnection *cnc, GError **error)
{
if (!node) return TRUE;
diff --git a/libgda/sqlite/Makefile.am b/libgda/sqlite/Makefile.am
index 8f22590..f5b35d0 100644
--- a/libgda/sqlite/Makefile.am
+++ b/libgda/sqlite/Makefile.am
@@ -60,7 +60,7 @@ sqlitesources = \
gda-symbols-util.h \
gda-symbols-util.c
-$(libgda_sqlite_la_OBJECTS): xml_embedded.h keywords_hash.c
+BUILT_SOURCES = xml_embedded.h keywords_hash.c
libgda_sqlite_la_SOURCES = $(sqlitesources)
libgda_sqlite_la_CFLAGS = -DPNAME=\""SQLite"\" -DCLASS_PREFIX=\""GdaSqlite"\" -DSEARCH_LIB_PATH=\""$(SQLITE_PATH)"\"
@@ -85,4 +85,4 @@ gdainclude_HEADERS=$(sqliteheaders)
EXTRA_DIST = gen_emb_string.c mkkeywordhash.c keywords.list
-CLEANFILES = gen_emb_string$(EXEEXT_FOR_BUILD) xml_embedded.h mkkeywordhash$(EXEEXT_FOR_BUILD) keywords_hash.c
+CLEANFILES = gen_emb_string$(EXEEXT_FOR_BUILD) mkkeywordhash$(EXEEXT_FOR_BUILD) $(BUILT_SOURCES)
diff --git a/libgda/sqlite/gda-sqlite-blob-op.c b/libgda/sqlite/gda-sqlite-blob-op.c
index 77afc11..303931d 100644
--- a/libgda/sqlite/gda-sqlite-blob-op.c
+++ b/libgda/sqlite/gda-sqlite-blob-op.c
@@ -62,7 +62,8 @@ _gda_sqlite_blob_op_get_type (void)
NULL,
sizeof (GdaSqliteBlobOp),
0,
- (GInstanceInitFunc) gda_sqlite_blob_op_init
+ (GInstanceInitFunc) gda_sqlite_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -73,7 +74,7 @@ _gda_sqlite_blob_op_get_type (void)
}
static void
-gda_sqlite_blob_op_init (GdaSqliteBlobOp *op, GdaSqliteBlobOpClass *klass)
+gda_sqlite_blob_op_init (GdaSqliteBlobOp *op, G_GNUC_UNUSED GdaSqliteBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_SQLITE_BLOB_OP (op));
diff --git a/libgda/sqlite/gda-sqlite-ddl.c b/libgda/sqlite/gda-sqlite-ddl.c
index 7369ef5..e394de3 100644
--- a/libgda/sqlite/gda-sqlite-ddl.c
+++ b/libgda/sqlite/gda-sqlite-ddl.c
@@ -229,7 +229,7 @@ _gda_sqlite_render_CREATE_TABLE (GdaServerProvider *provider, GdaConnection *cnc
gchar *
_gda_sqlite_render_DROP_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -256,7 +256,7 @@ _gda_sqlite_render_DROP_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
_gda_sqlite_render_RENAME_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
gchar *sql = NULL;
@@ -282,7 +282,7 @@ _gda_sqlite_render_RENAME_TABLE (GdaServerProvider *provider, GdaConnection *cnc
gchar *
_gda_sqlite_render_ADD_COLUMN (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -351,7 +351,7 @@ _gda_sqlite_render_ADD_COLUMN (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
_gda_sqlite_render_CREATE_INDEX (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -432,7 +432,7 @@ _gda_sqlite_render_CREATE_INDEX (GdaServerProvider *provider, GdaConnection *cnc
gchar *
_gda_sqlite_render_DROP_INDEX (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -458,7 +458,7 @@ _gda_sqlite_render_DROP_INDEX (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
_gda_sqlite_render_CREATE_VIEW (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -502,7 +502,7 @@ _gda_sqlite_render_CREATE_VIEW (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
_gda_sqlite_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/libgda/sqlite/gda-sqlite-handler-bin.c b/libgda/sqlite/gda-sqlite-handler-bin.c
index ff0437b..415c21e 100644
--- a/libgda/sqlite/gda-sqlite-handler-bin.c
+++ b/libgda/sqlite/gda-sqlite-handler-bin.c
@@ -65,7 +65,8 @@ _gda_sqlite_handler_bin_get_type (void)
NULL,
sizeof (GdaSqliteHandlerBin),
0,
- (GInstanceInitFunc) gda_sqlite_handler_bin_init
+ (GInstanceInitFunc) gda_sqlite_handler_bin_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
diff --git a/libgda/sqlite/gda-sqlite-handler-boolean.c b/libgda/sqlite/gda-sqlite-handler-boolean.c
index a644e4c..bc9712c 100644
--- a/libgda/sqlite/gda-sqlite-handler-boolean.c
+++ b/libgda/sqlite/gda-sqlite-handler-boolean.c
@@ -67,7 +67,8 @@ _gda_sqlite_handler_boolean_get_type (void)
NULL,
sizeof (GdaSqliteHandlerBoolean),
0,
- (GInstanceInitFunc) gda_sqlite_handler_boolean_init
+ (GInstanceInitFunc) gda_sqlite_handler_boolean_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
@@ -192,7 +193,7 @@ gda_sqlite_handler_boolean_get_str_from_value (GdaDataHandler *iface, const GVal
}
static GValue *
-gda_sqlite_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, GType type)
+gda_sqlite_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gchar *sql, G_GNUC_UNUSED GType type)
{
GdaSqliteHandlerBoolean *hdl;
GValue *value;
@@ -210,7 +211,7 @@ gda_sqlite_handler_boolean_get_value_from_sql (GdaDataHandler *iface, const gcha
}
static GValue *
-gda_sqlite_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str, GType type)
+gda_sqlite_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gchar *str, G_GNUC_UNUSED GType type)
{
GdaSqliteHandlerBoolean *hdl;
GValue *value = NULL;
@@ -230,7 +231,7 @@ gda_sqlite_handler_boolean_get_value_from_str (GdaDataHandler *iface, const gcha
static GValue *
-gda_sqlite_handler_boolean_get_sane_init_value (GdaDataHandler *iface, GType type)
+gda_sqlite_handler_boolean_get_sane_init_value (GdaDataHandler *iface, G_GNUC_UNUSED GType type)
{
GdaSqliteHandlerBoolean *hdl;
GValue *value;
diff --git a/libgda/sqlite/gda-sqlite-meta.c b/libgda/sqlite/gda-sqlite-meta.c
index 3925ab5..2911a7b 100644
--- a/libgda/sqlite/gda-sqlite-meta.c
+++ b/libgda/sqlite/gda-sqlite-meta.c
@@ -236,7 +236,7 @@ get_statement (InternalStatementItem type, const gchar *schema_name, const gchar
}
gboolean
-_gda_sqlite_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -255,12 +255,12 @@ _gda_sqlite_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *mod_model;
gboolean retval = TRUE;
- gint i;
+ gsize i;
typedef struct {
gchar *tname;
gchar *gtype;
@@ -450,7 +450,7 @@ nocase_str_equal (gconstpointer v1, gconstpointer v2)
}
gboolean
-_gda_sqlite_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
SqliteConnectionData *cdata;
@@ -506,9 +506,9 @@ _gda_sqlite_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema)
+ G_GNUC_UNUSED const GValue *udt_catalog, const GValue *udt_schema)
{
SqliteConnectionData *cdata;
GdaDataModel *mod_model = NULL;
@@ -542,94 +542,104 @@ _gda_sqlite_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_sqlite_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_sqlite_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *domain_catalog, const GValue *domain_schema)
+_gda_sqlite_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *domain_catalog, const GValue *domain_schema,
- const GValue *domain_name)
+_gda_sqlite_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema,
+ G_GNUC_UNUSED const GValue *domain_name)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *specific_name)
+_gda_sqlite_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *specific_name)
{
/* feature not supported by SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* FIXME: We need to do something similar to what's done with
* functions and aggregates as there is no pragma or API */
@@ -637,10 +647,11 @@ _gda_sqlite_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *collation_catalog, const GValue *collation_schema,
- const GValue *collation_name_n)
+_gda_sqlite_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *collation_catalog,
+ G_GNUC_UNUSED const GValue *collation_schema,
+ G_GNUC_UNUSED const GValue *collation_name_n)
{
/* FIXME: We need to do something similar to what's done with
* functions and aggregates as there is no pragma or API */
@@ -648,8 +659,8 @@ _gda_sqlite_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context, G_GNUC_UNUSED GError **error)
{
/* FIXME: We need to do something similar to what's done with
* functions and aggregates as there is no pragma or API */
@@ -657,10 +668,10 @@ _gda_sqlite_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *chset_catalog, const GValue *chset_schema,
- const GValue *chset_name_n)
+_gda_sqlite_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context, G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *chset_catalog, G_GNUC_UNUSED const GValue *chset_schema,
+ G_GNUC_UNUSED const GValue *chset_name_n)
{
/* FIXME: We need to do something similar to what's done with
* functions and aggregates as there is no pragma or API */
@@ -676,9 +687,9 @@ _gda_sqlite_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *catalog_name, const GValue *schema_name_n)
+ G_GNUC_UNUSED const GValue *catalog_name, const GValue *schema_name_n)
{
GdaDataModel *model, *tmpmodel;
gboolean retval = TRUE;
@@ -841,7 +852,7 @@ fill_tables_views_model (GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *tmpmodel;
@@ -897,9 +908,9 @@ _gda_sqlite_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name_n)
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema, const GValue *table_name_n)
{
GdaDataModel *tables_model, *views_model;
gboolean retval = TRUE;
@@ -1083,7 +1094,7 @@ fill_columns_model (GdaConnection *cnc, SqliteConnectionData *cdata,
}
gboolean
-_gda_sqlite_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *mod_model, *tmpmodel;
@@ -1165,9 +1176,9 @@ _gda_sqlite_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name)
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema, const GValue *table_name)
{
gboolean retval = TRUE;
GdaDataModel *mod_model = NULL;
@@ -1191,18 +1202,18 @@ _gda_sqlite_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context, G_GNUC_UNUSED GError **error)
{
/* FIXME: feature not natively supported by SQLite => parse view's definition ? */
return TRUE;
}
gboolean
-_gda_sqlite_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *view_catalog, const GValue *view_schema,
- const GValue *view_name)
+_gda_sqlite_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *view_catalog,
+ G_GNUC_UNUSED const GValue *view_schema, G_GNUC_UNUSED const GValue *view_name)
{
/* FIXME: feature not natively supported by SQLite => parse view's definition ? */
return TRUE;
@@ -1428,7 +1439,7 @@ fill_constraints_tab_model (GdaConnection *cnc, SqliteConnectionData *cdata, Gda
}
gboolean
-_gda_sqlite_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *mod_model, *tmpmodel;
@@ -1509,10 +1520,10 @@ _gda_sqlite_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *constraint_name_n)
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema,
+ const GValue *table_name, const GValue *constraint_name_n)
{
gboolean retval = TRUE;
GdaDataModel *mod_model = NULL;
@@ -1536,8 +1547,8 @@ _gda_sqlite_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
static gboolean
-fill_constraints_ref_model (GdaConnection *cnc, SqliteConnectionData *cdata, GdaDataModel *mod_model,
- const GValue *p_table_schema, const GValue *p_table_name,
+fill_constraints_ref_model (GdaConnection *cnc, G_GNUC_UNUSED SqliteConnectionData *cdata,
+ GdaDataModel *mod_model, const GValue *p_table_schema, const GValue *p_table_name,
const GValue *constraint_name_n, GError **error)
{
GdaDataModel *tmpmodel;
@@ -1619,7 +1630,7 @@ fill_constraints_ref_model (GdaConnection *cnc, SqliteConnectionData *cdata, Gda
}
gboolean
-_gda_sqlite_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *mod_model, *tmpmodel;
@@ -1700,9 +1711,9 @@ _gda_sqlite_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name)
{
gboolean retval = TRUE;
@@ -1919,7 +1930,7 @@ fill_key_columns_model (GdaConnection *cnc, SqliteConnectionData *cdata, GdaData
}
gboolean
-_gda_sqlite_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
/* iterate through the tables, and each time call fill_constraints_tab_model()
@@ -2039,9 +2050,9 @@ _gda_sqlite_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name)
{
gboolean retval = TRUE;
@@ -2066,36 +2077,39 @@ _gda_sqlite_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context, G_GNUC_UNUSED GError **error)
{
/* FIXME: How to get this ? */
return TRUE;
}
gboolean
-_gda_sqlite_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name)
+_gda_sqlite_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
/* FIXME: How to get this ? */
return TRUE;
}
gboolean
-_gda_sqlite_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* FIXME: How to get this ? */
return TRUE;
}
gboolean
-_gda_sqlite_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name)
+_gda_sqlite_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name)
{
/* FIXME: How to get this ? */
return TRUE;
@@ -2112,7 +2126,8 @@ _gda_sqlite_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
#ifndef HAVE_SQLITE
static gboolean
fill_routines (GdaDataModel *mod_model,
- const GValue *rname, const GValue *is_agg, const GValue *rnargs, const GValue *sname, GError **error)
+ const GValue *rname, const GValue *is_agg, const GValue *rnargs, const GValue *sname,
+ GError **error)
{
GValue *v0;
gboolean retval = TRUE;
@@ -2152,10 +2167,10 @@ fill_routines (GdaDataModel *mod_model,
#endif
gboolean
-_gda_sqlite_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_sqlite_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *routine_catalog, const GValue *routine_schema,
- const GValue *routine_name_n)
+ G_GNUC_UNUSED const GValue *routine_catalog,
+ G_GNUC_UNUSED const GValue *routine_schema, const GValue *routine_name_n)
{
gboolean retval = TRUE;
@@ -2220,72 +2235,79 @@ _gda_sqlite_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_sqlite_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* feature not available in SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *rout_catalog, const GValue *rout_schema,
- const GValue *rout_name)
+_gda_sqlite_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema, G_GNUC_UNUSED const GValue *rout_name)
{
/* feature not available in SQLite */
return TRUE;
}
gboolean
-_gda_sqlite_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* Routines in SQLite accept any type of value => nothing to do */
return TRUE;
}
gboolean
-_gda_sqlite_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *rout_catalog, const GValue *rout_schema,
- const GValue *rout_name)
+_gda_sqlite_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema, G_GNUC_UNUSED const GValue *rout_name)
{
/* Routines in SQLite accept any type of value => nothing to do */
return TRUE;
}
gboolean
-_gda_sqlite_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_sqlite_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *index_name_n)
+_gda_sqlite_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *index_name_n)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_sqlite_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_sqlite_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_sqlite_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *index_name)
+_gda_sqlite_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *index_name)
{
//TO_IMPLEMENT;
return TRUE;
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index 766ea9c..3a5240b 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -517,7 +517,7 @@ gda_sqlite_provider_class_init (GdaSqliteProviderClass *klass)
}
static void
-gda_sqlite_provider_init (GdaSqliteProvider *sqlite_prv, GdaSqliteProviderClass *klass)
+gda_sqlite_provider_init (GdaSqliteProvider *sqlite_prv, G_GNUC_UNUSED GdaSqliteProviderClass *klass)
{
InternalStatementItem i;
GdaSqlParser *parser;
@@ -559,7 +559,8 @@ gda_sqlite_provider_get_type (void)
NULL, NULL,
sizeof (GdaSqliteProvider),
0,
- (GInstanceInitFunc) gda_sqlite_provider_init
+ (GInstanceInitFunc) gda_sqlite_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0) {
@@ -595,7 +596,7 @@ gda_sqlite_provider_get_type (void)
* Get provider name request
*/
static const gchar *
-gda_sqlite_provider_get_name (GdaServerProvider *provider)
+gda_sqlite_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PNAME;
}
@@ -604,7 +605,7 @@ gda_sqlite_provider_get_name (GdaServerProvider *provider)
* Get provider's version
*/
static const gchar *
-gda_sqlite_provider_get_version (GdaServerProvider *provider)
+gda_sqlite_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -615,7 +616,7 @@ gda_sqlite_provider_get_version (GdaServerProvider *provider)
static gboolean
gda_sqlite_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb, G_GNUC_UNUSED gpointer cb_data)
{
gchar *filename = NULL;
const gchar *dirname = NULL, *dbname = NULL;
@@ -856,7 +857,7 @@ gda_sqlite_provider_open_connection (GdaServerProvider *provider, GdaConnection
}
if (use_extra_functions && ((*use_extra_functions == 't') || (*use_extra_functions == 'T'))) {
- int i;
+ gsize i;
for (i = 0; i < sizeof (scalars) / sizeof (ScalarFunction); i++) {
ScalarFunction *func = (ScalarFunction *) &(scalars [i]);
@@ -936,8 +937,8 @@ gda_sqlite_provider_get_database (GdaServerProvider *provider, GdaConnection *cn
* Support operation request
*/
static gboolean
-gda_sqlite_provider_supports_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options)
+gda_sqlite_provider_supports_operation (G_GNUC_UNUSED GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc,
+ GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options)
{
switch (type) {
case GDA_SERVER_OPERATION_CREATE_DB:
@@ -964,9 +965,9 @@ gda_sqlite_provider_supports_operation (GdaServerProvider *provider, GdaConnecti
* Create operation request
*/
static GdaServerOperation *
-gda_sqlite_provider_create_operation (GdaServerProvider *provider, GdaConnection *cnc,
+gda_sqlite_provider_create_operation (GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc,
GdaServerOperationType type,
- GdaSet *options, GError **error)
+ G_GNUC_UNUSED GdaSet *options, GError **error)
{
gchar *file;
GdaServerOperation *op;
@@ -1086,8 +1087,8 @@ gda_sqlite_provider_render_operation (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_sqlite_provider_perform_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, guint *task_id, GdaServerProviderAsyncCallback async_cb,
- gpointer cb_data, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data, GError **error)
{
GdaServerOperationType optype;
@@ -1240,7 +1241,7 @@ gda_sqlite_provider_perform_operation (GdaServerProvider *provider, GdaConnectio
*/
static gboolean
gda_sqlite_provider_begin_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GdaTransactionIsolation level,
+ const gchar *name, G_GNUC_UNUSED GdaTransactionIsolation level,
GError **error)
{
gboolean status = TRUE;
@@ -1449,7 +1450,7 @@ gda_sqlite_provider_get_data_handler (GdaServerProvider *provider, GdaConnection
* Get default DBMS type request
*/
static const gchar*
-gda_sqlite_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConnection *cnc, GType type)
+gda_sqlite_provider_get_default_dbms_type (G_GNUC_UNUSED GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc, GType type)
{
if ((type == G_TYPE_INT64) ||
(type == G_TYPE_INT) ||
@@ -1495,7 +1496,7 @@ gda_sqlite_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConne
* Create parser request
*/
static GdaSqlParser *
-gda_sqlite_provider_create_parser (GdaServerProvider *provider, GdaConnection *cnc)
+gda_sqlite_provider_create_parser (G_GNUC_UNUSED GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc)
{
return (GdaSqlParser*) g_object_new (GDA_TYPE_SQL_PARSER, "tokenizer-flavour", GDA_SQL_PARSER_FLAVOUR_SQLITE, NULL);
}
@@ -2116,7 +2117,7 @@ real_prepare (GdaServerProvider *provider, GdaConnection *cnc, GdaStatement *stm
#define MAKE_LAST_INSERTED_SET_ID "__gda"
static void
-lir_stmt_reset_cb (GdaStatement *stmt, gpointer data)
+lir_stmt_reset_cb (GdaStatement *stmt, G_GNUC_UNUSED gpointer data)
{
/* get rid of the SELECT statement used in make_last_inserted_set() */
g_object_set_data ((GObject*) stmt, MAKE_LAST_INSERTED_SET_ID, NULL);
@@ -2675,7 +2676,7 @@ gda_sqlite_provider_statement_execute (GdaServerProvider *provider, GdaConnectio
else if (G_VALUE_TYPE (value) == G_TYPE_UCHAR)
SQLITE3_CALL (sqlite3_bind_int) (ps->sqlite_stmt, i, g_value_get_uchar (value));
else if (G_VALUE_TYPE (value) == GDA_TYPE_BLOB) {
- gulong blob_len;
+ glong blob_len;
GdaBlob *blob = (GdaBlob*) gda_value_get_blob (value);
const gchar *str = NULL;
@@ -3103,7 +3104,7 @@ scalar_gda_hex_func2 (sqlite3_context *context, int argc, sqlite3_value **argv)
gint length;
GString *string;
gint i;
- gint size;
+ guint size;
if (argc != 2) {
SQLITE3_CALL (sqlite3_result_error) (context, _("Function requires two arguments"), -1);
@@ -3149,7 +3150,7 @@ gda_sqlite_free_cnc_data (SqliteConnectionData *cdata)
}
static gchar *
-gda_sqlite_provider_escape_string (GdaServerProvider *provider, GdaConnection *cnc, const gchar *string)
+gda_sqlite_provider_escape_string (G_GNUC_UNUSED GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc, const gchar *string)
{
gchar *ptr, *ret, *retptr;
gint size;
@@ -3189,7 +3190,7 @@ gda_sqlite_provider_escape_string (GdaServerProvider *provider, GdaConnection *c
}
gchar *
-gda_sqlite_provider_unescape_string (GdaServerProvider *provider, GdaConnection *cnc, const gchar *string)
+gda_sqlite_provider_unescape_string (G_GNUC_UNUSED GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc, const gchar *string)
{
glong total;
gchar *ptr;
diff --git a/libgda/sqlite/gda-sqlite-pstmt.c b/libgda/sqlite/gda-sqlite-pstmt.c
index 20d0496..0f89471 100644
--- a/libgda/sqlite/gda-sqlite-pstmt.c
+++ b/libgda/sqlite/gda-sqlite-pstmt.c
@@ -52,7 +52,8 @@ _gda_sqlite_pstmt_get_type (void)
NULL,
sizeof (GdaSqlitePStmt),
0,
- (GInstanceInitFunc) gda_sqlite_pstmt_init
+ (GInstanceInitFunc) gda_sqlite_pstmt_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -74,7 +75,7 @@ gda_sqlite_pstmt_class_init (GdaSqlitePStmtClass *klass)
}
static void
-gda_sqlite_pstmt_init (GdaSqlitePStmt *pstmt, GdaSqlitePStmtClass *klass)
+gda_sqlite_pstmt_init (GdaSqlitePStmt *pstmt, G_GNUC_UNUSED GdaSqlitePStmtClass *klass)
{
g_return_if_fail (GDA_IS_PSTMT (pstmt));
pstmt->sqlite_stmt = NULL;
diff --git a/libgda/sqlite/gda-sqlite-recordset.c b/libgda/sqlite/gda-sqlite-recordset.c
index 8a19b13..6f596fd 100644
--- a/libgda/sqlite/gda-sqlite-recordset.c
+++ b/libgda/sqlite/gda-sqlite-recordset.c
@@ -61,7 +61,7 @@ static GObjectClass *parent_class = NULL;
*/
static void
gda_sqlite_recordset_init (GdaSqliteRecordset *recset,
- GdaSqliteRecordsetClass *klass)
+ G_GNUC_UNUSED GdaSqliteRecordsetClass *klass)
{
g_return_if_fail (GDA_IS_SQLITE_RECORDSET (recset));
recset->priv = g_new0 (GdaSqliteRecordsetPrivate, 1);
@@ -128,7 +128,8 @@ _gda_sqlite_recordset_get_type (void)
NULL,
sizeof (GdaSqliteRecordset),
0,
- (GInstanceInitFunc) gda_sqlite_recordset_init
+ (GInstanceInitFunc) gda_sqlite_recordset_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -610,7 +611,7 @@ gda_sqlite_recordset_fetch_random (GdaDataSelect *model, GdaRow **prow, gint row
* never keeps a reference to it). Before a new #GdaRow gets created, the previous one, if set, is discarded.
*/
static gboolean
-gda_sqlite_recordset_fetch_next (GdaDataSelect *model, GdaRow **prow, gint rownum, GError **error)
+gda_sqlite_recordset_fetch_next (GdaDataSelect *model, GdaRow **prow, G_GNUC_UNUSED gint rownum, GError **error)
{
GdaSqliteRecordset *imodel = (GdaSqliteRecordset*) model;
diff --git a/libgda/sqlite/gda-sqlite-util.c b/libgda/sqlite/gda-sqlite-util.c
index 64045c5..822b33a 100644
--- a/libgda/sqlite/gda-sqlite-util.c
+++ b/libgda/sqlite/gda-sqlite-util.c
@@ -236,7 +236,7 @@ sqlite_remove_quotes (gchar *str)
}
gchar *
-_gda_sqlite_identifier_quote (GdaServerProvider *provider, GdaConnection *cnc,
+_gda_sqlite_identifier_quote (G_GNUC_UNUSED GdaServerProvider *provider, GdaConnection *cnc,
const gchar *id,
gboolean for_meta_store, gboolean force_quotes)
{
diff --git a/libgda/sqlite/virtual/gda-vconnection-data-model.c b/libgda/sqlite/virtual/gda-vconnection-data-model.c
index da77e6f..66f495a 100644
--- a/libgda/sqlite/virtual/gda-vconnection-data-model.c
+++ b/libgda/sqlite/virtual/gda-vconnection-data-model.c
@@ -70,7 +70,7 @@ gda_vconnection_data_model_class_init (GdaVconnectionDataModelClass *klass)
}
static void
-gda_vconnection_data_model_init (GdaVconnectionDataModel *cnc, GdaVconnectionDataModelClass *klass)
+gda_vconnection_data_model_init (GdaVconnectionDataModel *cnc, G_GNUC_UNUSED GdaVconnectionDataModelClass *klass)
{
cnc->priv = g_new (GdaVconnectionDataModelPrivate, 1);
cnc->priv->table_data_list = NULL;
@@ -114,7 +114,8 @@ gda_vconnection_data_model_get_type (void)
NULL, NULL,
sizeof (GdaVconnectionDataModel),
0,
- (GInstanceInitFunc) gda_vconnection_data_model_init
+ (GInstanceInitFunc) gda_vconnection_data_model_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -130,8 +131,8 @@ gda_vconnection_data_model_get_type (void)
static void
gda_vconnection_data_model_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVconnectionDataModel *cnc;
@@ -147,8 +148,8 @@ gda_vconnection_data_model_set_property (GObject *object,
static void
gda_vconnection_data_model_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVconnectionDataModel *cnc;
diff --git a/libgda/sqlite/virtual/gda-vconnection-hub.c b/libgda/sqlite/virtual/gda-vconnection-hub.c
index 76700b1..741ef0a 100644
--- a/libgda/sqlite/virtual/gda-vconnection-hub.c
+++ b/libgda/sqlite/virtual/gda-vconnection-hub.c
@@ -88,7 +88,7 @@ gda_vconnection_hub_class_init (GdaVconnectionHubClass *klass)
}
static void
-gda_vconnection_hub_init (GdaVconnectionHub *cnc, GdaVconnectionHubClass *klass)
+gda_vconnection_hub_init (GdaVconnectionHub *cnc, G_GNUC_UNUSED GdaVconnectionHubClass *klass)
{
cnc->priv = g_new (GdaVconnectionHubPrivate, 1);
cnc->priv->hub_connections = NULL;
@@ -130,7 +130,8 @@ gda_vconnection_hub_get_type (void)
NULL, NULL,
sizeof (GdaVconnectionHub),
0,
- (GInstanceInitFunc) gda_vconnection_hub_init
+ (GInstanceInitFunc) gda_vconnection_hub_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -146,8 +147,8 @@ gda_vconnection_hub_get_type (void)
static void
gda_vconnection_hub_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVconnectionHub *cnc;
@@ -163,8 +164,8 @@ gda_vconnection_hub_set_property (GObject *object,
static void
gda_vconnection_hub_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVconnectionHub *cnc;
@@ -489,7 +490,7 @@ get_complete_table_name (HubConnection *hc, const GValue *table_name)
}
static void
-meta_changed_cb (GdaMetaStore *store, GSList *changes, HubConnection *hc)
+meta_changed_cb (G_GNUC_UNUSED GdaMetaStore *store, GSList *changes, HubConnection *hc)
{
GSList *list;
for (list = changes; list; list = list->next) {
diff --git a/libgda/sqlite/virtual/gda-virtual-connection.c b/libgda/sqlite/virtual/gda-virtual-connection.c
index fab51be..2545f47 100644
--- a/libgda/sqlite/virtual/gda-virtual-connection.c
+++ b/libgda/sqlite/virtual/gda-virtual-connection.c
@@ -72,7 +72,7 @@ gda_virtual_connection_class_init (GdaVirtualConnectionClass *klass)
}
static void
-gda_virtual_connection_init (GdaVirtualConnection *vcnc, GdaVirtualConnectionClass *klass)
+gda_virtual_connection_init (GdaVirtualConnection *vcnc, G_GNUC_UNUSED GdaVirtualConnectionClass *klass)
{
vcnc->priv = g_new0 (GdaVirtualConnectionPrivate, 1);
vcnc->priv->v_provider_data = NULL;
@@ -110,7 +110,8 @@ gda_virtual_connection_get_type (void)
NULL, NULL,
sizeof (GdaVirtualConnection),
0,
- (GInstanceInitFunc) gda_virtual_connection_init
+ (GInstanceInitFunc) gda_virtual_connection_init,
+ 0
};
g_static_mutex_lock (®istering);
diff --git a/libgda/sqlite/virtual/gda-virtual-provider.c b/libgda/sqlite/virtual/gda-virtual-provider.c
index a4822ae..991373e 100644
--- a/libgda/sqlite/virtual/gda-virtual-provider.c
+++ b/libgda/sqlite/virtual/gda-virtual-provider.c
@@ -76,7 +76,7 @@ gda_virtual_provider_class_init (GdaVirtualProviderClass *klass)
}
static void
-gda_virtual_provider_init (GdaVirtualProvider *vprov, GdaVirtualProviderClass *klass)
+gda_virtual_provider_init (GdaVirtualProvider *vprov, G_GNUC_UNUSED GdaVirtualProviderClass *klass)
{
vprov->priv = g_new (GdaVirtualProviderPrivate, 1);
}
@@ -120,7 +120,8 @@ gda_virtual_provider_get_type (void)
NULL, NULL,
sizeof (GdaVirtualProvider),
0,
- (GInstanceInitFunc) gda_virtual_provider_init
+ (GInstanceInitFunc) gda_virtual_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -136,8 +137,8 @@ gda_virtual_provider_get_type (void)
static void
gda_virtual_provider_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVirtualProvider *prov;
@@ -153,8 +154,8 @@ gda_virtual_provider_set_property (GObject *object,
static void
gda_virtual_provider_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVirtualProvider *prov;
diff --git a/libgda/sqlite/virtual/gda-vprovider-data-model.c b/libgda/sqlite/virtual/gda-vprovider-data-model.c
index 972041e..222a158 100644
--- a/libgda/sqlite/virtual/gda-vprovider-data-model.c
+++ b/libgda/sqlite/virtual/gda-vprovider-data-model.c
@@ -96,7 +96,7 @@ gda_vprovider_data_model_class_init (GdaVproviderDataModelClass *klass)
}
static void
-gda_vprovider_data_model_init (GdaVproviderDataModel *prov, GdaVproviderDataModelClass *klass)
+gda_vprovider_data_model_init (GdaVproviderDataModel *prov, G_GNUC_UNUSED GdaVproviderDataModelClass *klass)
{
prov->priv = g_new (GdaVproviderDataModelPrivate, 1);
}
@@ -132,7 +132,8 @@ gda_vprovider_data_model_get_type (void)
NULL, NULL,
sizeof (GdaVproviderDataModel),
0,
- (GInstanceInitFunc) gda_vprovider_data_model_init
+ (GInstanceInitFunc) gda_vprovider_data_model_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -148,8 +149,8 @@ gda_vprovider_data_model_get_type (void)
static void
gda_vprovider_data_model_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVproviderDataModel *prov;
@@ -165,8 +166,8 @@ gda_vprovider_data_model_set_property (GObject *object,
static void
gda_vprovider_data_model_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVproviderDataModel *prov;
@@ -253,7 +254,7 @@ gda_vprovider_data_model_create_connection (GdaServerProvider *provider)
static gboolean
gda_vprovider_data_model_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb, G_GNUC_UNUSED gpointer cb_data)
{
GdaQuarkList *m_params;
@@ -296,7 +297,7 @@ gda_vprovider_data_model_open_connection (GdaServerProvider *provider, GdaConnec
}
static void
-cnc_close_foreach_func (GdaDataModel *model, const gchar *table_name, GdaVconnectionDataModel *cnc)
+cnc_close_foreach_func (G_GNUC_UNUSED GdaDataModel *model, const gchar *table_name, GdaVconnectionDataModel *cnc)
{
/*g_print ("---- FOREACH: Removing virtual table '%s'\n", table_name);*/
if (! gda_vconnection_data_model_remove (cnc, table_name, NULL))
@@ -316,7 +317,7 @@ gda_vprovider_data_model_close_connection (GdaServerProvider *provider, GdaConne
}
static const gchar *
-gda_vprovider_data_model_get_name (GdaServerProvider *provider)
+gda_vprovider_data_model_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return "Virtual";
}
@@ -543,7 +544,7 @@ virtual_table_manage_real_data_model (VirtualTable *vtable)
if (vtable->td->columns) {
/* columns */
GList *list;
- gint i, ncols;
+ guint i, ncols;
ncols = gda_data_model_get_n_columns (vtable->td->real_model);
g_assert (ncols == g_list_length (vtable->td->columns));
for (i = 0, list = vtable->td->columns;
@@ -697,7 +698,7 @@ virtualRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
}
static int
-virtualFilter (sqlite3_vtab_cursor *pVtabCursor, int idxNum, const char *idxStr, int argc, sqlite3_value **argv)
+virtualFilter (sqlite3_vtab_cursor *pVtabCursor, int idxNum, G_GNUC_UNUSED const char *idxStr, G_GNUC_UNUSED int argc, G_GNUC_UNUSED sqlite3_value **argv)
{
VirtualCursor *cursor = (VirtualCursor*) pVtabCursor;
@@ -715,7 +716,7 @@ virtualFilter (sqlite3_vtab_cursor *pVtabCursor, int idxNum, const char *idxStr,
}
static int
-virtualBestIndex (sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo)
+virtualBestIndex (G_GNUC_UNUSED sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo)
{
TRACE ();
@@ -841,21 +842,21 @@ virtualBegin (sqlite3_vtab *tab)
}
static int
-virtualSync (sqlite3_vtab *tab)
+virtualSync (G_GNUC_UNUSED sqlite3_vtab *tab)
{
TRACE ();
return SQLITE_OK;
}
static int
-virtualCommit (sqlite3_vtab *tab)
+virtualCommit (G_GNUC_UNUSED sqlite3_vtab *tab)
{
TRACE ();
return SQLITE_OK;
}
static int
-virtualRollback (sqlite3_vtab *tab)
+virtualRollback (G_GNUC_UNUSED sqlite3_vtab *tab)
{
TRACE ();
return SQLITE_OK;
diff --git a/libgda/sqlite/virtual/gda-vprovider-hub.c b/libgda/sqlite/virtual/gda-vprovider-hub.c
index abc14cc..fe68343 100644
--- a/libgda/sqlite/virtual/gda-vprovider-hub.c
+++ b/libgda/sqlite/virtual/gda-vprovider-hub.c
@@ -79,7 +79,7 @@ gda_vprovider_hub_class_init (GdaVproviderHubClass *klass)
}
static void
-gda_vprovider_hub_init (GdaVproviderHub *prov, GdaVproviderHubClass *klass)
+gda_vprovider_hub_init (GdaVproviderHub *prov, G_GNUC_UNUSED GdaVproviderHubClass *klass)
{
prov->priv = g_new (GdaVproviderHubPrivate, 1);
}
@@ -115,7 +115,8 @@ gda_vprovider_hub_get_type (void)
NULL, NULL,
sizeof (GdaVproviderHub),
0,
- (GInstanceInitFunc) gda_vprovider_hub_init
+ (GInstanceInitFunc) gda_vprovider_hub_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -131,8 +132,8 @@ gda_vprovider_hub_get_type (void)
static void
gda_vprovider_hub_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVproviderHub *prov;
@@ -148,8 +149,8 @@ gda_vprovider_hub_set_property (GObject *object,
static void
gda_vprovider_hub_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaVproviderHub *prov;
@@ -203,7 +204,7 @@ gda_vprovider_hub_open_connection (GdaServerProvider *provider, GdaConnection *c
}
static void
-cnc_close_foreach_func (GdaConnection *cnc, const gchar *ns, GdaVconnectionHub *hub)
+cnc_close_foreach_func (GdaConnection *cnc, G_GNUC_UNUSED const gchar *ns, GdaVconnectionHub *hub)
{
/*g_print ("---- FOREACH: Removing connection %p ('%s') from HUB\n", cnc, ns);*/
if (! gda_vconnection_hub_remove (hub, cnc, NULL))
diff --git a/libgda/thread-wrapper/gda-thread-blob-op.c b/libgda/thread-wrapper/gda-thread-blob-op.c
index b314bc2..826745b 100644
--- a/libgda/thread-wrapper/gda-thread-blob-op.c
+++ b/libgda/thread-wrapper/gda-thread-blob-op.c
@@ -59,7 +59,8 @@ _gda_thread_blob_op_get_type (void)
NULL,
sizeof (GdaThreadBlobOp),
0,
- (GInstanceInitFunc) gda_thread_blob_op_init
+ (GInstanceInitFunc) gda_thread_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -71,7 +72,7 @@ _gda_thread_blob_op_get_type (void)
static void
gda_thread_blob_op_init (GdaThreadBlobOp *op,
- GdaThreadBlobOpClass *klass)
+ G_GNUC_UNUSED GdaThreadBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_THREAD_BLOB_OP (op));
@@ -131,7 +132,7 @@ _gda_thread_blob_op_new (GdaThreadWrapper *wrapper, GdaBlobOp *op)
* Virtual functions
*/
static glong *
-sub_thread_blob_op_get_length (GdaBlobOp *wrapped_op, GError **error)
+sub_thread_blob_op_get_length (GdaBlobOp *wrapped_op, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
glong *retptr;
@@ -170,7 +171,7 @@ typedef struct {
} ThreadData;
static glong *
-sub_thread_blob_op_read (ThreadData *td, GError **error)
+sub_thread_blob_op_read (ThreadData *td, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
glong *retptr;
@@ -208,7 +209,7 @@ gda_thread_blob_op_read (GdaBlobOp *op, GdaBlob *blob, glong offset, glong size)
}
static glong *
-sub_thread_blob_op_write (ThreadData *td, GError **error)
+sub_thread_blob_op_write (ThreadData *td, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
glong *retptr;
diff --git a/libgda/thread-wrapper/gda-thread-meta.c b/libgda/thread-wrapper/gda-thread-meta.c
index e2a643c..a8dfcef 100644
--- a/libgda/thread-wrapper/gda-thread-meta.c
+++ b/libgda/thread-wrapper/gda-thread-meta.c
@@ -141,7 +141,7 @@ typedef struct {
* Meta initialization
*/
void
-_gda_thread_provider_meta_init (GdaServerProvider *provider)
+_gda_thread_provider_meta_init (G_GNUC_UNUSED GdaServerProvider *provider)
{
/* nothing to be done */
}
@@ -156,7 +156,7 @@ sub_thread__gda_thread_meta__info (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__info, prov, cnc, store, context, error);
@@ -172,7 +172,7 @@ sub_thread__gda_thread_meta__btypes (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__btypes, prov, cnc, store, context, error);
@@ -186,7 +186,7 @@ sub_thread__gda_thread_meta__udt (BasicThreadData *data, GError **error)
sub_thread_basic_core (PROV_CLASS (data->prov)->meta_funcs._udt, "_udt");
}
gboolean
-_gda_thread_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__udt, prov, cnc, store, context, error);
@@ -199,7 +199,7 @@ sub_thread__gda_thread_meta_udt (DetailedThreadData *data, GError **error)
sub_thread_detailed2_core (PROV_CLASS (data->prov)->meta_funcs.udt, "_udt");
}
gboolean
-_gda_thread_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema)
{
@@ -217,7 +217,7 @@ sub_thread__gda_thread_meta__udt_cols (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__udt_cols, prov, cnc, store, context, error);
@@ -231,7 +231,7 @@ sub_thread__gda_thread_meta_udt_cols (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
{
@@ -247,7 +247,7 @@ sub_thread__gda_thread_meta__enums (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__enums, prov, cnc, store, context, error);
@@ -261,7 +261,7 @@ sub_thread__gda_thread_meta_enums (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
{
@@ -277,7 +277,7 @@ sub_thread__gda_thread_meta__domains (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__domains, prov, cnc, store, context, error);
@@ -291,7 +291,7 @@ sub_thread__gda_thread_meta_domains (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *domain_catalog, const GValue *domain_schema)
{
@@ -307,7 +307,7 @@ sub_thread__gda_thread_meta__constraints_dom (BasicThreadData *data, GError **er
}
gboolean
-_gda_thread_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__constraints_dom, prov, cnc, store, context, error);
@@ -321,7 +321,7 @@ sub_thread__gda_thread_meta_constraints_dom (DetailedThreadData *data, GError **
}
gboolean
-_gda_thread_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *domain_catalog, const GValue *domain_schema,
const GValue *domain_name)
@@ -338,7 +338,7 @@ sub_thread__gda_thread_meta__el_types (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__el_types, prov, cnc, store, context, error);
@@ -352,7 +352,7 @@ sub_thread__gda_thread_meta_el_types (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *specific_name)
{
@@ -368,7 +368,7 @@ sub_thread__gda_thread_meta__collations (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__collations, prov, cnc, store, context, error);
@@ -382,7 +382,7 @@ sub_thread__gda_thread_meta_collations (DetailedThreadData *data, GError **error
}
gboolean
-_gda_thread_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *collation_catalog, const GValue *collation_schema,
const GValue *collation_name_n)
@@ -399,7 +399,7 @@ sub_thread__gda_thread_meta__character_sets (BasicThreadData *data, GError **err
}
gboolean
-_gda_thread_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__character_sets, prov, cnc, store, context, error);
@@ -413,7 +413,7 @@ sub_thread__gda_thread_meta_character_sets (DetailedThreadData *data, GError **e
}
gboolean
-_gda_thread_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *chset_catalog, const GValue *chset_schema,
const GValue *chset_name_n)
@@ -431,7 +431,7 @@ sub_thread__gda_thread_meta__schemata (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__schemata, prov, cnc, store, context, error);
@@ -445,7 +445,7 @@ sub_thread__gda_thread_meta_schemata (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *catalog_name, const GValue *schema_name_n)
{
@@ -461,7 +461,7 @@ sub_thread__gda_thread_meta__tables_views (BasicThreadData *data, GError **error
}
gboolean
-_gda_thread_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__tables_views, prov, cnc, store, context, error);
@@ -475,7 +475,7 @@ sub_thread__gda_thread_meta_tables_views (DetailedThreadData *data, GError **err
}
gboolean
-_gda_thread_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name_n)
@@ -492,7 +492,7 @@ sub_thread__gda_thread_meta__columns (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__columns, prov, cnc, store, context, error);
@@ -506,7 +506,7 @@ sub_thread__gda_thread_meta_columns (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name)
@@ -523,7 +523,7 @@ sub_thread__gda_thread_meta__view_cols (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__view_cols, prov, cnc, store, context, error);
@@ -537,7 +537,7 @@ sub_thread__gda_thread_meta_view_cols (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *view_catalog, const GValue *view_schema,
const GValue *view_name)
@@ -554,7 +554,7 @@ sub_thread__gda_thread_meta__constraints_tab (BasicThreadData *data, GError **er
}
gboolean
-_gda_thread_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__constraints_tab, prov, cnc, store, context, error);
@@ -568,7 +568,7 @@ sub_thread__gda_thread_meta_constraints_tab (DetailedThreadData *data, GError **
}
gboolean
-_gda_thread_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name_n)
@@ -585,7 +585,7 @@ sub_thread__gda_thread_meta__constraints_ref (BasicThreadData *data, GError **er
}
gboolean
-_gda_thread_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__constraints_ref, prov, cnc, store, context, error);
@@ -599,7 +599,7 @@ sub_thread__gda_thread_meta_constraints_ref (DetailedThreadData *data, GError **
}
gboolean
-_gda_thread_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name)
@@ -616,7 +616,7 @@ sub_thread__gda_thread_meta__key_columns (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__key_columns, prov, cnc, store, context, error);
@@ -630,7 +630,7 @@ sub_thread__gda_thread_meta_key_columns (DetailedThreadData *data, GError **erro
}
gboolean
-_gda_thread_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name)
@@ -647,7 +647,7 @@ sub_thread__gda_thread_meta__check_columns (BasicThreadData *data, GError **erro
}
gboolean
-_gda_thread_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__check_columns, prov, cnc, store, context, error);
@@ -661,7 +661,7 @@ sub_thread__gda_thread_meta_check_columns (DetailedThreadData *data, GError **er
}
gboolean
-_gda_thread_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name)
@@ -678,7 +678,7 @@ sub_thread__gda_thread_meta__triggers (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__triggers, prov, cnc, store, context, error);
@@ -692,7 +692,7 @@ sub_thread__gda_thread_meta_triggers (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name)
@@ -709,7 +709,7 @@ sub_thread__gda_thread_meta__routines (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__routines, prov, cnc, store, context, error);
@@ -723,7 +723,7 @@ sub_thread__gda_thread_meta_routines (DetailedThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *routine_catalog, const GValue *routine_schema,
const GValue *routine_name_n)
@@ -740,7 +740,7 @@ sub_thread__gda_thread_meta__routine_col (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__routine_col, prov, cnc, store, context, error);
@@ -754,7 +754,7 @@ sub_thread__gda_thread_meta_routine_col (DetailedThreadData *data, GError **erro
}
gboolean
-_gda_thread_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *rout_catalog, const GValue *rout_schema,
const GValue *rout_name)
@@ -771,7 +771,7 @@ sub_thread__gda_thread_meta__routine_par (BasicThreadData *data, GError **error)
}
gboolean
-_gda_thread_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__routine_par, prov, cnc, store, context, error);
@@ -785,7 +785,7 @@ sub_thread__gda_thread_meta_routine_par (DetailedThreadData *data, GError **erro
}
gboolean
-_gda_thread_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *rout_catalog, const GValue *rout_schema,
const GValue *rout_name)
@@ -802,7 +802,7 @@ sub_thread__gda_thread_meta__indexes_tab (DetailedThreadData *data, GError **err
}
gboolean
-_gda_thread_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__indexes_tab, prov, cnc, store, context, error);
@@ -816,7 +816,7 @@ sub_thread__gda_thread_meta_indexes_tab (DetailedThreadData *data, GError **erro
}
gboolean
-_gda_thread_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *index_name_n)
@@ -833,7 +833,7 @@ sub_thread__gda_thread_meta__index_cols (DetailedThreadData *data, GError **erro
}
gboolean
-_gda_thread_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
main_thread_basic_core (sub_thread__gda_thread_meta__index_cols, prov, cnc, store, context, error);
@@ -847,7 +847,7 @@ sub_thread__gda_thread_meta_index_cols (DetailedThreadData *data, GError **error
}
gboolean
-_gda_thread_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_thread_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *index_name)
diff --git a/libgda/thread-wrapper/gda-thread-provider.c b/libgda/thread-wrapper/gda-thread-provider.c
index bc5d675..8ef2b91 100644
--- a/libgda/thread-wrapper/gda-thread-provider.c
+++ b/libgda/thread-wrapper/gda-thread-provider.c
@@ -257,7 +257,7 @@ gda_thread_provider_class_init (GdaThreadProviderClass *klass)
}
static void
-gda_thread_provider_init (GdaThreadProvider *thread_prv, GdaThreadProviderClass *klass)
+gda_thread_provider_init (GdaThreadProvider *thread_prv, G_GNUC_UNUSED GdaThreadProviderClass *klass)
{
thread_prv->priv = g_new0 (GdaThreadProviderPrivate, 1);
thread_prv->priv->prov_wrappers = g_hash_table_new_full (g_str_hash, g_str_equal,
@@ -279,7 +279,8 @@ _gda_thread_provider_get_type (void)
NULL, NULL,
sizeof (GdaThreadProvider),
0,
- (GInstanceInitFunc) gda_thread_provider_init
+ (GInstanceInitFunc) gda_thread_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -309,7 +310,7 @@ check_cnc_closed (GdaConnection *cnc, ThreadConnectionData *cdata)
* Get provider name request
*/
static const gchar *
-gda_thread_provider_get_name (GdaServerProvider *provider)
+gda_thread_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return "ThreadWrapper";
}
@@ -318,7 +319,7 @@ gda_thread_provider_get_name (GdaServerProvider *provider)
* Get provider's version, no need to change this
*/
static const gchar *
-gda_thread_provider_get_version (GdaServerProvider *provider)
+gda_thread_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -374,8 +375,9 @@ static void setup_signals (GdaConnection *cnc, ThreadConnectionData *cdata);
static gboolean
gda_thread_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
- GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ GdaQuarkList *params, G_GNUC_UNUSED GdaQuarkList *auth,
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
GdaThreadWrapper *wr = NULL;
gboolean wr_created = FALSE;
@@ -528,9 +530,10 @@ _gda_thread_provider_handle_virtual_connection (GdaThreadProvider *provider, Gda
}
static void
-sub_cnc_error_cb (GdaThreadWrapper *wrapper, GdaConnection *sub_cnc, const gchar *signal,
- gint n_param_values, const GValue *param_values,
- gpointer gda_reserved, GdaConnection *wrapper_cnc)
+sub_cnc_error_cb (G_GNUC_UNUSED GdaThreadWrapper *wrapper, G_GNUC_UNUSED GdaConnection *sub_cnc,
+ G_GNUC_UNUSED const gchar *signal,
+ gint n_param_values, const GValue *param_values, G_GNUC_UNUSED gpointer gda_reserved,
+ GdaConnection *wrapper_cnc)
{
GdaConnectionEvent *ev;
g_assert (n_param_values == 1);
@@ -540,17 +543,19 @@ sub_cnc_error_cb (GdaThreadWrapper *wrapper, GdaConnection *sub_cnc, const gchar
}
static void
-sub_cnc_transaction_status_changed_cb (GdaThreadWrapper *wrapper, GdaConnection *sub_cnc, const gchar *signal,
- gint n_param_values, const GValue *param_values,
- gpointer gda_reserved, GdaConnection *wrapper_cnc)
+sub_cnc_transaction_status_changed_cb (G_GNUC_UNUSED GdaThreadWrapper *wrapper, GdaConnection *sub_cnc,
+ G_GNUC_UNUSED const gchar *signal, G_GNUC_UNUSED gint n_param_values,
+ G_GNUC_UNUSED const GValue *param_values,
+ G_GNUC_UNUSED gpointer gda_reserved, GdaConnection *wrapper_cnc)
{
_gda_connection_force_transaction_status (wrapper_cnc, sub_cnc);
}
static void
-sub_cnc_closed_cb (GdaThreadWrapper *wrapper, GdaConnection *sub_cnc, const gchar *signal,
- gint n_param_values, const GValue *param_values,
- gpointer gda_reserved, GdaConnection *wrapper_cnc)
+sub_cnc_closed_cb (G_GNUC_UNUSED GdaThreadWrapper *wrapper, G_GNUC_UNUSED GdaConnection *sub_cnc,
+ G_GNUC_UNUSED const gchar *signal, G_GNUC_UNUSED gint n_param_values,
+ G_GNUC_UNUSED const GValue *param_values, G_GNUC_UNUSED gpointer gda_reserved,
+ GdaConnection *wrapper_cnc)
{
ThreadConnectionData *cdata;
cdata = (ThreadConnectionData*) gda_connection_internal_get_provider_data (wrapper_cnc);
@@ -595,7 +600,7 @@ typedef struct {
} CncProvData;
static gpointer
-sub_thread_close_connection (CncProvData *data, GError **error)
+sub_thread_close_connection (CncProvData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
gboolean retval;
@@ -637,7 +642,7 @@ gda_thread_provider_close_connection (GdaServerProvider *provider, GdaConnection
*/
static const gchar *
-sub_thread_get_server_version (CncProvData *data, GError **error)
+sub_thread_get_server_version (CncProvData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
const gchar *retval;
@@ -678,7 +683,7 @@ gda_thread_provider_get_server_version (GdaServerProvider *provider, GdaConnecti
* Returns the database name as a string, which should be stored in @cnc's associated ThreadConnectionData structure
*/
static const gchar *
-sub_thread_get_database (CncProvData *data, GError **error)
+sub_thread_get_database (CncProvData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
const gchar *retval;
@@ -733,7 +738,7 @@ typedef struct {
} SupportsOperationData;
static gpointer
-sub_thread_supports_operation (SupportsOperationData *data, GError **error)
+sub_thread_supports_operation (SupportsOperationData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
gboolean retval;
@@ -746,7 +751,8 @@ sub_thread_supports_operation (SupportsOperationData *data, GError **error)
static gboolean
gda_thread_provider_supports_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options)
+ G_GNUC_UNUSED GdaServerOperationType type,
+ G_GNUC_UNUSED GdaSet *options)
{
ThreadConnectionData *cdata;
SupportsOperationData wdata;
@@ -903,8 +909,9 @@ sub_thread_perform_operation (PerformOperationData *data, GError **error)
static gboolean
gda_thread_provider_perform_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, guint *task_id,
- GdaServerProviderAsyncCallback async_cb, gpointer cb_data, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED guint *task_id,
+ GdaServerProviderAsyncCallback async_cb, G_GNUC_UNUSED gpointer cb_data,
+ GError **error)
{
ThreadConnectionData *cdata;
PerformOperationData wdata;
@@ -1280,7 +1287,7 @@ typedef struct {
} GetDataHandlerData;
static GdaDataHandler *
-sub_thread_get_data_handler (GetDataHandlerData *data, GError **error)
+sub_thread_get_data_handler (GetDataHandlerData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
GdaDataHandler *retval;
@@ -1330,7 +1337,7 @@ typedef struct {
} GetDefaultDbmsTypeData;
static const gchar *
-sub_thread_get_default_dbms_type (GetDefaultDbmsTypeData *data, GError **error)
+sub_thread_get_default_dbms_type (GetDefaultDbmsTypeData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
const gchar *retval;
@@ -1374,7 +1381,7 @@ gda_thread_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConne
*/
static GdaSqlParser *
-sub_thread_create_parser (CncProvData *data, GError **error)
+sub_thread_create_parser (CncProvData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
GdaSqlParser *parser = NULL;
@@ -1450,7 +1457,7 @@ sub_thread_statement_to_sql (StmtToSqlData *data, GError **error)
static gchar *
gda_thread_provider_statement_to_sql (GdaServerProvider *provider, GdaConnection *cnc,
GdaStatement *stmt, GdaSet *params, GdaStatementSqlFlag flags,
- GSList **params_used, GError **error)
+ GSList **params_used, G_GNUC_UNUSED GError **error)
{
ThreadConnectionData *cdata;
StmtToSqlData wdata;
@@ -1672,7 +1679,8 @@ gda_thread_provider_statement_execute (GdaServerProvider *provider, GdaConnectio
}
static gboolean
-gda_thread_provider_handle_async (GdaServerProvider *provider, GdaConnection *cnc, GError **error)
+gda_thread_provider_handle_async (GdaServerProvider *provider, GdaConnection *cnc,
+ G_GNUC_UNUSED GError **error)
{
ThreadConnectionData *cdata;
GObject *res;
@@ -2023,7 +2031,7 @@ typedef struct {
} SqlIdentifierQuoteData;
static gchar *
-sub_thread_identifier_quote (SqlIdentifierQuoteData *data, GError **error)
+sub_thread_identifier_quote (SqlIdentifierQuoteData *data, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
gchar *retval;
@@ -2065,7 +2073,7 @@ gda_thread_provider_identifier_quote (GdaServerProvider *provider, GdaConnection
}
static gpointer
-sub_thread_unref_connection (GdaConnection *cnc, GError **error)
+sub_thread_unref_connection (GdaConnection *cnc, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
g_object_unref (cnc);
@@ -2085,7 +2093,7 @@ gda_thread_free_cnc_data (ThreadConnectionData *cdata)
return;
/* disconnect signals handlers */
- gint i;
+ gsize i;
for (i = 0; i < cdata->handlers_ids->len; i++) {
gulong hid = g_array_index (cdata->handlers_ids, gulong, i);
gda_thread_wrapper_disconnect (cdata->wrapper, hid);
diff --git a/libgda/thread-wrapper/gda-thread-recordset.c b/libgda/thread-wrapper/gda-thread-recordset.c
index 96faef6..7242207 100644
--- a/libgda/thread-wrapper/gda-thread-recordset.c
+++ b/libgda/thread-wrapper/gda-thread-recordset.c
@@ -61,7 +61,7 @@ static GObjectClass *parent_class = NULL;
*/
static void
gda_thread_recordset_init (GdaThreadRecordset *recset,
- GdaThreadRecordsetClass *klass)
+ G_GNUC_UNUSED GdaThreadRecordsetClass *klass)
{
g_return_if_fail (GDA_IS_THREAD_RECORDSET (recset));
recset->priv = g_new0 (GdaThreadRecordsetPrivate, 1);
@@ -139,7 +139,8 @@ _gda_thread_recordset_get_type (void)
NULL,
sizeof (GdaThreadRecordset),
0,
- (GInstanceInitFunc) gda_thread_recordset_init
+ (GInstanceInitFunc) gda_thread_recordset_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -198,7 +199,7 @@ _gda_thread_recordset_new (GdaConnection *cnc, GdaThreadWrapper *wrapper, GdaDat
* fetch nb rows
*/
static gpointer
-sub_thread_fetch_nb_rows (GdaDataSelect *model, GError **error)
+sub_thread_fetch_nb_rows (GdaDataSelect *model, G_GNUC_UNUSED GError **error)
{
/* WARNING: function executed in sub thread! */
gint retval;
diff --git a/libgda/thread-wrapper/gda-thread-wrapper.c b/libgda/thread-wrapper/gda-thread-wrapper.c
index f2514d5..8c87e07 100644
--- a/libgda/thread-wrapper/gda-thread-wrapper.c
+++ b/libgda/thread-wrapper/gda-thread-wrapper.c
@@ -99,7 +99,7 @@ job_free (Job *job)
g_error_free (job->u.exe.error);
}
else if (job->type == JOB_TYPE_SIGNAL) {
- gint i;
+ guint i;
for (i = 0; i < job->u.signal.n_param_values; i++) {
GValue *value = job->u.signal.param_values + i;
if (G_VALUE_TYPE (value) != GDA_TYPE_NULL)
@@ -329,7 +329,7 @@ worker_thread_entry_point (GAsyncQueue *to_worker_thread)
}
static void
-gda_thread_wrapper_init (GdaThreadWrapper *wrapper, GdaThreadWrapperClass *klass)
+gda_thread_wrapper_init (GdaThreadWrapper *wrapper, G_GNUC_UNUSED GdaThreadWrapperClass *klass)
{
g_return_if_fail (GDA_IS_THREAD_WRAPPER (wrapper));
@@ -347,7 +347,7 @@ gda_thread_wrapper_init (GdaThreadWrapper *wrapper, GdaThreadWrapperClass *klass
}
static gboolean
-thread_data_remove_jobs_func (GThread *key, ThreadData *td, gpointer data)
+thread_data_remove_jobs_func (G_GNUC_UNUSED GThread *key, ThreadData *td, G_GNUC_UNUSED gpointer data)
{
if (td->jobs) {
GSList *list;
@@ -442,7 +442,8 @@ gda_thread_wrapper_get_type (void)
NULL,
sizeof (GdaThreadWrapper),
0,
- (GInstanceInitFunc) gda_thread_wrapper_init
+ (GInstanceInitFunc) gda_thread_wrapper_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -456,8 +457,8 @@ gda_thread_wrapper_get_type (void)
static void
gda_thread_wrapper_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaThreadWrapper *wrapper;
@@ -471,8 +472,8 @@ gda_thread_wrapper_set_property (GObject *object,
static void
gda_thread_wrapper_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaThreadWrapper *wrapper;
@@ -525,7 +526,7 @@ gda_thread_wrapper_new (void)
*/
guint
gda_thread_wrapper_execute (GdaThreadWrapper *wrapper, GdaThreadWrapperFunc func,
- gpointer arg, GDestroyNotify arg_destroy_func, GError **error)
+ gpointer arg, GDestroyNotify arg_destroy_func, G_GNUC_UNUSED GError **error)
{
Job *job;
guint id;
@@ -599,7 +600,7 @@ gda_thread_wrapper_execute (GdaThreadWrapper *wrapper, GdaThreadWrapperFunc func
*/
guint
gda_thread_wrapper_execute_void (GdaThreadWrapper *wrapper, GdaThreadWrapperVoidFunc func,
- gpointer arg, GDestroyNotify arg_destroy_func, GError **error)
+ gpointer arg, GDestroyNotify arg_destroy_func, G_GNUC_UNUSED GError **error)
{
Job *job;
guint id;
@@ -834,7 +835,7 @@ gda_thread_wrapper_fetch_result (GdaThreadWrapper *wrapper, gboolean may_lock, g
if (may_lock)
gda_thread_wrapper_iterate (wrapper, TRUE);
else {
- gint len;
+ gsize len;
len = g_slist_length (td->results);
gda_thread_wrapper_iterate (wrapper, FALSE);
if (g_slist_length (td->results) == len) {
@@ -905,11 +906,11 @@ gda_thread_wrapper_get_waiting_size (GdaThreadWrapper *wrapper)
*/
static void
worker_thread_closure_marshal (GClosure *closure,
- GValue *return_value,
+ G_GNUC_UNUSED GValue *return_value,
guint n_param_values,
const GValue *param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
+ G_GNUC_UNUSED gpointer invocation_hint,
+ G_GNUC_UNUSED gpointer marshal_data)
{
SignalSpec *sigspec = (SignalSpec *) closure->data;
@@ -921,7 +922,7 @@ worker_thread_closure_marshal (GClosure *closure,
g_static_private_get (&worker_thread_current_queue) != sigspec->reply_queue)
return;
- gint i;
+ gsize i;
/*
for (i = 1; i < n_param_values; i++) {
g_print ("\t%d => %s\n", i, gda_value_stringify (param_values + i));
@@ -955,15 +956,15 @@ worker_thread_closure_marshal (GClosure *closure,
*/
static void
worker_thread_closure_marshal_anythread (GClosure *closure,
- GValue *return_value,
+ G_GNUC_UNUSED GValue *return_value,
guint n_param_values,
const GValue *param_values,
- gpointer invocation_hint,
- gpointer marshal_data)
+ G_GNUC_UNUSED gpointer invocation_hint,
+ G_GNUC_UNUSED gpointer marshal_data)
{
SignalSpec *sigspec = (SignalSpec *) closure->data;
- gint i;
+ gsize i;
/*
for (i = 1; i < n_param_values; i++) {
g_print ("\t%d => %s\n", i, gda_value_stringify (param_values + i));
@@ -1093,7 +1094,7 @@ gda_thread_wrapper_connect_raw (GdaThreadWrapper *wrapper,
}
static gboolean
-find_signal_r_func (GThread *thread, ThreadData *td, gulong *id)
+find_signal_r_func (G_GNUC_UNUSED GThread *thread, ThreadData *td, gulong *id)
{
GSList *list;
for (list = td->signals_list; list; list = list->next) {
diff --git a/m4/.gitignore b/m4/.gitignore
new file mode 100644
index 0000000..bae0334
--- /dev/null
+++ b/m4/.gitignore
@@ -0,0 +1,8 @@
+gnome-doc-utils.m4
+gtk-doc.m4
+intltool.m4
+libtool.m4
+ltoptions.m4
+ltsugar.m4
+ltversion.m4
+lt~obsolete.m4
diff --git a/m4/bdb.m4 b/m4/bdb.m4
new file mode 100644
index 0000000..f481dad
--- /dev/null
+++ b/m4/bdb.m4
@@ -0,0 +1,269 @@
+dnl -*- mode: autoconf -*-
+dnl Copyright 2010 Vivien Malerba
+dnl
+dnl SYNOPSIS
+dnl
+dnl BDB_CHECK([libdirname])
+dnl
+dnl [libdirname]: defaults to "lib". Can be overridden by the --with-bdb-libdir-name option
+dnl
+dnl DESCRIPTION
+dnl
+dnl This macro tries to find the Bdb libraries and header files. If the BDB setup is found
+dnl then it also tries to find the SQL extension to BDB (starting from version 5.0)
+dnl
+dnl It defines two options:
+dnl --with-bdb=yes/no/<directory>
+dnl --with-bdb-libdir-name=<dir. name>
+dnl
+dnl If the 1st option is "yes" then the macro in several well known directories
+dnl
+dnl If the 1st option is "no" then the macro does not attempt at locating the
+dnl bdb package
+dnl
+dnl If the 1st option is a drectory name, then the macro tries to locate the bdb package
+dnl in the specified directory.
+dnl
+dnl If the macro has to try to locate the bdb package in one or more directories, it will
+dnl try to locate the header files in $dir/include and the library files in $dir/lib, unless
+dnl the second option is used to specify a directory name to be used instead of "lib" (for
+dnl example lib64).
+dnl
+dnl USED VARIABLES
+dnl
+dnl $linklibext: contains the library suffix (like ".so"). If not specified ".so" is used.
+dnl $platform_win32: contains "yes" on Windows platforms. If not specified, assumes "no"
+dnl
+dnl
+dnl DEFINED VARIABLES
+dnl
+dnl This macro always calls:
+dnl
+dnl AC_SUBST(BDB_LIBS)
+dnl AC_SUBST(BDB_LIB)
+dnl AC_SUBST(BDB_CFLAGS)
+dnl AC_SUBST(LIBGDA_BDB_INC)
+dnl AC_SUBST(LIBGDA_BDB_TYPE)
+dnl bdb_found=yes/no
+dnl bdbsql_found=yes/no
+dnl AC_SUBST(BDBSQL_LIBS)
+dnl AC_SUBST(BDBSQL_CFLAGS)
+dnl
+dnl and if the bdb package is found:
+dnl
+dnl AM_CONDITIONAL(BDB, true)
+dnl AM_CONDITIONAL(BDBSQL, true)
+dnl
+dnl
+dnl LICENSE
+dnl
+dnl This file is free software; the author(s) gives unlimited
+dnl permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+
+m4_define([_BDB_CHECK_INTERNAL],
+[
+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+ bdb_loclibdir=$1
+ if test "x$bdb_loclibdir" = x
+ then
+ if test "x$platform_win32" = xyes
+ then
+ bdb_loclibdir=bin
+ else
+ bdb_loclibdir=lib
+ fi
+ fi
+
+ # determine if Bdb should be searched for
+ # and use pkg-config if the "yes" option is used
+ bdb_found=no
+ try_bdb=true
+ BDB_LIBS=""
+ bdb_test_dir="/usr /usr/local /local"
+ AC_ARG_WITH(bdb,
+ AS_HELP_STRING([--with-bdb[=@<:@yes/no/<directory>@:>@]],
+ [Locate Berkeley DB files]),[
+ if test $withval = no
+ then
+ try_bdb=false
+ elif test $withval != yes
+ then
+ bdb_test_dir=$withval
+ fi])
+ AC_ARG_WITH(bdb-libdir-name,
+ AS_HELP_STRING([--with-bdb-libdir-name[=@<:@<dir. name>@:>@]],
+ [Locate BDB library file, related to the prefix specified from --with-bdb]),
+ [bdb_loclibdir=$withval])
+
+ # try to locate files
+ if test $try_bdb = true
+ then
+ if test "x$linklibext" = x
+ then
+ bdb_libext=".so"
+ else
+ bdb_libext="$linklibext"
+ fi
+ bdbdir=""
+ for d in $bdb_test_dir
+ do
+ bdbdir=""
+ AC_MSG_CHECKING([for Berkeley DB files in $d])
+ for version in "" 5.1 5.0 4.9 4.8 4.7
+ do
+ if test $platform_win32 = yes
+ then
+ sversion=`echo $version | sed -e 's,\.,,g'`
+ else
+ sversion=`echo $version | sed -e 's,\..*,,g'`
+ fi
+ if test -z $version
+ then
+ db_libfilename="libdb$bdb_libext"
+ db_lib="-ldb"
+ db_libfile="$d/$bdb_loclibdir/libdb$bdb_libext"
+ try_headers="db.h"
+ else
+ if test $platform_win32 = yes
+ then
+ db_libfilename="libdb$sversion$bdb_libext"
+ db_lib="-ldb$sversion"
+ db_libfile="$d/$bdb_loclibdir/libdb$sversion$bdb_libext"
+ try_headers="db.h db$version/db.h db$sversion/db.h"
+ else
+ db_libfilename="libdb-$version$bdb_libext"
+ db_lib="-ldb-$version"
+ db_libfile="$d/$bdb_loclibdir/libdb-$version$bdb_libext"
+ try_headers="db.h db$version/db.h db$sversion/db.h"
+ fi
+ fi
+
+ for db_hdr in $try_headers
+ do
+ if test -f $d/include/$db_hdr -a -f $db_libfile
+ then
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I$d/include"
+ save_LIBS="$LIBS"
+ LIBS="$LIBS -L$d/$bdb_loclibdir $db_lib"
+ AC_LINK_IFELSE([[
+#include <${db_hdr}>
+int main() {
+ printf("%p", db_create);
+ return 0;
+}
+]],
+ bdbdir=$d)
+ CFLAGS="$save_CFLAGS"
+ LIBS="$save_LIBS"
+ if test x$bdbdir != x
+ then
+ break;
+ fi
+ fi
+ done
+ if test x$bdbdir != x
+ then
+ break;
+ fi
+ done
+ if test x$bdbdir != x
+ then
+ if test -z $version
+ then
+ AC_MSG_RESULT([found])
+ else
+ AC_MSG_RESULT([found version $version])
+ fi
+ BDB_CFLAGS=-I${bdbdir}/include
+ BDB_LIBS="-L${bdbdir}/$bdb_loclibdir $db_lib"
+ BDB_LIB=$db_libfilename
+ BDB_DIR="$bdbdir"
+ AC_MSG_NOTICE([the runtime shared library to load will be $BDB_LIB])
+ break
+ else
+ AC_MSG_RESULT([not found])
+ fi
+ done
+
+ if test "x$BDB_LIBS" = x
+ then
+ AC_MSG_NOTICE([BDB backend not used])
+ else
+ LIBGDA_BDB_INC="#include <libgda/gda-data-model-bdb.h>"
+ LIBGDA_BDB_TYPE="gda_data_model_bdb_get_type"
+ bdb_found=yes
+ fi
+ fi
+
+ AM_CONDITIONAL(BDB,[test "$bdb_found" = "yes"])
+ AC_SUBST(BDB_LIB)
+ AC_SUBST(BDB_LIBS)
+ AC_SUBST(BDB_CFLAGS)
+ AC_SUBST(LIBGDA_BDB_INC)
+ AC_SUBST(LIBGDA_BDB_TYPE)
+])
+
+m4_define([_BDBSQL_CHECK_INTERNAL],
+[
+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+ m4_if([$1],[],[bdbsql_loclibdir=""],[bdbsql_loclibdir=$1])
+ if test "x$bdbsql_loclibdir" = x
+ then
+ if test "x$platform_win32" = xyes
+ then
+ bdbsql_loclibdir=bin
+ else
+ bdbsql_loclibdir=lib
+ fi
+ fi
+
+ bdbsql_found=no
+ bdbsqldir=""
+ if test "x$BDB_DIR" != x
+ then
+ AC_MSG_CHECKING([for Berkeley DB SQL files along with found BDB installation])
+ if test -f $BDB_DIR/include/dbsql.h
+ then
+ BDBSQL_CFLAGS="$BDB_CFLAGS"
+ BDBSQL_LIBS="-L$BDB_DIR/$bdb_loclibdir -ldb_sql"
+ BDBSQL_PATH="$BDB_DIR/$bdb_loclibdir"
+ AC_MSG_RESULT([found])
+ AC_CHECK_LIB(db_sql, sqlite3_table_column_metadata,[bdbsql_api=1], [bdbsql_api=0], $BDBSQL_CFLAGS $BDBSQL_LIBS -pthread -ldl)
+
+ if test $bdbsql_api = 0
+ then
+ BDBSQL_CFLAGS=""
+ BDBSQL_LIBS=""
+ AC_MSG_NOTICE([Installed BDB Sql was not compiled with the SQLITE_ENABLE_COLUMN_METADATA, BDB Sql provider not compiled])
+ else
+ bdbsql_found=yes
+ bdbsqldir="$BDB_DIR"
+ fi
+ else
+ AC_MSG_RESULT([not found])
+ fi
+ fi
+
+ AM_CONDITIONAL(BDBSQL,[test "bdbsql_found" = "yes"])
+ AC_SUBST(BDBSQL_LIBS)
+ AC_SUBST(BDBSQL_CFLAGS)
+])
+
+
+dnl Usage:
+dnl BDB_CHECK([libdirname])
+
+AC_DEFUN([BDB_CHECK],
+[
+ _BDB_CHECK_INTERNAL([$1])
+ _BDBSQL_CHECK_INTERNAL([$1])
+])
diff --git a/m4/java.m4 b/m4/java.m4
new file mode 100644
index 0000000..6807350
--- /dev/null
+++ b/m4/java.m4
@@ -0,0 +1,340 @@
+dnl -*- mode: autoconf -*-
+dnl Copyright 2010 Vivien Malerba
+dnl
+dnl SYNOPSIS
+dnl
+dnl JAVA_CHECK([libdirname])
+dnl
+dnl [libdirname]: defaults to "lib". Can be overridden by the --with-java-libdir-name option
+dnl
+dnl DESCRIPTION
+dnl
+dnl This macro tries to find the Java compiler and JNI header files.
+dnl
+dnl It defines one option:
+dnl --with-java=yes/no/<directory>
+dnl
+dnl
+dnl USED VARIABLES
+dnl
+dnl $linklibext: contains the library suffix (like ".so"). If not specified ".so" is used.
+dnl $platform_win32: contains "yes" on Windows platforms. If not specified, assumes "no"
+dnl
+dnl
+dnl DEFINED VARIABLES
+dnl
+dnl This macro always calls:
+dnl
+dnl AC_SUBST(JAVA_LD_PATH)
+dnl AC_SUBST(JFLAGS)
+dnl AC_SUBST(JAVA_LIBS)
+dnl AC_SUBST(JAVA_CFLAGS)
+dnl java_found=yes/no
+dnl
+dnl and if the java package is found:
+dnl
+dnl AM_CONDITIONAL(JAVA, true)
+dnl
+dnl
+dnl LICENSE
+dnl
+dnl This file is free software; the author(s) gives unlimited
+dnl permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+
+## RUN_JAVA(variable for the result, parameters)
+## ----------
+## runs the java interpreter ${JAVA_PROG} with specified parameters and
+## saves the output to the supplied variable. The exit value is ignored.
+AC_DEFUN([RUN_JAVA],
+[
+ acx_java_result=
+ if test -z "${JAVA_PROG}"
+ then
+ echo "$as_me:$LINENO: JAVA_PROG is not set, cannot run java $2" >&AS_MESSAGE_LOG_FD
+ else
+ echo "$as_me:$LINENO: running ${JAVA_PROG} $2" >&AS_MESSAGE_LOG_FD
+ acx_java_result=`${JAVA_PROG} $2 2>&AS_MESSAGE_LOG_FD`
+ echo "$as_me:$LINENO: output: '$acx_java_result'" >&AS_MESSAGE_LOG_FD
+ fi
+ $1=$acx_java_result
+])
+
+m4_define([_JAVA_CHECK_INTERNAL],
+[
+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+ # determine if Java should be searched for
+ java_found=no
+ try_java=true
+ JAVA_LIBS=""
+ java_test_dir="$JAVA_HOME /usr /opt /local"
+ AC_ARG_WITH(java,
+ AS_HELP_STRING([--with-java[=@<:@yes/no/<directory>@:>@]],
+ [Locate Java's client libraries]),[
+ if test $withval = no
+ then
+ try_java=false
+ elif test $withval = yes
+ then
+ if test -z "${JAVA_HOME}"
+ then
+ JAVA_PATH=${PATH}
+ else
+ JAVA_PATH=${JAVA_HOME}:${JAVA_HOME}/bin:${PATH}
+ fi
+ JAVA_PATH=${JAVA_PATH}:/usr/java/bin:/usr/jdk/bin:/usr/lib/java/bin:/usr/lib/jdk/bin:/usr/local/java/bin:/usr/local/jdk/bin:/usr/local/lib/java/bin:/usr/local/lib/jdk/bin
+ else
+ JAVA_PATH=$withval
+ java_test_dir=$withval
+ fi], [
+ if test -z "${JAVA_HOME}"
+ then
+ JAVA_PATH=${PATH}
+ else
+ JAVA_PATH=${JAVA_HOME}:${JAVA_HOME}/bin:${PATH}
+ fi
+ JAVA_PATH=${JAVA_PATH}:/usr/java/bin:/usr/jdk/bin:/usr/lib/java/bin:/usr/lib/jdk/bin:/usr/local/java/bin:/usr/local/jdk/bin:/usr/local/lib/java/bin:/usr/local/lib/jdk/bin
+ ])
+
+ save_CFLAGS="$CFLAGS"
+ save_LIBS="$LIBS"
+ save_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
+
+ # try to locate all the java binaries
+ if test $try_java = true
+ then
+ ## FIXME: we may want to check for jikes, kaffe and others...
+ AC_MSG_CHECKING([if all java programs are found])
+ AC_PATH_PROGS(JAVA_PROG,java,,${JAVA_PATH})
+ AC_PATH_PROGS(JAVAC,javac,,${JAVA_PATH})
+ AC_PATH_PROGS(JAVAH,javah,,${JAVA_PATH})
+ AC_PATH_PROGS(JAR,jar,,${JAVA_PATH})
+
+ have_all_java=yes
+ if test -z "$JAVA_PROG"; then have_all_java=no; fi
+ if test -z "$JAVAC"; then have_all_java=no; fi
+ if test -z "$JAVAH"; then have_all_java=no; fi
+ if test -z "$JAR"; then have_all_java=no; fi
+ if test ${have_all_java} = no; then
+ AC_MSG_WARN([one or more Java tools are missing (JRE is not sufficient)])
+ try_java=false
+ fi
+ fi
+
+ # Check if the Java interpreter works
+ if test $try_java = true
+ then
+ AC_MSG_CHECKING([whether Java interpreter works])
+ try_java=false
+ acx_java_works=no
+ if test -n "${JAVA_PROG}"
+ then
+ RUN_JAVA(acx_jc_result,[-classpath . getsp -test])
+ if test "${acx_jc_result}" = "Test1234OK"
+ then
+ acx_java_works=yes
+ fi
+ fi
+
+ if test ${acx_java_works} = yes
+ then
+ AC_MSG_RESULT([yes])
+ AC_MSG_CHECKING([java compiler version])
+ JTYPE=`$JAVAC -version 2>&1 | grep -o Unrecognized`
+ if test x$JTYPE = xUnrecognized
+ then
+ # eclipse gjc?
+ JVERSION=ECJ`$JAVAC -v 2>&1 | grep -o '[[0-9]].[[0-9]].[[0-9]] release' | sed -e 's/ release//'`
+ else
+ JTYPE=`$JAVAC -version 2>&1 | grep -o Eclipse`
+ if test x$JTYPE = xEclipse
+ then
+ JVERSION=ECJ`$JAVAC -v 2>&1 | grep -o '[[0-9]].[[0-9]].[[0-9]] release' | sed -e 's/ release//'`
+ else
+ # Sun's java compiler
+ JVERSION=JRE`$JAVAC -version 2>&1 | sed -e "1s/javac //" -e "1q"`
+ fi
+ fi
+ case "$JVERSION" in
+ JRE1.5.*)
+ try_java=true
+ JTYPE="Sun JRE 1.5"
+ JFLAGS="-Xlint:unchecked -Xlint:deprecation"
+ ;;
+ JRE1.6.*)
+ try_java=true
+ JTYPE="Sun JRE 1.6"
+ JFLAGS="-Xlint:unchecked -Xlint:deprecation"
+ ;;
+ JREgcj-4*)
+ try_java=true
+ JTYPE="GCJ"
+ JFLAGS=""
+ ;;
+ ECJ*)
+ try_java=no
+ ;;
+ *)
+ ;;
+ esac
+ if test $try_java = true; then
+ AC_MSG_RESULT([JAVA version used is $JTYPE ])
+
+ AC_MSG_CHECKING([for Java environment])
+
+ ## retrieve JAVA_HOME from Java itself if not set
+ if test -z "${JAVA_HOME}"
+ then
+ RUN_JAVA(JAVA_HOME,[-classpath . getsp java.home])
+ fi
+
+ ## the availability of JAVA_HOME will tell us whether it's supported
+ if test -z "${JAVA_HOME}"
+ then
+ if test x$acx_java_env_msg != xyes
+ then
+ AC_MSG_RESULT([not found])
+ fi
+ else
+ AC_MSG_RESULT([in ${JAVA_HOME}])
+
+ case "${host_os}" in
+ darwin*)
+ JAVA_LIBS="-framework JavaVM"
+ JAVA_LD_PATH=
+ ;;
+ *)
+ RUN_JAVA(JAVA_LIBS, [-classpath . getsp -libs])
+ JAVA_LIBS="${JAVA_LIBS} -ljvm"
+ RUN_JAVA(JAVA_LD_PATH, [-classpath . getsp java.library.path])
+ ;;
+ esac
+ # note that we actually don't test JAVA_LIBS - we hope that the detection
+ # was correct. We should also test the functionality for javac.
+ fi
+ else
+ AC_MSG_RESULT([SUN Java compiler Version >= 1.5 required, JDBC provider not compiled])
+ fi
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_WARN([Java not found. Please install JDK 1.4 or later, make sure that the binaries are on the PATH and re-try. If that doesn't work, set JAVA_HOME correspondingly.])
+ try_java=false
+ fi
+ fi
+
+ # test for JNI
+ JNI_H=
+ AC_ARG_WITH(jni,
+ AS_HELP_STRING([--with-jni[=@<:@<directory>@:>@]],
+ [use JNI headers in <directory>]),
+ [JNI_H=$withval])
+
+ if test $try_java = true
+ then
+ if test x$JNI_H = x
+ then
+ AC_CHECK_FILE(${JAVA_HOME}/include/jni.h,
+ [JNI_H="${JAVA_HOME}/include"],
+ [AC_CHECK_FILE(${JAVA_HOME}/jni.h,
+ [JNI_H="${JAVA_HOME}"],
+ [AC_CHECK_FILE(${JAVA_HOME}/../include/jni.h,
+ [JNI_H="${JAVA_HOME}/../include"],
+ [AC_MSG_RESULT([jni headers not found. Please make sure you have a proper JDK installed.])
+ ])
+ ])
+ ])
+ if test x$JNI_H = x
+ then
+ try_java=false
+ fi
+ fi
+ fi
+
+ if test $try_java = true
+ then
+ JAVA_CFLAGS="-I${JNI_H}"
+ #: ${JAVA_CFLAGS=-D_REENTRANT}
+
+ # Sun's JDK needs jni_md.h in in addition to jni.h and unfortunately it's stored somewhere else ...
+ # this should be become more general at some point - so far we're checking linux and solaris only
+ # (well, those are presumably the only platforms supported by Sun's JDK and others don't need this
+ # at least as of now - 01/2004)
+ jac_found_md=no
+ for mddir in . linux solaris ppc irix alpha aix hp-ux genunix cygwin win32 freebsd
+ do
+ AC_CHECK_FILE(${JNI_H}/$mddir/jni_md.h,[JAVA_CFLAGS="${JAVA_CFLAGS} -I${JNI_H}/$mddir" jac_found_md=yes])
+ if test ${jac_found_md} = yes
+ then
+ break
+ fi
+ done
+
+ LIBS="${LIBS} ${JAVA_LIBS}"
+ CFLAGS="${CFLAGS} ${JAVA_CFLAGS} ${JAVA_CFLAGS}"
+
+ AC_MSG_CHECKING([whether JNI programs can be compiled])
+ AC_LINK_IFELSE([
+#include <jni.h>
+int main(void) {
+ jobject o;
+ return 0;
+}],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_ERROR([Cannot compile a simple JNI program. See config.log for details.])])
+
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_LD_PATH}
+ export LD_LIBRARY_PATH
+
+ AC_MSG_CHECKING([whether JNI programs can be run])
+ AC_RUN_IFELSE([
+#include <jni.h>
+int main(void) {
+ jobject o;
+ return 0;
+}],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_ERROR([Cannot run a simple JNI program - probably your jvm library is in non-standard location or JVM is unsupported. See config.log for details.])])
+
+ AC_MSG_CHECKING([JNI data types])
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+#include <jni.h>
+int main(void) {
+ return (sizeof(int)==sizeof(jint) && sizeof(long)==sizeof(long) && sizeof(jbyte)==sizeof(char) && sizeof(jshort)==sizeof(short) && sizeof(jfloat)==sizeof(float) && sizeof(jdouble)==sizeof(double))?0:1;
+}]])],
+ [AC_MSG_RESULT([ok])],
+ [AC_MSG_ERROR([One or more JNI types differ from the corresponding native type. You may need to use non-standard compiler flags or a different compiler in order to fix this.])],[])
+
+ JAVA_CFLAGS="-I${JNI_H}"
+ for mddir in . linux solaris ppc irix alpha aix hp-ux genunix cygwin win32 freebsd
+ do
+ if test -e ${JNI_H}/$mddir/jni_md.h
+ then
+ JAVA_CFLAGS="${JAVA_CFLAGS} -I${JNI_H}/$mddir"
+ break
+ fi
+ done
+
+ java_found=yes
+ AC_SUBST(JAVA_LD_PATH)
+ AC_SUBST(JFLAGS)
+ AC_SUBST(JAVA_LIBS)
+ AC_SUBST(JAVA_CFLAGS)
+ fi
+
+ AM_CONDITIONAL(JAVA, test x$java_found = xyes)
+ CFLAGS="$save_CFLAGS"
+ LIBS="$save_LIBS"
+ export LD_LIBRARY_PATH="$save_LD_LIBRARY_PATH"
+])
+
+dnl Usage:
+dnl JAVA_CHECK([libdirname])
+
+AC_DEFUN([JAVA_CHECK],
+[
+ _JAVA_CHECK_INTERNAL()
+])
diff --git a/m4/mdbtools.m4 b/m4/mdbtools.m4
index 2421ef4..7931fc7 100644
--- a/m4/mdbtools.m4
+++ b/m4/mdbtools.m4
@@ -15,7 +15,7 @@ dnl DESCRIPTION
dnl
dnl This macro tries to find the MDBTools libraries and header files
dnl
-dnl It defined two options:
+dnl It defines two options:
dnl --with-mdb=yes/no/<directory>
dnl --with-mdb-libdir-name=<dir. name>
dnl
@@ -25,7 +25,7 @@ dnl
dnl If the 1st option is "no" then the macro does not attempt at locating the
dnl mdbtools package
dnl
-dnl If the 1st option is a drectory name, then the macro tries to locate the mdbtools package
+dnl If the 1st option is a directory name, then the macro tries to locate the mdbtools package
dnl in the specified directory.
dnl
dnl If the macro has to try to locate the mdbtools package in one or more directories, it will
@@ -48,7 +48,6 @@ dnl mdbtools_found=yes/no
dnl
dnl and if the mdbtools package is found:
dnl
-dnl AC_DEFINE(HAVE_MDB, 1, [Have MDB])
dnl AM_CONDITIONAL(MDB, true)
dnl AC_DEFINE(MDB_WITH_WRITE_SUPPORT,[1],[define if mdb_open accepts MDB_WRITABLE])
dnl AC_DEFINE(MDB_BIND_COLUMN_FOUR_ARGS,[1],[define if mdb_bind_column accepts four args])
@@ -67,9 +66,28 @@ m4_define([_MDBTOOLS_CHECK_INTERNAL],
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
- m4_if([$1],[],[mdb_loclibdir=lib],[mdb_loclibdir=$1])
- m4_if([$2],[],[mdb_glib_cflags=`$PKG_CONFIG --cflags glib-2.0`],[mdb_glib_cflags=$1])
- m4_if([$3],[],[mdb_glib_libs=`$PKG_CONFIG --libs glib-2.0`],[mdb_glib_libs=$2])
+ mdb_loclibdir=$1
+ if test "x$mdb_loclibdir" = x
+ then
+ if test "x$platform_win32" = xyes
+ then
+ mdb_loclibdir=bin
+ else
+ mdb_loclibdir=lib
+ fi
+ fi
+
+ mdb_glib_cflags=$2
+ if test "x$mdb_glib_cflags" = x
+ then
+ mdb_glib_cflags=`$PKG_CONFIG --cflags glib-2.0`
+ fi
+
+ mdb_glib_libs=$3
+ if test "x$mdb_glib_libs" = x
+ then
+ mdb_glib_libs=`$PKG_CONFIG --libs glib-2.0`
+ fi
# determine if MDBTools should be searched for
# and use pkg-config if the "yes" option is used
@@ -138,7 +156,7 @@ int main() {
then
AC_MSG_RESULT([found])
MDB_CFLAGS=-I${mdbdir}/include
- MDB_LIBS="-L${mdbdir}/lib -lmdb"
+ MDB_LIBS="-L${mdbdir}/$mdb_loclibdir -lmdb"
break
else
AC_MSG_RESULT([not found])
@@ -152,10 +170,7 @@ int main() {
if test "x$MDB_LIBS" = x
then
AC_MSG_NOTICE([MDB backend not used])
- AM_CONDITIONAL(MDB,[false])
else
- AC_DEFINE(HAVE_MDB,[1],[Have MDB])
- AM_CONDITIONAL(MDB,[true])
mdbtools_found=yes
save_CFLAGS="$CFLAGS"
@@ -199,6 +214,7 @@ int main() {
fi
fi
+ AM_CONDITIONAL(MDB,[test "$mdbtools_found" = "yes"])
AC_SUBST(MDB_LIBS)
AC_SUBST(MDB_CFLAGS)
])
diff --git a/m4/mysql.m4 b/m4/mysql.m4
new file mode 100644
index 0000000..f14c9c5
--- /dev/null
+++ b/m4/mysql.m4
@@ -0,0 +1,191 @@
+dnl -*- mode: autoconf -*-
+dnl Copyright 2010 Vivien Malerba
+dnl
+dnl SYNOPSIS
+dnl
+dnl MYSQL_CHECK([libdirname])
+dnl
+dnl [libdirname]: defaults to "lib". Can be overridden by the --with-mysql-libdir-name option
+dnl
+dnl DESCRIPTION
+dnl
+dnl This macro tries to find the Mysql libraries and header files
+dnl
+dnl It defines two options:
+dnl --with-mysql=yes/no/<directory>
+dnl --with-mysql-libdir-name=<dir. name>
+dnl
+dnl If the 1st option is "yes" then the macro tries to use mysql-config to locate
+dnl the MySQL package, and if it fails, it tries in several well known directories
+dnl
+dnl If the 1st option is "no" then the macro does not attempt at locating the
+dnl mysql package
+dnl
+dnl If the 1st option is a directory name, then the macro tries to locate the mysql package
+dnl in the specified directory.
+dnl
+dnl If the macro has to try to locate the mysql package in one or more directories, it will
+dnl try to locate the header files in $dir/include and the library files in $dir/lib, unless
+dnl the second option is used to specify a directory name to be used instead of "lib" (for
+dnl example lib64).
+dnl
+dnl USED VARIABLES
+dnl
+dnl $linklibext: contains the library suffix (like ".so"). If not specified ".so" is used.
+dnl $platform_win32: contains "yes" on Windows platforms. If not specified, assumes "no"
+dnl
+dnl
+dnl DEFINED VARIABLES
+dnl
+dnl This macro always calls:
+dnl
+dnl AC_SUBST(MYSQL_LIBS)
+dnl AC_SUBST(MYSQL_CFLAGS)
+dnl mysql_found=yes/no
+dnl
+dnl and if the mysql package is found:
+dnl
+dnl AM_CONDITIONAL(MYSQL, true)
+dnl
+dnl
+dnl LICENSE
+dnl
+dnl This file is free software; the author(s) gives unlimited
+dnl permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+
+m4_define([_MYSQL_CHECK_INTERNAL],
+[
+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+ mysql_loclibdir=$1
+ if test "x$mysql_loclibdir" = x
+ then
+ if test "x$platform_win32" = xyes
+ then
+ mysql_loclibdir=lib/opt
+ else
+ mysql_loclibdir=lib
+ fi
+ fi
+
+ # determine if Mysql should be searched for
+ # and use mysql_config if the "yes" option is used
+ mysql_found=no
+ try_mysql=true
+ pkgmysql=no
+ MYSQL_LIBS=""
+ mysql_test_dir=""
+ AC_ARG_WITH(mysql,
+ AS_HELP_STRING([--with-mysql[=@<:@yes/no/<directory>@:>@]],
+ [Locate Mysql files]),[
+ if test $withval = no
+ then
+ try_mysql=false
+ elif test $withval != yes
+ then
+ mysql_test_dir=$withval
+ fi])
+ AC_ARG_WITH(mysql-libdir-name,
+ AS_HELP_STRING([--with-mysql-libdir-name[=@<:@<dir. name>@:>@]],
+ [Locate Mysql library file, related to the MYSQL prefix specified from --with-mysql]),
+ [mysql_loclibdir=$withval])
+
+ # try with the default available mysql_config
+ if test $try_mysql = true -a "x$mysql_test_dir" = x
+ then
+ AC_PATH_PROGS(MYSQL_CONFIG, mysql_config mysql_config5)
+ if test "x$MYSQL_CONFIG" != x
+ then
+ pkgmysql=yes
+ MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags`
+ MYSQL_LIBS=`$MYSQL_CONFIG --libs`
+ else
+ mysql_test_dir="/usr /usr/local /opt/gnome"
+ fi
+ fi
+
+ # try to locate mysql_config in places in $mysql_test_dir
+ if test $try_mysql = true
+ then
+ if test $pkgmysql = no
+ then
+ if test "x$linklibext" = x
+ then
+ mysql_libext=".so"
+ else
+ mysql_libext=".lib"
+ fi
+ if test $platform_win32 = yes
+ then
+ for d in $mysql_test_dir
+ do
+ AC_MSG_CHECKING([checking for mysql files in $d])
+ if test -a $d/include/mysql.h -a -f $d/$mysql_loclibdir/libmysql$mysql_libext
+ then
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I$d/include"
+ save_LIBS="$LIBS"
+ LIBS="$LIBS -L$d/$mysql_loclibdir -lmysql"
+ AC_LINK_IFELSE([[
+#include <winsock.h>
+#include <mysql.h>
+int main() {
+ printf("%p", mysql_real_connect);
+ return 0;
+}
+]],
+ mysql_found=yes)
+ CFLAGS="$save_CFLAGS"
+ LIBS="$save_LIBS"
+ if test "x$mysql_found" = xyes
+ then
+ AC_MSG_RESULT([found])
+ MYSQL_CFLAGS=-I$d/include
+ MYSQL_LIBS="-L$d/$mysql_loclibdir -lmysql"
+ break
+ fi
+ AC_MSG_RESULT([files found but are not useable])
+ else
+ AC_MSG_RESULT([not found])
+ fi
+ done
+ else
+ for d in $mysql_test_dir
+ do
+ AC_MSG_NOTICE([checking for mysql_config tool in $d])
+ AC_PATH_PROGS(MYSQL_CONFIG, mysql_config mysql_config5,,[$d])
+ if test "x$MYSQL_CONFIG" != x
+ then
+ pkgmysql=yes
+ MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags`
+ MYSQL_LIBS=`$MYSQL_CONFIG --libs`
+ break;
+ fi
+ done
+ fi
+ fi
+ if test "x$MYSQL_LIBS" = x
+ then
+ AC_MSG_NOTICE([MYSQL backend not used])
+ else
+ mysql_found=yes
+ fi
+ fi
+
+ AM_CONDITIONAL(MYSQL,[test "$mysql_found" = "yes"])
+ AC_SUBST(MYSQL_LIBS)
+ AC_SUBST(MYSQL_CFLAGS)
+])
+
+
+dnl Usage:
+dnl MYSQL_CHECK([libdirname])
+
+AC_DEFUN([MYSQL_CHECK],
+[
+ _MYSQL_CHECK_INTERNAL([$1])
+])
diff --git a/m4/oracle.m4 b/m4/oracle.m4
new file mode 100644
index 0000000..2d4c094
--- /dev/null
+++ b/m4/oracle.m4
@@ -0,0 +1,156 @@
+dnl -*- mode: autoconf -*-
+dnl Copyright 2010 Vivien Malerba
+dnl
+dnl SYNOPSIS
+dnl
+dnl ORACLE_CHECK([libdirname])
+dnl
+dnl [libdirname]: defaults to "lib". Can be overridden by the --with-oracle-libdir-name option
+dnl
+dnl DESCRIPTION
+dnl
+dnl This macro tries to find the Oracle libraries and header files.
+dnl
+dnl It defines two options:
+dnl --with-oracle=yes/no/<directory>
+dnl --with-oracle-libdir-name=<dir. name>
+dnl
+dnl If the 1st option is "yes" then the macro in several well known directories
+dnl
+dnl If the 1st option is "no" then the macro does not attempt at locating the
+dnl oracle package
+dnl
+dnl If the 1st option is a drectory name, then the macro tries to locate the oracle package
+dnl in the specified directory.
+dnl
+dnl If the macro has to try to locate the oracle package in one or more directories, it will
+dnl try to locate the header files in $dir/include and the library files in $dir/lib, unless
+dnl the second option is used to specify a directory name to be used instead of "lib" (for
+dnl example lib64).
+dnl
+dnl USED VARIABLES
+dnl
+dnl $linklibext: contains the library suffix (like ".so"). If not specified ".so" is used.
+dnl $platform_win32: contains "yes" on Windows platforms. If not specified, assumes "no"
+dnl
+dnl
+dnl DEFINED VARIABLES
+dnl
+dnl This macro always calls:
+dnl
+dnl AC_SUBST(ORACLE_LIBS)
+dnl AC_SUBST(ORACLE_CFLAGS)
+dnl oracle_found=yes/no
+dnl
+dnl and if the oracle package is found:
+dnl
+dnl AM_CONDITIONAL(ORACLE, true)
+dnl
+dnl
+dnl LICENSE
+dnl
+dnl This file is free software; the author(s) gives unlimited
+dnl permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+
+m4_define([_ORACLE_CHECK_INTERNAL],
+[
+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+ oracle_loclibdir=$1
+ if test "x$oracle_loclibdir" = x
+ then
+ if test "x$platform_win32" = xyes
+ then
+ oracle_loclibdir=bin
+ else
+ oracle_loclibdir=lib
+ fi
+ fi
+
+ # determine if Oracle should be searched for
+ oracle_found=no
+ try_oracle=true
+ ORACLE_LIBS=""
+ oracle_test_dir="$ORACLE_HOME /usr /opt/oracle /local"
+ AC_ARG_WITH(oracle,
+ AS_HELP_STRING([--with-oracle[=@<:@yes/no/<directory>@:>@]],
+ [Locate Oracle's client libraries]),[
+ if test $withval = no
+ then
+ try_oracle=false
+ elif test $withval != yes
+ then
+ oracle_test_dir=$withval
+ fi])
+ AC_ARG_WITH(oracle-libdir-name,
+ AS_HELP_STRING([--with-oracle-libdir-name[=@<:@<dir. name>@:>@]],
+ [Locate ORACLE library file, related to the prefix specified from --with-oracle]),
+ [oracle_loclibdir=$withval])
+
+ # try to locate files
+ if test $try_oracle = true
+ then
+ if test "x$linklibext" = x
+ then
+ oracle_libext=".so"
+ else
+ oracle_libext="$linklibext"
+ fi
+ oracledir=""
+ for d in $oracle_test_dir
+ do
+ oracledir=""
+ AC_MSG_CHECKING([for Oracle files in $d])
+ if test -f $d/$oracle_loclibdir/libclntsh$oracle_libext
+ then
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I$d/include -I$d/include/oracle/client -I$d/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I$d/network/public"
+ save_LIBS="$LIBS"
+ LIBS="$LIBS -L$d/$oracle_loclibdir -lm -ldl -lclntsh"
+ AC_LINK_IFELSE([[
+#include <oci.h>
+int main() {
+ printf("%p", OCIInitialize);
+ return 0;
+}
+]],
+ oracledir=$d)
+ CFLAGS="$save_CFLAGS"
+ LIBS="$save_LIBS"
+ fi
+
+ if test x$oracledir != x
+ then
+ AC_MSG_RESULT([found])
+ ORACLE_CFLAGS="-I${oracledir}/include -I${oracledir}/include/oracle/client -I${oracledir}/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I${oracledir}/network/public"
+ ORACLE_LIBS="-L${oracledir}/$oracle_loclibdir -lm -ldl -lclntsh"
+ break
+ else
+ AC_MSG_RESULT([not found])
+ fi
+ done
+
+ if test "x$ORACLE_LIBS" = x
+ then
+ AC_MSG_NOTICE([ORACLE backend not used])
+ else
+ oracle_found=yes
+ fi
+ fi
+
+ AM_CONDITIONAL(ORACLE,[test "$oracle_found" = "yes"])
+ AC_SUBST(ORACLE_LIBS)
+ AC_SUBST(ORACLE_CFLAGS)
+])
+
+dnl Usage:
+dnl ORACLE_CHECK([libdirname])
+
+AC_DEFUN([ORACLE_CHECK],
+[
+ _ORACLE_CHECK_INTERNAL([$1])
+])
diff --git a/m4/postgresql.m4 b/m4/postgresql.m4
new file mode 100644
index 0000000..9492122
--- /dev/null
+++ b/m4/postgresql.m4
@@ -0,0 +1,191 @@
+dnl -*- mode: autoconf -*-
+dnl Copyright 2010 Vivien Malerba
+dnl
+dnl SYNOPSIS
+dnl
+dnl POSTGRES_CHECK([libdirname])
+dnl
+dnl [libdirname]: defaults to "lib". Can be overridden by the --with-postgres-libdir-name option
+dnl
+dnl DESCRIPTION
+dnl
+dnl This macro tries to find the PostgreSQL libraries and header files
+dnl
+dnl It defines two options:
+dnl --with-postgres=yes/no/<directory>
+dnl --with-postgres-libdir-name=<dir. name>
+dnl
+dnl If the 1st option is "yes" then the macro tries to use pg_config to locate
+dnl the PostgreSQL package, and if it fails, it tries in several well known directories
+dnl
+dnl If the 1st option is "no" then the macro does not attempt at locating the
+dnl postgresql package
+dnl
+dnl If the 1st option is a directory name, then the macro tries to locate the postgresql package
+dnl in the specified directory.
+dnl
+dnl If the macro has to try to locate the postgresql package in one or more directories, it will
+dnl try to locate the header files in $dir/include and the library files in $dir/lib, unless
+dnl the second option is used to specify a directory name to be used instead of "lib" (for
+dnl example lib64).
+dnl
+dnl USED VARIABLES
+dnl
+dnl $linklibext: contains the library suffix (like ".so"). If not specified ".so" is used.
+dnl $platform_win32: contains "yes" on Windows platforms. If not specified, assumes "no"
+dnl
+dnl
+dnl DEFINED VARIABLES
+dnl
+dnl This macro always calls:
+dnl
+dnl AC_SUBST(POSTGRES_LIBS)
+dnl AC_SUBST(POSTGRES_CFLAGS)
+dnl postgres_found=yes/no
+dnl
+dnl and if the postgresql package is found:
+dnl
+dnl AM_CONDITIONAL(POSTGRES, true)
+dnl
+dnl
+dnl LICENSE
+dnl
+dnl This file is free software; the author(s) gives unlimited
+dnl permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+
+m4_define([_POSTGRES_CHECK_INTERNAL],
+[
+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+ pg_loclibdir=$1
+ if test "x$pg_loclibdir" = x
+ then
+ if test "x$platform_win32" = xyes
+ then
+ pg_loclibdir=bin
+ else
+ pg_loclibdir=lib
+ fi
+ fi
+
+ # determine if PostgreSQL should be searched for
+ # and use pg_config if the "yes" option is used
+ postgres_found=no
+ try_postgres=true
+ pkgpostgres=no
+ POSTGRES_LIBS=""
+ postgres_test_dir=""
+ AC_ARG_WITH(postgres,
+ AS_HELP_STRING([--with-postgres[=@<:@yes/no/<directory>@:>@]],
+ [Locate PostgreSQL files]),[
+ if test $withval = no
+ then
+ try_postgres=false
+ elif test $withval != yes
+ then
+ postgres_test_dir=$withval
+ fi])
+ AC_ARG_WITH(postgres-libdir-name,
+ AS_HELP_STRING([--with-postgres-libdir-name[=@<:@<dir. name>@:>@]],
+ [Locate PostgreSQL library file, related to the PostgreSQL prefix specified from --with-postgres]),
+ [pg_loclibdir=$withval])
+
+ # try with the default available pg_config
+ if test $try_postgres = true -a "x$postgres_test_dir" = x
+ then
+ AC_PATH_PROGS(PG_CONFIG, pg_config)
+ if test "x$PG_CONFIG" != x
+ then
+ pkgpostgres=yes
+ POSTGRES_CFLAGS="-I`$PG_CONFIG --includedir`"
+ POSTGRES_LIBS="-L`$PG_CONFIG --libdir` -lpq"
+ else
+ postgres_test_dir="/usr /usr/local /opt/gnome"
+ fi
+ fi
+
+ # try to locate pg_config in places in $postgres_test_dir
+ if test $try_postgres = true
+ then
+ if test $pkgpostgres = no
+ then
+ if test "x$linklibext" = x
+ then
+ postgres_libext=".so"
+ else
+ postgres_libext=".dll"
+ fi
+ if test $platform_win32 = yes
+ then
+ for d in $postgres_test_dir
+ do
+ AC_MSG_CHECKING([checking for PostgreSQL files in $d])
+ echo "looking for $d/include/libpq-fe.h -a -f $d/$pg_loclibdir/libpq$postgres_libext"
+ if test -a $d/include/libpq-fe.h -a -f $d/$pg_loclibdir/libpq$postgres_libext
+ then
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I$d/include"
+ save_LIBS="$LIBS"
+ LIBS="$LIBS -L$d/$pg_loclibdir -lpq"
+ AC_LINK_IFELSE([[
+#include <libpq-fe.h>
+int main() {
+ printf("%p", PQconnectdb);
+ return 0;
+}
+]],
+ postgres_found=yes)
+ CFLAGS="$save_CFLAGS"
+ LIBS="$save_LIBS"
+ if test "x$postgres_found" = xyes
+ then
+ AC_MSG_RESULT([found])
+ POSTGRES_CFLAGS=-I$d/include
+ POSTGRES_LIBS="-L$d/$pg_loclibdir -lpq"
+ break
+ fi
+ AC_MSG_RESULT([files found but are not useable])
+ else
+ AC_MSG_RESULT([not found])
+ fi
+ done
+ else
+ for d in $postgres_test_dir
+ do
+ AC_MSG_NOTICE([checking for pg_config tool in $d])
+ AC_PATH_PROGS(PG_CONFIG, pg_config,,[$d/bin])
+ if test "x$PG_CONFIG" != x
+ then
+ pkgpostgres=yes
+ POSTGRES_CFLAGS="-I`$PG_CONFIG --includedir`"
+ POSTGRES_LIBS="-L`$PG_CONFIG --libdir` -lpq"
+ break;
+ fi
+ done
+ fi
+ fi
+ if test "x$POSTGRES_LIBS" = x
+ then
+ AC_MSG_NOTICE([POSTGRESQL backend not used])
+ else
+ postgres_found=yes
+ fi
+ fi
+
+ AM_CONDITIONAL(POSTGRES,[test "$postgres_found" = "yes"])
+ AC_SUBST(POSTGRES_LIBS)
+ AC_SUBST(POSTGRES_CFLAGS)
+])
+
+
+dnl Usage:
+dnl POSTGRES_CHECK([libdirname])
+
+AC_DEFUN([POSTGRES_CHECK],
+[
+ _POSTGRES_CHECK_INTERNAL([$1])
+])
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 84bab04..de79439 100755
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -9,26 +9,6 @@ providers/firebird/gda-firebird-ddl.c
providers/firebird/gda-firebird-provider.c
providers/firebird/gda-firebird-recordset.c
providers/firebird/libmain.c
-providers/freetds/freetds_specs_dsn.xml.in
-providers/freetds/gda-freetds-provider.c
-providers/freetds/gda-freetds-recordset.c
-providers/freetds/libmain.c
-providers/freetds/utils.c
-providers/ibmdb2/gda-ibmdb2-provider.c
-providers/ibmdb2/gda-ibmdb2-types.c
-providers/ibmdb2/ibmdb2_specs_dsn.xml.in
-providers/ibmdb2/libmain.c
-providers/ldap/gda-ldap-provider.c
-providers/ldap/gda-ldap-recordset.c
-providers/ldap/ldap_specs_dsn.xml.in
-providers/ldap/libmain.c
-providers/msql/gda-msql-provider.c
-providers/msql/gda-msql-recordset.c
-providers/msql/libmain.c
-providers/msql/msql_specs_dsn.xml.in
-providers/odbc/gda-odbc-provider.c
-providers/odbc/libmain.c
-providers/odbc/odbc_specs_dsn.xml.in
providers/oracle/gda-oracle-blob-op.c
providers/oracle/gda-oracle-provider.c
providers/oracle/gda-oracle-recordset.c
@@ -50,15 +30,5 @@ providers/skel-implementation/models/gda-models-provider.c
providers/skel-implementation/models/libmain.c
providers/skel-implementation/models/models_specs_dsn.xml.in
providers/sqlcipher/sqlite3.c
-providers/sybase/gda-sybase-provider.c
-providers/sybase/gda-sybase-recordset.c
-providers/sybase/gda-sybase-types.c
-providers/sybase/libmain.c
-providers/sybase/main.c
-providers/sybase/sybase_specs_dsn.xml.in
-providers/sybase/utils.c
-providers/xbase/gda-xbase-provider.c
-providers/xbase/libmain.c
-providers/xbase/xbase_specs_dsn.xml.in
testing/html.c
tests/gda-ddl-creator.c
diff --git a/po/cs.po b/po/cs.po
index 04390eb..e9c8aff 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -11,15 +11,16 @@
msgid ""
msgstr ""
"Project-Id-Version: libgda\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-09-22 13:49+0200\n"
-"PO-Revision-Date: 2010-09-22 07:35+0200\n"
+"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
+"product=libgda&component=general\n"
+"POT-Creation-Date: 2010-09-28 04:01+0000\n"
+"PO-Revision-Date: 2010-09-29 19:07+0200\n"
"Last-Translator: Marek Ä?ernocký <marek manet cz>\n"
"Language-Team: Czech <gnome-cs-list gnome org>\n"
-"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Language: cs\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Poedit-Language: Czech\n"
"X-Poedit-SourceCharset: utf-8\n"
@@ -115,12 +116,12 @@ msgstr "Nelze spustit prohlÞecà program"
#: ../libgda/gda-server-operation.c:614 ../libgda/gda-server-operation.c:1005
#: ../libgda/gda-set.c:559 ../libgda/gda-tree-mgr-select.c:188
#: ../libgda/gda-tree-mgr-select.c:220
-#: ../libgda/sqlite/gda-sqlite-provider.c:2130
-#: ../libgda/sqlite/gda-sqlite-provider.c:2142
-#: ../libgda/sqlite/gda-sqlite-provider.c:2164
-#: ../libgda/sqlite/gda-sqlite-provider.c:2354
-#: ../libgda/sqlite/gda-sqlite-provider.c:2639
-#: ../libgda/sqlite/gda-sqlite-provider.c:2651
+#: ../libgda/sqlite/gda-sqlite-provider.c:2198
+#: ../libgda/sqlite/gda-sqlite-provider.c:2210
+#: ../libgda/sqlite/gda-sqlite-provider.c:2232
+#: ../libgda/sqlite/gda-sqlite-provider.c:2422
+#: ../libgda/sqlite/gda-sqlite-provider.c:2707
+#: ../libgda/sqlite/gda-sqlite-provider.c:2719
#: ../libgda/thread-wrapper/gda-thread-provider.c:454
#: ../libgda-ui/data-entries/common-bin.c:79
#: ../libgda-ui/data-entries/common-bin.c:156
@@ -186,8 +187,8 @@ msgstr "Nelze spustit prohlÞecà program"
#: ../tools/browser/schema-browser/table-preferences.c:772
#: ../tools/gda-list-server-op.c:47 ../tools/gda-list-server-op.c:90
#: ../tools/gda-sql.c:269 ../tools/gda-sql.c:286 ../tools/gda-sql.c:425
-#: ../tools/gda-sql.c:1465 ../tools/gda-sql.c:1480 ../tools/gda-sql.c:1617
-#: ../tools/gda-sql.c:3049 ../tools/tools-input.c:129
+#: ../tools/gda-sql.c:1467 ../tools/gda-sql.c:1482 ../tools/gda-sql.c:1619
+#: ../tools/gda-sql.c:3051 ../tools/tools-input.c:129
#: ../tools/web-server.c:2018
msgid "No detail"
msgstr "Bez podrobnostÃ"
@@ -499,8 +500,8 @@ msgid "Can't instantiate provider '%s'"
msgstr "Nelze vytvoÅ?it instanci poskytovatele â??%sâ??"
#: ../libgda/gda-config.c:1334 ../libgda/gda-data-model-dsn-list.c:111
-#: ../libgda/gda-data-model-dsn-list.c:112 ../tools/gda-sql.c:1850
-#: ../tools/gda-sql.c:2698 ../tools/gda-sql.c:2870 ../tools/gda-sql.c:3087
+#: ../libgda/gda-data-model-dsn-list.c:112 ../tools/gda-sql.c:1852
+#: ../tools/gda-sql.c:2700 ../tools/gda-sql.c:2872 ../tools/gda-sql.c:3089
msgid "Provider"
msgstr "Poskytovatel"
@@ -509,7 +510,7 @@ msgstr "Poskytovatel"
#: ../libgda/gda-server-provider-extra.c:382
#: ../libgda/gda-server-provider-extra.c:405
#: ../tools/browser/data-manager/data-source-editor.c:130
-#: ../tools/gda-sql.c:1851 ../tools/gda-sql.c:2697 ../tools/gda-sql.c:2871
+#: ../tools/gda-sql.c:1853 ../tools/gda-sql.c:2699 ../tools/gda-sql.c:2873
msgid "Description"
msgstr "Popis"
@@ -526,7 +527,7 @@ msgid "List of installed providers"
msgstr "Seznam nainstalovaných poskytovatelů"
#: ../libgda/gda-config.c:1503 ../libgda/gda-data-model-dsn-list.c:131
-#: ../libgda/gda-data-model-dsn-list.c:132 ../tools/gda-sql.c:3089
+#: ../libgda/gda-data-model-dsn-list.c:132 ../tools/gda-sql.c:3091
msgid "Username"
msgstr "Uživatelské jméno"
@@ -640,7 +641,7 @@ msgid "Datasource configuration error: no provider specified"
msgstr "Chyba nastavenà zdroje dat: nenà urÄ?en žádný poskytovatel"
#: ../libgda/gda-connection.c:1124 ../tools/browser/auth-dialog.c:417
-#: ../tools/browser/auth-dialog.c:453 ../tools/gda-sql.c:1309
+#: ../tools/browser/auth-dialog.c:453 ../tools/gda-sql.c:1311
#, c-format
msgid "Malformed connection string '%s'"
msgstr "Chybný pÅ?ipojovacà Å?etÄ?zec â??%sâ??"
@@ -693,7 +694,7 @@ msgstr "PÅ?ipojenà je uzavÅ?eno"
msgid "Can't find task %u"
msgstr "Nelze najÃt úlohu %u"
-#: ../libgda/gda-connection.c:2553 ../libgda/sqlite/gda-sqlite-provider.c:1028
+#: ../libgda/gda-connection.c:2553 ../libgda/sqlite/gda-sqlite-provider.c:1096
#: ../libgda/thread-wrapper/gda-thread-provider.c:917
#: ../providers/jdbc/gda-jdbc-provider.c:575
#: ../providers/mysql/gda-mysql-provider.c:963
@@ -970,8 +971,8 @@ msgid ""
"Destination column %d has a gda type (%s) incompatible with source column %d "
"type (%s)"
msgstr ""
-"CÃlový sloupec %d má typ gda (%s) nekompatibilnà s typem zdrojového sloupce "
-"%d (%s)"
+"CÃlový sloupec %d má typ gda (%s) nekompatibilnà s typem zdrojového sloupce %"
+"d (%s)"
#: ../libgda/gda-data-model.c:1836
#, c-format
@@ -1056,7 +1057,7 @@ msgid "Cannot remove file '%s'"
msgstr "Nelze odstranit soubor â??%sâ??"
#: ../libgda/gda-data-model-dsn-list.c:105
-#: ../libgda/gda-data-model-dsn-list.c:106 ../tools/gda-sql.c:2696
+#: ../libgda/gda-data-model-dsn-list.c:106 ../tools/gda-sql.c:2698
msgid "DSN"
msgstr "DSN"
@@ -1101,7 +1102,7 @@ msgid "Character conversion at line %d, error: %s"
msgstr "PÅ?evod znaků na Å?ádku %d, chyba: %s"
#: ../libgda/gda-data-model-import.c:904
-#: ../libgda/sqlite/gda-sqlite-provider.c:710
+#: ../libgda/sqlite/gda-sqlite-provider.c:778
#: ../providers/bdb/gda-bdb-provider.c:210
#: ../tools/browser/common/gdaui-data-import.c:177
msgid "no detail"
@@ -1228,7 +1229,7 @@ msgstr ""
"pÅ?ÃsluÅ¡né signály â??row-insertedâ??, â??row-updatedâ?? nebo â??row-removedâ??. To může "
"být chyba implementace %s (chybu prosÃm nahlaste)."
-#: ../libgda/gda-data-proxy.c:2931 ../tools/gda-sql.c:3251
+#: ../libgda/gda-data-proxy.c:2931 ../tools/gda-sql.c:3253
msgid "Could not create virtual connection"
msgstr "Nelze vytvoÅ?it virtuálnà pÅ?ipojenÃ"
@@ -1947,7 +1948,7 @@ msgstr "Id"
#: ../libgda/gda-server-provider-extra.c:392
#: ../libgda/gda-server-provider-extra.c:404
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:56
-#: ../tools/command-exec.c:643
+#: ../tools/command-exec.c:650
msgid "Owner"
msgstr "VlastnÃk"
@@ -2167,7 +2168,7 @@ msgstr "Trigger"
#: ../providers/mysql/mysql_specs_create_index.xml.in.h:17
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:17
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:17
-#: ../tools/command-exec.c:642 ../tools/command-exec.c:716
+#: ../tools/command-exec.c:649 ../tools/command-exec.c:723
#: ../tools/web-server.c:926
msgid "Type"
msgstr "Typ"
@@ -2222,7 +2223,7 @@ msgstr "Pohled"
#: ../providers/sqlite/sqlite_specs_create_view.xml.in.h:3
#: ../tools/browser/data-manager/data-favorite-selector.c:304
#: ../tools/browser/query-exec/query-favorite-selector.c:288
-#: ../tools/command-exec.c:641 ../tools/gda-sql.c:3086 ../tools/gda-sql.c:4012
+#: ../tools/command-exec.c:648 ../tools/gda-sql.c:3088 ../tools/gda-sql.c:4014
msgid "Name"
msgstr "Název"
@@ -2376,7 +2377,7 @@ msgstr "Nesprávný typ parametru pro â??%sâ??: oÄ?ekáván typ â??%sâ?? a obdr
msgid "Missing parameter '%s'"
msgstr "Scházà parametr â??%sâ??"
-#: ../libgda/gda-statement.c:1243 ../libgda/sqlite/gda-sqlite-provider.c:2532
+#: ../libgda/gda-statement.c:1243 ../libgda/sqlite/gda-sqlite-provider.c:2600
#: ../providers/jdbc/gda-jdbc-provider.c:1347
#: ../providers/mysql/gda-mysql-provider.c:2188
#: ../providers/postgres/gda-postgres-provider.c:1949
@@ -2509,13 +2510,13 @@ msgstr "Nelze vypoÄ?Ãtat nÄ?které pole, které se má vkládat"
msgid "Missing table name in UPDATE statement"
msgstr "Scházà název tabulky v pÅ?Ãkazu UPDATE"
-#: ../libgda/gda-util.c:1264
+#: ../libgda/gda-util.c:1266
#, c-format
msgid "Can't rewrite UPDATE statement to handle default values"
msgstr "Nelze pÅ?epsat pÅ?Ãkaz UPDATE, aby obsluhoval výchozà hodnoty"
-#: ../libgda/gda-util.c:1316 ../libgda/gda-util.c:1373
-#: ../libgda/gda-util.c:1413 ../libgda/sqlite/gda-sqlite-provider.c:2513
+#: ../libgda/gda-util.c:1318 ../libgda/gda-util.c:1375
+#: ../libgda/gda-util.c:1415 ../libgda/sqlite/gda-sqlite-provider.c:2581
#: ../providers/jdbc/gda-jdbc-provider.c:1318
#: ../providers/mysql/gda-mysql-provider.c:2168
#: ../providers/postgres/gda-postgres-provider.c:1931
@@ -2623,29 +2624,31 @@ msgstr "Podoba binárnÃch dat SQLite"
msgid "Sqlite boolean representation"
msgstr "Podoba pravdivostnà hodnoty SQLite"
-#: ../libgda/sqlite/gda-sqlite-provider.c:109
-#: ../libgda/sqlite/gda-sqlite-provider.c:146
+#: ../libgda/sqlite/gda-sqlite-provider.c:111
+#: ../libgda/sqlite/gda-sqlite-provider.c:169
#, c-format
msgid "Parameter '%s' not found is statement"
msgstr "Parametr â??%sâ?? nebyl v pÅ?Ãkazu nalezen"
-#: ../libgda/sqlite/gda-sqlite-provider.c:117
-#: ../libgda/sqlite/gda-sqlite-provider.c:154
+#: ../libgda/sqlite/gda-sqlite-provider.c:125
+#: ../libgda/sqlite/gda-sqlite-provider.c:141
+#: ../libgda/sqlite/gda-sqlite-provider.c:183
+#: ../libgda/sqlite/gda-sqlite-provider.c:199
#, c-format
-msgid "Parameter '%s' does not correspond to a table's column"
-msgstr "Parametr â??%sâ?? neodpovÃdá sloupci tabulky"
+msgid "No column name to associate to parameter '%s'"
+msgstr "Sloupec nemá žádný název pro pÅ?iÅ?azenà k parametru â??%sâ??"
-#: ../libgda/sqlite/gda-sqlite-provider.c:166
+#: ../libgda/sqlite/gda-sqlite-provider.c:209
msgid "Binding a BLOB for this type of statement is not supported"
msgstr ""
"Navázánà rozsáhlých binárnÃch dat (BLOB) nenà pro tento typ pÅ?Ãkazu "
"podporováno"
-#: ../libgda/sqlite/gda-sqlite-provider.c:513
+#: ../libgda/sqlite/gda-sqlite-provider.c:581
msgid "Can't find libsqlite3."
msgstr "Nelze najÃt libsqlite3."
-#: ../libgda/sqlite/gda-sqlite-provider.c:565
+#: ../libgda/sqlite/gda-sqlite-provider.c:633
#: ../libgda/sqlite/virtual/gda-vprovider-data-model.c:264
#: ../libgda/thread-wrapper/gda-thread-provider.c:389
#: ../providers/bdb/gda-bdb-provider.c:155
@@ -2657,13 +2660,13 @@ msgstr "Nelze najÃt libsqlite3."
msgid "Provider does not support asynchronous connection open"
msgstr "Poskytovatel nepodporuje otevÅ?enà asynchronnÃho pÅ?ipojenÃ"
-#: ../libgda/sqlite/gda-sqlite-provider.c:589
+#: ../libgda/sqlite/gda-sqlite-provider.c:657
#: ../providers/mdb/gda-mdb-provider.c:246
msgid "The connection string must contain DB_DIR and DB_NAME values"
msgstr "PÅ?ipojovacà Å?etÄ?zec musà obsahovat hodnoty DB_DIR a DB_NAME"
-#: ../libgda/sqlite/gda-sqlite-provider.c:616
-#: ../libgda/sqlite/gda-sqlite-provider.c:624
+#: ../libgda/sqlite/gda-sqlite-provider.c:684
+#: ../libgda/sqlite/gda-sqlite-provider.c:692
#, c-format
msgid ""
"The connection string format has changed: replace URI with DB_DIR (the path "
@@ -2673,23 +2676,23 @@ msgstr ""
"PÅ?ipojovacà Å?etÄ?zec byl zmÄ?nÄ?n: nahraÄ?te adresu URI za DB_DIR (cestu k "
"souboru s databázÃ) a DB_NAME (soubor s databázà bez â??%sâ?? na konci)."
-#: ../libgda/sqlite/gda-sqlite-provider.c:639
+#: ../libgda/sqlite/gda-sqlite-provider.c:707
#: ../providers/mdb/gda-mdb-provider.c:288
msgid ""
"The DB_DIR part of the connection string must point to a valid directory"
msgstr "Ä?ást DB_DIR pÅ?ipojovacà Å?etÄ?zce musà ukazovat na platnou složku"
-#: ../libgda/sqlite/gda-sqlite-provider.c:681
+#: ../libgda/sqlite/gda-sqlite-provider.c:749
msgid "Wrong encryption passphrase"
msgstr "Nesprávná heslová fráze"
-#: ../libgda/sqlite/gda-sqlite-provider.c:709
+#: ../libgda/sqlite/gda-sqlite-provider.c:777
#, c-format
msgid "Could not set empty_result_callbacks SQLite option: %s"
msgstr "Nelze nastavit volbu SQLite empty_result_callbacks: %s"
-#: ../libgda/sqlite/gda-sqlite-provider.c:924
-#: ../libgda/sqlite/gda-sqlite-provider.c:964
+#: ../libgda/sqlite/gda-sqlite-provider.c:992
+#: ../libgda/sqlite/gda-sqlite-provider.c:1032
#: ../libgda-ui/data-entries/plugins/libmain.c:85
#: ../libgda-ui/data-entries/plugins/libmain.c:123
#: ../libgda-ui/data-entries/plugins/libmain.c:151
@@ -2704,32 +2707,32 @@ msgstr "Nelze nastavit volbu SQLite empty_result_callbacks: %s"
msgid "Missing spec. file '%s'"
msgstr "Scházà soubor spec. â??%sâ??"
-#: ../libgda/sqlite/gda-sqlite-provider.c:1086
-#: ../libgda/sqlite/gda-sqlite-provider.c:1095
-#: ../libgda/sqlite/gda-sqlite-provider.c:1107
-#: ../libgda/sqlite/gda-sqlite-provider.c:1116
+#: ../libgda/sqlite/gda-sqlite-provider.c:1154
+#: ../libgda/sqlite/gda-sqlite-provider.c:1163
+#: ../libgda/sqlite/gda-sqlite-provider.c:1175
+#: ../libgda/sqlite/gda-sqlite-provider.c:1184
msgid "Error initializing database with passphrase"
msgstr "Chyba pÅ?i inicializaci databáze heslovou frázÃ"
-#: ../libgda/sqlite/gda-sqlite-provider.c:1158
+#: ../libgda/sqlite/gda-sqlite-provider.c:1226
msgid "Missing database name or directory"
msgstr "Scházà název databáze nebo složka"
-#: ../libgda/sqlite/gda-sqlite-provider.c:1184
+#: ../libgda/sqlite/gda-sqlite-provider.c:1252
#: ../providers/postgres/gda-postgres-provider.c:992
#: ../providers/postgres/gda-postgres-provider.c:993
msgid "Transactions are not supported in read-only mode"
msgstr "Transakce nejsou podporovány v režimu pouze pro Ä?tenÃ"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2017
+#: ../libgda/sqlite/gda-sqlite-provider.c:2085
#: ../providers/jdbc/gda-jdbc-provider.c:1115
#: ../providers/postgres/gda-postgres-provider.c:1528
#: ../providers/web/gda-web-provider.c:1259
msgid "Unnamed parameter is not allowed in prepared statements"
msgstr "Nepojmenovaný parametr nenà v pÅ?edpÅ?ipraveném pÅ?Ãkazu dovolen"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2129
-#: ../libgda/sqlite/gda-sqlite-provider.c:2141
+#: ../libgda/sqlite/gda-sqlite-provider.c:2197
+#: ../libgda/sqlite/gda-sqlite-provider.c:2209
#: ../providers/mysql/gda-mysql-provider.c:1955
#: ../providers/postgres/gda-postgres-provider.c:1672
#, c-format
@@ -2737,44 +2740,44 @@ msgid "Can't build SELECT statement to get last inserted row: %s)"
msgstr ""
"Nelze sestavit pÅ?Ãkaz SELECT pro zÃskánà poslednÃho vloženého Å?ádku: %s)"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2163
+#: ../libgda/sqlite/gda-sqlite-provider.c:2231
#: ../providers/mysql/gda-mysql-provider.c:1970
#: ../providers/postgres/gda-postgres-provider.c:1687
#, c-format
msgid "Can't execute SELECT statement to get last inserted row: %s"
msgstr "Nelze provést pÅ?Ãkaz SELECT pro zÃskánà poslednÃho vloženého Å?ádku: %s"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2176
+#: ../libgda/sqlite/gda-sqlite-provider.c:2244
#: ../providers/mysql/gda-mysql-provider.c:1983
#: ../providers/postgres/gda-postgres-provider.c:1700
msgid "SELECT statement to get last inserted row did not return any row"
msgstr ""
"PÅ?Ãkaz SELECT pro zÃskánà poslednÃho vloženého Å?ádku nevrátil žádný Å?ádek"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2180
+#: ../libgda/sqlite/gda-sqlite-provider.c:2248
#: ../providers/mysql/gda-mysql-provider.c:1987
#: ../providers/postgres/gda-postgres-provider.c:1704
#, c-format
msgid "SELECT statement to get last inserted row returned too many (%d) rows"
msgstr ""
-"PÅ?Ãkaz SELECT pro zÃskánà poslednÃho vloženého Å?ádku vrátil pÅ?ÃliÅ¡ mnoho "
-"(%d) Å?ádků"
+"PÅ?Ãkaz SELECT pro zÃskánà poslednÃho vloženého Å?ádku vrátil pÅ?ÃliÅ¡ mnoho (%"
+"d) Å?ádků"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2245
+#: ../libgda/sqlite/gda-sqlite-provider.c:2313
msgid "Prepared statement has no associated GdaStatement"
msgstr "PÅ?edpÅ?ipravený pÅ?Ãkaz nemá odpovÃdajÃcà GdaStatment"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2285
-#: ../libgda/sqlite/gda-sqlite-provider.c:2322
+#: ../libgda/sqlite/gda-sqlite-provider.c:2353
+#: ../libgda/sqlite/gda-sqlite-provider.c:2390
msgid "Can't create SQLite BLOB handle"
msgstr "Nelze vytvoÅ?it obsluhu rozsáhlého objektu BLOB z SQLite"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2289
-#: ../libgda/sqlite/gda-sqlite-provider.c:2327
+#: ../libgda/sqlite/gda-sqlite-provider.c:2357
+#: ../libgda/sqlite/gda-sqlite-provider.c:2395
msgid "Can't write to SQLite's BLOB"
msgstr "Nelze zapisovat do binárnÃho objektu BLOB databáze SQLite"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2312
+#: ../libgda/sqlite/gda-sqlite-provider.c:2380
#, c-format
msgid ""
"Can't obtain SQLite BLOB handle (reported type is '%s'), please report this "
@@ -2784,12 +2787,12 @@ msgstr ""
"â??%sâ??), nahlaste to prosÃm jako chybu na http://bugzilla.gnome.org/ pro "
"produkt â??libgdaâ??."
-#: ../libgda/sqlite/gda-sqlite-provider.c:2337
+#: ../libgda/sqlite/gda-sqlite-provider.c:2405
msgid "Can't identify the ROWID of the blob to fill"
msgstr ""
"Nelze zjistit ROWID rozsáhlých binárnÃch dat BLOB, která se majà vyplnit"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2385
+#: ../libgda/sqlite/gda-sqlite-provider.c:2453
#: ../providers/jdbc/gda-jdbc-provider.c:1213
#: ../providers/mysql/gda-mysql-provider.c:2076
#: ../providers/postgres/gda-postgres-provider.c:1799
@@ -2797,13 +2800,13 @@ msgstr ""
msgid "Provider does not support asynchronous statement execution"
msgstr "Poskytovatel nepodporuje asynchronnà provádÄ?nà pÅ?Ãkazů"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2453
+#: ../libgda/sqlite/gda-sqlite-provider.c:2521
#: ../tools/browser/mgr-favorites.c:217 ../tools/browser/mgr-favorites.c:259
msgid "Empty statement"
msgstr "Prázdný pÅ?Ãkaz"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2495
-#: ../libgda/sqlite/gda-sqlite-provider.c:2498
+#: ../libgda/sqlite/gda-sqlite-provider.c:2563
+#: ../libgda/sqlite/gda-sqlite-provider.c:2566
#: ../providers/jdbc/gda-jdbc-provider.c:1300
#: ../providers/jdbc/gda-jdbc-provider.c:1303
#: ../providers/mysql/gda-mysql-provider.c:2150
@@ -2816,7 +2819,7 @@ msgstr "Prázdný pÅ?Ãkaz"
msgid "Missing parameter(s) to execute query"
msgstr "K provedenà dotazu scházà parametr(y)"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2557
+#: ../libgda/sqlite/gda-sqlite-provider.c:2625
#: ../providers/jdbc/gda-jdbc-provider.c:1382
#: ../providers/mysql/gda-mysql-provider.c:2214
#: ../providers/postgres/gda-postgres-provider.c:1974
@@ -2824,34 +2827,34 @@ msgstr "K provedenà dotazu scházà parametr(y)"
msgid "Can't rewrite statement handle default values"
msgstr "Nelze pÅ?epsat pÅ?Ãkaz, aby obsluhoval výchozà hodnoty"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2621
+#: ../libgda/sqlite/gda-sqlite-provider.c:2689
#: ../providers/mysql/gda-mysql-provider.c:2346
msgid "Can't get BLOB's length"
msgstr "Nelze zÃskat délku rozsáhlých binárnÃch dat BLOB"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2623
+#: ../libgda/sqlite/gda-sqlite-provider.c:2691
#: ../providers/mysql/gda-mysql-provider.c:2348
msgid "BLOB is too big"
msgstr "Rozsáhlá binárnà data BLOB jsou pÅ?ÃliÅ¡ velká"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2705
+#: ../libgda/sqlite/gda-sqlite-provider.c:2773
#, c-format
msgid "Non handled data type '%s'"
msgstr "Neobsluhovaný datový typ â??%sâ??"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2761
+#: ../libgda/sqlite/gda-sqlite-provider.c:2829
msgid "Could not start transaction to create BLOB"
msgstr ""
"Nelze zaÄ?Ãt transakci potÅ?ebnou k vytvoÅ?enà rozsáhlého binárnÃho objektu BLOB"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2923
-#: ../libgda/sqlite/gda-sqlite-provider.c:2944
-#: ../libgda/sqlite/gda-sqlite-provider.c:3010
+#: ../libgda/sqlite/gda-sqlite-provider.c:2991
+#: ../libgda/sqlite/gda-sqlite-provider.c:3012
+#: ../libgda/sqlite/gda-sqlite-provider.c:3078
msgid "Function requires one argument"
msgstr "Funkce vyžaduje jeden parametr"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2976
-#: ../libgda/sqlite/gda-sqlite-provider.c:3042
+#: ../libgda/sqlite/gda-sqlite-provider.c:3044
+#: ../libgda/sqlite/gda-sqlite-provider.c:3110
msgid "Function requires two arguments"
msgstr "Funkce vyžaduje dva parametry"
@@ -3225,8 +3228,8 @@ msgid "Unknown query '%s'"
msgstr "Neznámý dotaz â??%sâ??"
#: ../libgda-report/engine/gda-report-engine.c:581
-#: ../libgda-report/engine/gda-report-engine.c:608 ../tools/gda-sql.c:2981
-#: ../tools/gda-sql.c:3063 ../tools/gda-sql.c:3163 ../tools/gda-sql.c:3239
+#: ../libgda-report/engine/gda-report-engine.c:608 ../tools/gda-sql.c:2983
+#: ../tools/gda-sql.c:3065 ../tools/gda-sql.c:3165 ../tools/gda-sql.c:3241
#, c-format
msgid "No connection named '%s' found"
msgstr "Nenalezeno žádné pÅ?ipojenà pojmenované â??%sâ??"
@@ -3355,8 +3358,8 @@ msgstr "Neznámo"
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c:167
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c:182
#: ../libgda-ui/gdaui-basic-form.c:717 ../libgda-ui/gdaui-basic-form.c:753
-#: ../libgda-ui/gdaui-raw-grid.c:740 ../tools/gda-sql.c:2658
-#: ../tools/gda-sql.c:2833 ../tools/gda-sql.c:4013
+#: ../libgda-ui/gdaui-raw-grid.c:740 ../tools/gda-sql.c:2660
+#: ../tools/gda-sql.c:2835 ../tools/gda-sql.c:4015
msgid "Value"
msgstr "Hodnota"
@@ -3790,10 +3793,10 @@ msgstr "OmezenÃ"
msgid "Foreign keys"
msgstr "Cizà klÃÄ?e"
-#: ../libgda-ui/data/server_operation.glade.h:4 ../tools/gda-sql.c:1996
-#: ../tools/gda-sql.c:2095 ../tools/gda-sql.c:2107 ../tools/gda-sql.c:2119
-#: ../tools/gda-sql.c:2227 ../tools/gda-sql.c:2239 ../tools/gda-sql.c:2251
-#: ../tools/gda-sql.c:2445
+#: ../libgda-ui/data/server_operation.glade.h:4 ../tools/gda-sql.c:1998
+#: ../tools/gda-sql.c:2097 ../tools/gda-sql.c:2109 ../tools/gda-sql.c:2121
+#: ../tools/gda-sql.c:2229 ../tools/gda-sql.c:2241 ../tools/gda-sql.c:2253
+#: ../tools/gda-sql.c:2447
msgid "General"
msgstr "Obecné"
@@ -4423,7 +4426,7 @@ msgstr "Popis sloupce"
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:19
#: ../providers/sqlite/sqlite_specs_add_column.xml.in.h:5
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:19
-#: ../tools/command-exec.c:718 ../tools/web-server.c:928
+#: ../tools/command-exec.c:725 ../tools/web-server.c:928
msgid "Default"
msgstr "VýchozÃ"
@@ -4604,7 +4607,7 @@ msgstr "Typ Å?azenÃ"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:2
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:2
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:2
-#: ../tools/command-exec.c:581 ../tools/command-exec.c:584
+#: ../tools/command-exec.c:588 ../tools/command-exec.c:591
#: ../tools/web-server.c:898 ../tools/web-server.c:901
msgid "Auto increment"
msgstr "Automatické zvyÅ¡ovánÃ"
@@ -4655,7 +4658,7 @@ msgstr "Globálnà omezenÃ"
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:31
#: ../tools/browser/schema-browser/mgr-columns.c:375
#: ../tools/browser/schema-browser/table-columns.c:190
-#: ../tools/command-exec.c:809
+#: ../tools/command-exec.c:816
msgid "Primary key"
msgstr "Primárnà klÃÄ?"
@@ -4701,7 +4704,7 @@ msgstr "DoÄ?asná tabulka"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:73
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:42
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:42
-#: ../tools/command-exec.c:932
+#: ../tools/command-exec.c:939
msgid "Unique"
msgstr "JedineÄ?ný"
@@ -4921,8 +4924,8 @@ msgid ""
"at the end)."
msgstr ""
"Formát pÅ?ipojovacÃho Å?etÄ?zce byl zmÄ?nÄ?n: nahraÄ?te FILENAME (název souboru) "
-"za DB_DIR (cesta k databázovému souboru) a DB_NAME (soubor s databázà bez "
-"â??%sâ?? na konci)."
+"za DB_DIR (cesta k databázovému souboru) a DB_NAME (soubor s databázà bez â??%"
+"sâ?? na konci)."
#: ../providers/mdb/gda-mdb-provider.c:307
#, c-format
@@ -5561,7 +5564,7 @@ msgstr "Pevný"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:83
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:29
#: ../tools/browser/schema-browser/mgr-columns.c:381
-#: ../tools/command-exec.c:852
+#: ../tools/command-exec.c:859
msgid "Foreign key"
msgstr "Cizà klÃÄ?"
@@ -6893,7 +6896,7 @@ msgstr ""
msgid "Opened connections"
msgstr "OtevÅ?ená pÅ?ipojenÃ"
-#: ../tools/browser/browser-connections-list.c:354 ../tools/gda-sql.c:3090
+#: ../tools/browser/browser-connections-list.c:354 ../tools/gda-sql.c:3092
msgid "List of opened connections"
msgstr "Seznam otevÅ?ených pÅ?ipojenÃ"
@@ -8308,68 +8311,68 @@ msgstr ""
"Prostý formuláÅ? na testovánÃ\n"
"nastavenà datových záznamů"
-#: ../tools/command-exec.c:329
+#: ../tools/command-exec.c:336
msgid "History is not supported"
msgstr "Historie nenà podporována"
-#: ../tools/command-exec.c:342 ../tools/command-exec.c:378
-#: ../tools/command-exec.c:421 ../tools/command-exec.c:463
-#: ../tools/command-exec.c:596 ../tools/gda-sql.c:2992 ../tools/gda-sql.c:4125
-#: ../tools/gda-sql.c:4215 ../tools/gda-sql.c:4440 ../tools/gda-sql.c:4541
+#: ../tools/command-exec.c:349 ../tools/command-exec.c:385
+#: ../tools/command-exec.c:428 ../tools/command-exec.c:470
+#: ../tools/command-exec.c:603 ../tools/gda-sql.c:2994 ../tools/gda-sql.c:4127
+#: ../tools/gda-sql.c:4217 ../tools/gda-sql.c:4442 ../tools/gda-sql.c:4543
msgid "No current connection"
msgstr "Žádné aktuálnà pÅ?ipojenÃ"
-#: ../tools/command-exec.c:405
+#: ../tools/command-exec.c:412
msgid "List of tables"
msgstr "Seznam tabulek"
-#: ../tools/command-exec.c:447
+#: ../tools/command-exec.c:454
msgid "List of views"
msgstr "Seznam pohledů"
-#: ../tools/command-exec.c:487
+#: ../tools/command-exec.c:494
msgid "List of schemas"
msgstr "Seznam schémat"
-#: ../tools/command-exec.c:561 ../tools/command-exec.c:686
+#: ../tools/command-exec.c:568 ../tools/command-exec.c:693
msgid "No object found"
msgstr "Nebyl nalezen žádný objekt"
-#: ../tools/command-exec.c:640
+#: ../tools/command-exec.c:647
msgid "Schema"
msgstr "Schéma"
-#: ../tools/command-exec.c:715 ../tools/web-server.c:925
+#: ../tools/command-exec.c:722 ../tools/web-server.c:925
msgid "Column"
msgstr "Sloupec"
-#: ../tools/command-exec.c:717 ../tools/web-server.c:927
+#: ../tools/command-exec.c:724 ../tools/web-server.c:927
msgid "Nullable"
msgstr "Možno prázdný"
-#: ../tools/command-exec.c:719 ../tools/web-server.c:929
+#: ../tools/command-exec.c:726 ../tools/web-server.c:929
msgid "Extra"
msgstr "DoplÅ?ujÃcÃ"
-#: ../tools/command-exec.c:722
+#: ../tools/command-exec.c:729
#, c-format
msgid "List of columns for view '%s'"
msgstr "Seznam sloupců pro pohled â??%sâ??"
-#: ../tools/command-exec.c:726
+#: ../tools/command-exec.c:733
#, c-format
msgid "List of columns for table '%s'"
msgstr "Seznam sloupců pro tabulku â??%sâ??"
-#: ../tools/command-exec.c:738 ../tools/web-server.c:940
+#: ../tools/command-exec.c:745 ../tools/web-server.c:940
msgid "yes"
msgstr "ano"
-#: ../tools/command-exec.c:738 ../tools/web-server.c:940
+#: ../tools/command-exec.c:745 ../tools/web-server.c:940
msgid "no"
msgstr "ne"
-#: ../tools/command-exec.c:770
+#: ../tools/command-exec.c:777
#, c-format
msgid "View definition: %s"
msgstr "Definice pohledu: %s"
@@ -8500,61 +8503,61 @@ msgstr "Nelze interpretovat hodnotu parametru â??%sâ??"
msgid "No internal parameter named '%s' required by query"
msgstr "Žádný internà parametr s názvem â??%sâ?? požadovaný dotazem"
-#: ../tools/gda-sql.c:1147
+#: ../tools/gda-sql.c:1149
#, c-format
msgid "Can't open file '%s' for writing: %s\n"
msgstr "Nelze otevÅ?Ãt soubor â??%sâ?? pro zápis: %s\n"
-#: ../tools/gda-sql.c:1160
+#: ../tools/gda-sql.c:1162
#, c-format
msgid "Can't open pipe '%s': %s\n"
msgstr "Nelze otevÅ?Ãt rouru â??%sâ??: %s\n"
-#: ../tools/gda-sql.c:1199
+#: ../tools/gda-sql.c:1201
#, c-format
msgid "Can't open file '%s' for reading: %s\n"
msgstr "Nelze otevÅ?Ãt soubor â??%sâ?? pro Ä?tenÃ: %s\n"
-#: ../tools/gda-sql.c:1266 ../tools/gda-sql.c:3232
+#: ../tools/gda-sql.c:1268 ../tools/gda-sql.c:3234
#, c-format
msgid "Connection name '%s' is invalid"
msgstr "Název pÅ?ipojenà â??%sâ?? je neplatný"
-#: ../tools/gda-sql.c:1332
+#: ../tools/gda-sql.c:1334
#, c-format
msgid "\tUsername for '%s': "
msgstr "\tUživatelské jméno pro â??%sâ??:"
-#: ../tools/gda-sql.c:1339
+#: ../tools/gda-sql.c:1341
#, c-format
msgid "No username for '%s'"
msgstr "Žádné jméno uživatele pro â??%sâ??"
-#: ../tools/gda-sql.c:1354
+#: ../tools/gda-sql.c:1356
#, c-format
msgid "\tPassword for '%s': "
msgstr "\tHeslo pro â??%sâ??:"
-#: ../tools/gda-sql.c:1363
+#: ../tools/gda-sql.c:1365
#, c-format
msgid "No password for '%s'"
msgstr "Pro â??%sâ?? nenà žádné heslo"
-#: ../tools/gda-sql.c:1436
+#: ../tools/gda-sql.c:1438
#, c-format
msgid ""
-"All the meta data associated to the '%s' connection will be stored in the "
-"'%s' file\n"
+"All the meta data associated to the '%s' connection will be stored in the '%"
+"s' file\n"
msgstr ""
-"VÅ¡echna metadata vztahujÃcà se k pÅ?ipojenà â??%sâ?? budou uložena v souboru "
-"â??%sâ??\n"
+"VÅ¡echna metadata vztahujÃcà se k pÅ?ipojenà â??%sâ?? budou uložena v souboru â??%"
+"sâ??\n"
-#: ../tools/gda-sql.c:1464
+#: ../tools/gda-sql.c:1466
#, c-format
msgid "Error getting meta data in background: %s\n"
msgstr "Chyba zÃskávánà metadat na pozadÃ: %s\n"
-#: ../tools/gda-sql.c:1472 ../tools/gda-sql.c:1609
+#: ../tools/gda-sql.c:1474 ../tools/gda-sql.c:1611
#, c-format
msgid ""
"Getting database schema information for connection '%s', this may take some "
@@ -8563,17 +8566,17 @@ msgstr ""
"ZÃskávajà se informace o databázovém schématu pro pÅ?ipojenà â??%sâ??, to může "
"nÄ?jakou chvÃli trvatâ?¦"
-#: ../tools/gda-sql.c:1479 ../tools/gda-sql.c:1616 ../tools/gda-sql.c:3048
+#: ../tools/gda-sql.c:1481 ../tools/gda-sql.c:1618 ../tools/gda-sql.c:3050
#, c-format
msgid "error: %s\n"
msgstr "chyba: %s\n"
-#: ../tools/gda-sql.c:1486 ../tools/gda-sql.c:1623 ../tools/gda-sql.c:3055
+#: ../tools/gda-sql.c:1488 ../tools/gda-sql.c:1625 ../tools/gda-sql.c:3057
#, c-format
msgid "Done.\n"
msgstr "Hotovo.\n"
-#: ../tools/gda-sql.c:1750
+#: ../tools/gda-sql.c:1752
#, c-format
msgid "(%d row)"
msgid_plural "(%d rows)"
@@ -8581,315 +8584,315 @@ msgstr[0] "(%d Å?ádek)"
msgstr[1] "(%d Å?ádky)"
msgstr[2] "(%d Å?ádků)"
-#: ../tools/gda-sql.c:1852 ../tools/gda-sql.c:2872
+#: ../tools/gda-sql.c:1854 ../tools/gda-sql.c:2874
msgid "Installed providers list"
msgstr "Seznam instalovaných poskytovatelů"
-#: ../tools/gda-sql.c:1997 ../tools/gda-sql.c:2192 ../tools/gda-sql.c:2264
-#: ../tools/gda-sql.c:2276
+#: ../tools/gda-sql.c:1999 ../tools/gda-sql.c:2194 ../tools/gda-sql.c:2266
+#: ../tools/gda-sql.c:2278
#, c-format
msgid "%s [FILE]"
msgstr "%s [SOUBOR]"
-#: ../tools/gda-sql.c:1998
+#: ../tools/gda-sql.c:2000
msgid "Show commands history, or save it to file"
msgstr "Zobrazit historii pÅ?Ãkazů nebo ji uložit do souboru"
-#: ../tools/gda-sql.c:2008 ../tools/gda-sql.c:2020 ../tools/gda-sql.c:2032
-#: ../tools/gda-sql.c:2044 ../tools/gda-sql.c:2056 ../tools/gda-sql.c:2068
-#: ../tools/gda-sql.c:2081
+#: ../tools/gda-sql.c:2010 ../tools/gda-sql.c:2022 ../tools/gda-sql.c:2034
+#: ../tools/gda-sql.c:2046 ../tools/gda-sql.c:2058 ../tools/gda-sql.c:2070
+#: ../tools/gda-sql.c:2083
msgid "Information"
msgstr "Informace"
-#: ../tools/gda-sql.c:2009
+#: ../tools/gda-sql.c:2011
#, c-format
msgid "%s [META DATA TYPE]"
msgstr "%s [TYP_METADAT]"
-#: ../tools/gda-sql.c:2010
+#: ../tools/gda-sql.c:2012
msgid ""
"Force reading the database meta data (or part of the meta data, ex:\"tables"
"\")"
msgstr "Vynucené Ä?tenà metadat databáze (nebo Ä?ásti metadat, napÅ?. \"tables\")"
-#: ../tools/gda-sql.c:2021
+#: ../tools/gda-sql.c:2023
#, c-format
msgid "%s [TABLE]"
msgstr "%s [TABULKA]"
-#: ../tools/gda-sql.c:2022
+#: ../tools/gda-sql.c:2024
msgid "List all tables (or named table)"
msgstr "Vypsat všechny tabulky (nebo tabulku zadanou názvem)"
-#: ../tools/gda-sql.c:2033
+#: ../tools/gda-sql.c:2035
#, c-format
msgid "%s [VIEW]"
msgstr "%s [POHLED]"
-#: ../tools/gda-sql.c:2034
+#: ../tools/gda-sql.c:2036
msgid "List all views (or named view)"
msgstr "Vypsat všechny pohledy (nebo pohled zadaný názvem)"
-#: ../tools/gda-sql.c:2045
+#: ../tools/gda-sql.c:2047
#, c-format
msgid "%s [SCHEMA]"
msgstr "%s [SCHÃ?MA]"
-#: ../tools/gda-sql.c:2046
+#: ../tools/gda-sql.c:2048
msgid "List all schemas (or named schema)"
msgstr "Vypsat všechna schémata (nebo schéma zadané názvem)"
-#: ../tools/gda-sql.c:2057
+#: ../tools/gda-sql.c:2059
#, c-format
msgid "%s [OBJ_NAME|SCHEMA.*]"
msgstr "%s [NÃ?ZEV_OBJEKTU|SCHÃ?MA.*]"
-#: ../tools/gda-sql.c:2058
+#: ../tools/gda-sql.c:2060
msgid "Describe object or full list of objects"
msgstr "Popsat objekt nebo vypsat úplný seznam objektů"
-#: ../tools/gda-sql.c:2069
+#: ../tools/gda-sql.c:2071
#, c-format
msgid "%s [TABLE1 [TABLE2...]]"
msgstr "%s [TABULKA1 [TABULKA2â?¦]]"
-#: ../tools/gda-sql.c:2070
+#: ../tools/gda-sql.c:2072
msgid "Create a graph of all or the listed tables"
msgstr "VytvoÅ?it graf vÅ¡ech nebo uvedených tabulek"
-#: ../tools/gda-sql.c:2082
+#: ../tools/gda-sql.c:2084
#, c-format
msgid "%s [port [authentication token]]"
msgstr "%s [port [ovÄ?Å?ovacà peÅ¡ek]]"
-#: ../tools/gda-sql.c:2083
+#: ../tools/gda-sql.c:2085
msgid "Start/stop embedded HTTP server (on given port or on 12345 by default)"
msgstr ""
"Spustit/zastavit zabudovaný server HTTP (na zadaném portu nebo výchozÃm "
"portu 12345)"
-#: ../tools/gda-sql.c:2096
+#: ../tools/gda-sql.c:2098
#, c-format
msgid "%s [CNC_NAME [DSN|CONNECTION STRING]]"
msgstr "%s [NÃ?ZEV_PÅ?IP [DSN|PÅ?IPOJOVACÃ? Å?ETÄ?ZEC]]"
-#: ../tools/gda-sql.c:2097
+#: ../tools/gda-sql.c:2099
msgid "Opens a new connection or lists opened connections"
msgstr "OtevÅ?e nové pÅ?ipojenà nebo vypÃÅ¡e otevÅ?ená pÅ?ipojenÃ"
-#: ../tools/gda-sql.c:2108
+#: ../tools/gda-sql.c:2110
#, c-format
msgid "%s [CNC_NAME]"
msgstr "%s [NÃ?ZEV_PÅ?IP]"
-#: ../tools/gda-sql.c:2109
+#: ../tools/gda-sql.c:2111
msgid "Close a connection"
msgstr "ZavÅ?Ãt pÅ?ipojenÃ"
-#: ../tools/gda-sql.c:2120
+#: ../tools/gda-sql.c:2122
#, c-format
msgid "%s CNC_NAME CNC_NAME1 CNC_NAME2 [CNC_NAME ...]"
msgstr "%s NÃ?ZEV_PÅ?IP NÃ?ZEV1_PÅ?IP NÃ?ZEV2_PÅ?IP [NÃ?ZEV_PÅ?IP â?¦]"
-#: ../tools/gda-sql.c:2121
+#: ../tools/gda-sql.c:2123
msgid "Bind several connections together into the CNC_NAME virtual connection"
msgstr "Svázat nÄ?kolik pÅ?ipojenà spoleÄ?nÄ? do virtuálnÃho pÅ?ipojenà NÃ?ZEV_PÅ?IP"
-#: ../tools/gda-sql.c:2131 ../tools/gda-sql.c:2143 ../tools/gda-sql.c:2155
-#: ../tools/gda-sql.c:2167
+#: ../tools/gda-sql.c:2133 ../tools/gda-sql.c:2145 ../tools/gda-sql.c:2157
+#: ../tools/gda-sql.c:2169
msgid "DSN (data sources) management"
msgstr "Správa DSN (zdrojů dat)"
-#: ../tools/gda-sql.c:2132
+#: ../tools/gda-sql.c:2134
#, c-format
msgid "%s [DSN]"
msgstr "%s [DSN]"
-#: ../tools/gda-sql.c:2133
+#: ../tools/gda-sql.c:2135
msgid "List all DSN (or named DSN's attributes)"
msgstr "Vypsat všechny DSN (nebo atributy DSN zadaného názvem)"
-#: ../tools/gda-sql.c:2144
+#: ../tools/gda-sql.c:2146
#, c-format
msgid "%s DSN_NAME DSN_DEFINITION [DESCRIPTION]"
msgstr "%s NÃ?ZEV_DSN DEFINICE_DSN [POPIS]"
-#: ../tools/gda-sql.c:2145
+#: ../tools/gda-sql.c:2147
msgid "Create (or modify) a DSN"
msgstr "VytvoÅ?it (nebo zmÄ?nit) DSN"
-#: ../tools/gda-sql.c:2156
+#: ../tools/gda-sql.c:2158
#, c-format
msgid "%s DSN_NAME [DSN_NAME...]"
msgstr "%s NÃ?ZEV_DSN [NÃ?ZEV_DSNâ?¦]"
-#: ../tools/gda-sql.c:2157
+#: ../tools/gda-sql.c:2159
msgid "Remove a DSN"
msgstr "Odstranit DSN"
-#: ../tools/gda-sql.c:2168
+#: ../tools/gda-sql.c:2170
#, c-format
msgid "%s [PROVIDER]"
msgstr "%s [POSKYTOVATEL]"
-#: ../tools/gda-sql.c:2169
+#: ../tools/gda-sql.c:2171
msgid "List all installed database providers (or named one's attributes)"
msgstr ""
"Vypsat všechny instalované databázové poskytovatele (nebo atributy zadaného "
"názvem)"
-#: ../tools/gda-sql.c:2179 ../tools/gda-sql.c:2191 ../tools/gda-sql.c:2203
-#: ../tools/gda-sql.c:2215
+#: ../tools/gda-sql.c:2181 ../tools/gda-sql.c:2193 ../tools/gda-sql.c:2205
+#: ../tools/gda-sql.c:2217
msgid "Input/Output"
msgstr "Vstup/výstup"
-#: ../tools/gda-sql.c:2180 ../tools/gda-sql.c:2312
+#: ../tools/gda-sql.c:2182 ../tools/gda-sql.c:2314
#, c-format
msgid "%s FILE"
msgstr "%s SOUBOR"
-#: ../tools/gda-sql.c:2181
+#: ../tools/gda-sql.c:2183
msgid "Execute commands from file"
msgstr "Provést pÅ?Ãkazy ze souboru"
-#: ../tools/gda-sql.c:2193
+#: ../tools/gda-sql.c:2195
msgid "Send output to a file or |pipe"
msgstr "Poslat výstup do souboru nebo |roury"
-#: ../tools/gda-sql.c:2204 ../tools/gda-sql.c:2216
+#: ../tools/gda-sql.c:2206 ../tools/gda-sql.c:2218
#, c-format
msgid "%s [TEXT]"
msgstr "%s [TEXT]"
-#: ../tools/gda-sql.c:2205
+#: ../tools/gda-sql.c:2207
msgid "Send output to stdout"
msgstr "Poslat výstup na standardnà výstup"
-#: ../tools/gda-sql.c:2217
+#: ../tools/gda-sql.c:2219
msgid "Send output to output stream"
msgstr "Poslat výstup do výstupnÃho proudu"
-#: ../tools/gda-sql.c:2229
+#: ../tools/gda-sql.c:2231
msgid "Quit"
msgstr "UkonÄ?it"
-#: ../tools/gda-sql.c:2240
+#: ../tools/gda-sql.c:2242
#, c-format
msgid "%s [DIR]"
msgstr "%s [SLOŽKA]"
-#: ../tools/gda-sql.c:2241
+#: ../tools/gda-sql.c:2243
msgid "Change the current working directory"
msgstr "ZmÄ?nit souÄ?asnou pracovnà složku"
-#: ../tools/gda-sql.c:2253
+#: ../tools/gda-sql.c:2255
msgid "Show usage and distribution terms"
msgstr "Zobrazit podmÃnky použÃvánà a Å¡ÃÅ?enÃ"
-#: ../tools/gda-sql.c:2263 ../tools/gda-sql.c:2275 ../tools/gda-sql.c:2287
-#: ../tools/gda-sql.c:2299 ../tools/gda-sql.c:2311 ../tools/gda-sql.c:2323
-#: ../tools/gda-sql.c:2335 ../tools/gda-sql.c:2347 ../tools/gda-sql.c:2359
-#: ../tools/gda-sql.c:2371 ../tools/gda-sql.c:2383 ../tools/gda-sql.c:2420
-#: ../tools/gda-sql.c:2432
+#: ../tools/gda-sql.c:2265 ../tools/gda-sql.c:2277 ../tools/gda-sql.c:2289
+#: ../tools/gda-sql.c:2301 ../tools/gda-sql.c:2313 ../tools/gda-sql.c:2325
+#: ../tools/gda-sql.c:2337 ../tools/gda-sql.c:2349 ../tools/gda-sql.c:2361
+#: ../tools/gda-sql.c:2373 ../tools/gda-sql.c:2385 ../tools/gda-sql.c:2422
+#: ../tools/gda-sql.c:2434
msgid "Query buffer"
msgstr "PamÄ?Å¥ dotazů"
-#: ../tools/gda-sql.c:2265
+#: ../tools/gda-sql.c:2267
msgid "Edit the query buffer (or file) with external editor"
msgstr "Upravit pamÄ?Å¥ dotazů (nebo soubor) v externÃm editoru"
-#: ../tools/gda-sql.c:2277
+#: ../tools/gda-sql.c:2279
msgid "Reset the query buffer (fill buffer with contents of file)"
msgstr "Znovu nastavit pamÄ?Å¥ dotazů (vyplnit ji obsahem souboru)"
-#: ../tools/gda-sql.c:2289
+#: ../tools/gda-sql.c:2291
msgid "Show the contents of the query buffer"
msgstr "Zobrazit obsah pamÄ?ti dotazů"
-#: ../tools/gda-sql.c:2300
+#: ../tools/gda-sql.c:2302
#, c-format
msgid "%s [QUERY_BUFFER_NAME]"
msgstr "%s [NÃ?ZEV_PAMÄ?TI_DOTAZÅ®]"
-#: ../tools/gda-sql.c:2301
+#: ../tools/gda-sql.c:2303
msgid "Execute contents of query buffer, or named query buffer"
msgstr "Provést obsah pamÄ?ti dotazů nebo pamÄ?ti dotazů zadané názvem"
-#: ../tools/gda-sql.c:2313
+#: ../tools/gda-sql.c:2315
msgid "Write query buffer to file"
msgstr "Zapsat pamÄ?Å¥ dotazů do souboru"
-#: ../tools/gda-sql.c:2324 ../tools/gda-sql.c:2336 ../tools/gda-sql.c:2348
+#: ../tools/gda-sql.c:2326 ../tools/gda-sql.c:2338 ../tools/gda-sql.c:2350
#, c-format
msgid "%s QUERY_BUFFER_NAME"
msgstr "%s NÃ?ZEV_PAMÄ?TI_DOTAZU"
-#: ../tools/gda-sql.c:2325
+#: ../tools/gda-sql.c:2327
msgid "Save query buffer to dictionary"
msgstr "Uložit pamÄ?Å¥ dotazů do slovnÃku"
-#: ../tools/gda-sql.c:2337
+#: ../tools/gda-sql.c:2339
msgid "Load query buffer from dictionary"
msgstr "NaÄ?Ãst pamÄ?Å¥ dotazů ze slovnÃku"
-#: ../tools/gda-sql.c:2349
+#: ../tools/gda-sql.c:2351
msgid "Delete query buffer from dictionary"
msgstr "Vymazat pamÄ?Å¥ dotazů ze slovnÃku"
-#: ../tools/gda-sql.c:2360
+#: ../tools/gda-sql.c:2362
#, c-format
msgid "%s"
msgstr "%s"
-#: ../tools/gda-sql.c:2361
+#: ../tools/gda-sql.c:2363
msgid "List all saved query buffers in dictionary"
msgstr "Vypsat vÅ¡echny pamÄ?ti dotazů uložené ve slovnÃku"
-#: ../tools/gda-sql.c:2372
+#: ../tools/gda-sql.c:2374
#, c-format
msgid "%s [NAME [VALUE|_null_]]"
msgstr "%s [NÃ?ZEV [HODNOTA|_null_]]"
-#: ../tools/gda-sql.c:2373
+#: ../tools/gda-sql.c:2375
msgid "Set or show internal parameter, or list all if no parameters"
msgstr ""
"Nastavit nebo zobrazit internà parametr a nebo je všechny vypsat, pokud nenà "
"žádný urÄ?en"
-#: ../tools/gda-sql.c:2384
+#: ../tools/gda-sql.c:2386
#, c-format
msgid "%s [NAME]"
msgstr "%s [NÃ?ZEV]"
-#: ../tools/gda-sql.c:2385
+#: ../tools/gda-sql.c:2387
msgid "Unset (delete) internal named parameter (or all parameters)"
msgstr ""
"Zrušit nastavenà (smazat) internà pojmenovaný parametr (nebo všechny "
"parametry)"
-#: ../tools/gda-sql.c:2395
+#: ../tools/gda-sql.c:2397
msgid "Formatting"
msgstr "FormátovánÃ"
-#: ../tools/gda-sql.c:2397
+#: ../tools/gda-sql.c:2399
msgid "Set output format"
msgstr "Nastavit výstupnà formát"
-#: ../tools/gda-sql.c:2421
+#: ../tools/gda-sql.c:2423
#, c-format
msgid "%s [NAME|TABLE COLUMN ROW_CONDITION] FILE"
msgstr "%s [NÃ?ZEV|TABULKA SLOUPEC PODMÃ?NKA_Å?Ã?DKU] SOUBOR"
-#: ../tools/gda-sql.c:2422
+#: ../tools/gda-sql.c:2424
msgid "Export internal parameter or table's value to the FILE file"
msgstr "Exportovat internà parametr nebo hodnotu tabulky do souboru SOUBOR"
-#: ../tools/gda-sql.c:2433
+#: ../tools/gda-sql.c:2435
#, c-format
msgid "%s NAME [FILE|TABLE COLUMN ROW_CONDITION]"
msgstr "%s NÃ?ZEV [SOUBOR|TABULKA SLOUPEC PODMÃ?NKA_Å?Ã?DKU]"
-#: ../tools/gda-sql.c:2434
+#: ../tools/gda-sql.c:2436
msgid ""
"Set internal parameter as the contents of the FILE file or from an existing "
"table's value"
@@ -8897,189 +8900,189 @@ msgstr ""
"Nastavit internà parametr na obsah souboru SOUBOR nebo existujÃcà hodnotu "
"tabulky"
-#: ../tools/gda-sql.c:2447
+#: ../tools/gda-sql.c:2449
msgid "List all available commands"
msgstr "Vypsat vÅ¡echny dostupné pÅ?Ãkazy"
-#: ../tools/gda-sql.c:2512
+#: ../tools/gda-sql.c:2514
#, c-format
msgid "Unknown output format: '%s', reset to default"
msgstr "Neznámý výstupnà formát: â??%sâ??, nastavuje se na výchozÃ"
-#: ../tools/gda-sql.c:2657 ../tools/gda-sql.c:2832
+#: ../tools/gda-sql.c:2659 ../tools/gda-sql.c:2834
msgid "Attribute"
msgstr "Atribut"
-#: ../tools/gda-sql.c:2660
+#: ../tools/gda-sql.c:2662
#, c-format
msgid "DSN '%s' description"
msgstr "Popis DSN â??%sâ??"
-#: ../tools/gda-sql.c:2688
+#: ../tools/gda-sql.c:2690
#, c-format
msgid "Could not find any DSN named '%s'"
msgstr "Nelze najÃt DSN pojmenovaný â??%sâ??"
-#: ../tools/gda-sql.c:2699
+#: ../tools/gda-sql.c:2701
msgid "DSN list"
msgstr "Seznam DSN"
-#: ../tools/gda-sql.c:2751 ../tools/gda-sql.c:4564
+#: ../tools/gda-sql.c:2753 ../tools/gda-sql.c:4566
msgid "Missing arguments"
msgstr "Scházà parametry"
-#: ../tools/gda-sql.c:2772
+#: ../tools/gda-sql.c:2774
msgid "Missing provider name"
msgstr "Scházà název poskytovatele"
-#: ../tools/gda-sql.c:2795
+#: ../tools/gda-sql.c:2797
msgid "Missing DSN name"
msgstr "Scházà název DSN"
-#: ../tools/gda-sql.c:2835
+#: ../tools/gda-sql.c:2837
#, c-format
msgid "Provider '%s' description"
msgstr "Popis poskytovatele â??%sâ??"
-#: ../tools/gda-sql.c:2863
+#: ../tools/gda-sql.c:2865
#, c-format
msgid "Could not find any provider named '%s'"
msgstr "Nelze nalézt žádného poskytovatele s názvem â??%sâ??"
-#: ../tools/gda-sql.c:2938 ../tools/gda-sql.c:3227
+#: ../tools/gda-sql.c:2940 ../tools/gda-sql.c:3229
#, c-format
msgid "A connection named '%s' already exists"
msgstr "PÅ?ipojenà s názvem â??%sâ?? již existuje"
-#: ../tools/gda-sql.c:3042
+#: ../tools/gda-sql.c:3044
#, c-format
msgid "Getting database schema information, this may take some time... "
msgstr ""
"ZÃskávajà se informace o databázovém schématu, to může nÄ?jakou chvÃli trvatâ?¦"
-#: ../tools/gda-sql.c:3077
+#: ../tools/gda-sql.c:3079
msgid "No opened connection"
msgstr "Žádné otevÅ?ené pÅ?ipojenÃ"
-#: ../tools/gda-sql.c:3088
+#: ../tools/gda-sql.c:3090
msgid "DSN or connection string"
msgstr "DSN nebo pÅ?ipojovacà Å?etÄ?zec"
-#: ../tools/gda-sql.c:3179
+#: ../tools/gda-sql.c:3181
msgid "No connection currently opened"
msgstr "V souÄ?asnosti nenà otevÅ?eno žádné pÅ?ipojenÃ"
-#: ../tools/gda-sql.c:3219
+#: ../tools/gda-sql.c:3221
msgid "Missing required connection names"
msgstr "Scházà názvy požadovaného pÅ?ipojenÃ"
#. add existing connections to virtual connection
-#: ../tools/gda-sql.c:3256
+#: ../tools/gda-sql.c:3258
msgid "Bound connections are as:"
msgstr "Návazná pÅ?ipojenà jsou:"
-#: ../tools/gda-sql.c:3359
+#: ../tools/gda-sql.c:3361
#, c-format
msgid "Could not get home directory: %s"
msgstr "Nelze zÃskat domovskou složku: %s"
-#: ../tools/gda-sql.c:3385
+#: ../tools/gda-sql.c:3387
#, c-format
msgid "Working directory is now: %s"
msgstr "Pracovnà složka je nynÃ: %s"
-#: ../tools/gda-sql.c:3389
+#: ../tools/gda-sql.c:3391
#, c-format
msgid "Could not change working directory to '%s': %s"
msgstr "Nelze zmÄ?nit pracovnà složku na â??%sâ??: %s"
-#: ../tools/gda-sql.c:3416 ../tools/gda-sql.c:3519 ../tools/gda-sql.c:3562
-#: ../tools/gda-sql.c:3591 ../tools/gda-sql.c:3632 ../tools/gda-sql.c:3683
-#: ../tools/gda-sql.c:3736 ../tools/gda-sql.c:3827 ../tools/gda-sql.c:3899
+#: ../tools/gda-sql.c:3418 ../tools/gda-sql.c:3521 ../tools/gda-sql.c:3564
+#: ../tools/gda-sql.c:3593 ../tools/gda-sql.c:3634 ../tools/gda-sql.c:3685
+#: ../tools/gda-sql.c:3738 ../tools/gda-sql.c:3829 ../tools/gda-sql.c:3901
msgid "No connection opened"
msgstr "Nenà otevÅ?eno žádné pÅ?ipojenÃ"
-#: ../tools/gda-sql.c:3434
+#: ../tools/gda-sql.c:3436
#, c-format
msgid "Could not write to temporary file '%s': %s"
msgstr "Nelze zapsat do doÄ?asného souboru â??%sâ??: %s"
-#: ../tools/gda-sql.c:3470
+#: ../tools/gda-sql.c:3472
#, c-format
msgid "could not start editor '%s'"
msgstr "nelze spustit editor â??%sâ??"
-#: ../tools/gda-sql.c:3475
+#: ../tools/gda-sql.c:3477
#, c-format
msgid "Could not start /bin/sh"
msgstr "Nelze spustit /bin/sh"
-#: ../tools/gda-sql.c:3640
+#: ../tools/gda-sql.c:3642
msgid "Missing FILE to write to"
msgstr "Scházà SOUBOR, do kterého se má zapisovat"
-#: ../tools/gda-sql.c:3692 ../tools/gda-sql.c:3758 ../tools/gda-sql.c:3840
-#: ../tools/gda-sql.c:3912
+#: ../tools/gda-sql.c:3694 ../tools/gda-sql.c:3760 ../tools/gda-sql.c:3842
+#: ../tools/gda-sql.c:3914
msgid "Can't initialize dictionary to store query buffers"
msgstr "Nelze inicializovat slovnÃk pro uchovánà pamÄ?tà dotazů"
-#: ../tools/gda-sql.c:3711
+#: ../tools/gda-sql.c:3713
msgid "Query buffer name"
msgstr "Název pamÄ?ti dotazů"
-#: ../tools/gda-sql.c:3712
+#: ../tools/gda-sql.c:3714
msgid "SQL"
msgstr "SQL"
-#: ../tools/gda-sql.c:3749 ../tools/gda-sql.c:3878 ../tools/gda-sql.c:3939
+#: ../tools/gda-sql.c:3751 ../tools/gda-sql.c:3880 ../tools/gda-sql.c:3941
msgid "Missing query buffer name"
msgstr "Scházà název pamÄ?ti dotazů"
-#: ../tools/gda-sql.c:3806
+#: ../tools/gda-sql.c:3808
msgid "Query buffer is empty"
msgstr "PamÄ?Å¥ dotazů je prázdná"
-#: ../tools/gda-sql.c:3873
+#: ../tools/gda-sql.c:3875
#, c-format
msgid "Could not find query buffer named '%s'"
msgstr "Nelze najÃt pamÄ?Å¥ dotazů s názvem â??%sâ??"
-#: ../tools/gda-sql.c:4003 ../tools/gda-sql.c:4253 ../tools/gda-sql.c:4331
+#: ../tools/gda-sql.c:4005 ../tools/gda-sql.c:4255 ../tools/gda-sql.c:4333
#, c-format
msgid "No parameter named '%s' defined"
msgstr "Nenà definován žádný parametr s názvem â??%sâ??"
-#: ../tools/gda-sql.c:4014
+#: ../tools/gda-sql.c:4016
msgid "List of defined parameters"
msgstr "Seznam definovaných parametrů"
-#: ../tools/gda-sql.c:4070 ../tools/gda-sql.c:4592
+#: ../tools/gda-sql.c:4072 ../tools/gda-sql.c:4594
msgid "Wrong row condition"
msgstr "Nesprávná podmÃnka Å?ádku"
-#: ../tools/gda-sql.c:4098
+#: ../tools/gda-sql.c:4100
msgid "No unique row identified"
msgstr "Nebyl zjiÅ¡tÄ?n žádný jedineÄ?ný Å?ádek"
-#: ../tools/gda-sql.c:4139 ../tools/gda-sql.c:4231 ../tools/gda-sql.c:4555
+#: ../tools/gda-sql.c:4141 ../tools/gda-sql.c:4233 ../tools/gda-sql.c:4557
#, c-format
msgid "Too many arguments"
msgstr "PÅ?ÃliÅ¡ mnoho parametrů"
-#: ../tools/gda-sql.c:4187 ../tools/gda-sql.c:4259
+#: ../tools/gda-sql.c:4189 ../tools/gda-sql.c:4261
msgid "Wrong number of arguments"
msgstr "Nesprávný poÄ?et parametrů"
-#: ../tools/gda-sql.c:4271 ../tools/gda-sql.c:4285
+#: ../tools/gda-sql.c:4273 ../tools/gda-sql.c:4287
msgid "Could not write file"
msgstr "Nelze zapsat soubor"
-#: ../tools/gda-sql.c:4410
+#: ../tools/gda-sql.c:4412
#, c-format
msgid "Graph written to '%s'\n"
msgstr "Graf zapsán do â??%sâ??\n"
-#: ../tools/gda-sql.c:4413
+#: ../tools/gda-sql.c:4415
#, c-format
msgid ""
"Graph written to '%s'\n"
@@ -9094,23 +9097,23 @@ msgstr ""
"Poznámka: pro zobrazenà grafu nastavte promÄ?nnou prostÅ?edà "
"GDA_SQL_VIEWER_PNG nebo GDA_SQL_VIEWER_PDF\n"
-#: ../tools/gda-sql.c:4484
+#: ../tools/gda-sql.c:4486
msgid "HTTPD server stopped"
msgstr "Server HTTPD zastaven"
-#: ../tools/gda-sql.c:4503
+#: ../tools/gda-sql.c:4505
msgid "Could not start HTTPD server"
msgstr "Nelze spustit server HTTPD"
-#: ../tools/gda-sql.c:4507
+#: ../tools/gda-sql.c:4509
msgid "HTTPD server started"
msgstr "Server HTTPD spuÅ¡tÄ?n"
-#: ../tools/gda-sql.c:4512
+#: ../tools/gda-sql.c:4514
msgid "Invalid port specification"
msgstr "Neplatné zadánà portu"
-#: ../tools/gda-sql.c:4726
+#: ../tools/gda-sql.c:4728
#, c-format
msgid "Command is incomplete"
msgstr "PÅ?Ãkaz je neúplný"
@@ -9233,3 +9236,4 @@ msgstr "Objekty"
#: ../tools/web-server.c:1882
msgid "Triggers"
msgstr "Triggery"
+
diff --git a/po/id.po b/po/id.po
index 2898571..a5f3a7d 100644
--- a/po/id.po
+++ b/po/id.po
@@ -8,8 +8,8 @@ msgstr ""
"Project-Id-Version: libgda master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=libgda&component=general\n"
-"POT-Creation-Date: 2010-09-22 13:36+0000\n"
-"PO-Revision-Date: 2010-09-23 17:31+0700\n"
+"POT-Creation-Date: 2010-09-29 17:23+0000\n"
+"PO-Revision-Date: 2010-09-30 12:48+0700\n"
"Last-Translator: Andika Triwidada <andika gmail com>\n"
"Language-Team: GNOME Indonesian Translation Team <gnome i15n org>\n"
"MIME-Version: 1.0\n"
@@ -108,12 +108,12 @@ msgstr "Tak bisa mengeksekusi program peramban"
#: ../libgda/gda-server-operation.c:614 ../libgda/gda-server-operation.c:1005
#: ../libgda/gda-set.c:559 ../libgda/gda-tree-mgr-select.c:188
#: ../libgda/gda-tree-mgr-select.c:220
-#: ../libgda/sqlite/gda-sqlite-provider.c:2130
-#: ../libgda/sqlite/gda-sqlite-provider.c:2142
-#: ../libgda/sqlite/gda-sqlite-provider.c:2164
-#: ../libgda/sqlite/gda-sqlite-provider.c:2354
-#: ../libgda/sqlite/gda-sqlite-provider.c:2639
-#: ../libgda/sqlite/gda-sqlite-provider.c:2651
+#: ../libgda/sqlite/gda-sqlite-provider.c:2198
+#: ../libgda/sqlite/gda-sqlite-provider.c:2210
+#: ../libgda/sqlite/gda-sqlite-provider.c:2232
+#: ../libgda/sqlite/gda-sqlite-provider.c:2422
+#: ../libgda/sqlite/gda-sqlite-provider.c:2707
+#: ../libgda/sqlite/gda-sqlite-provider.c:2719
#: ../libgda/thread-wrapper/gda-thread-provider.c:454
#: ../libgda-ui/data-entries/common-bin.c:79
#: ../libgda-ui/data-entries/common-bin.c:156
@@ -179,8 +179,8 @@ msgstr "Tak bisa mengeksekusi program peramban"
#: ../tools/browser/schema-browser/table-preferences.c:772
#: ../tools/gda-list-server-op.c:47 ../tools/gda-list-server-op.c:90
#: ../tools/gda-sql.c:269 ../tools/gda-sql.c:286 ../tools/gda-sql.c:425
-#: ../tools/gda-sql.c:1465 ../tools/gda-sql.c:1480 ../tools/gda-sql.c:1617
-#: ../tools/gda-sql.c:3049 ../tools/tools-input.c:129
+#: ../tools/gda-sql.c:1467 ../tools/gda-sql.c:1482 ../tools/gda-sql.c:1619
+#: ../tools/gda-sql.c:3051 ../tools/tools-input.c:129
#: ../tools/web-server.c:2018
msgid "No detail"
msgstr "Tak ada rincian"
@@ -334,9 +334,8 @@ msgid "Data source _name:"
msgstr "_Nama sumber data:"
#: ../control-center/gdaui-dsn-editor.c:153
-#, fuzzy
msgid "_System wide data source:"
-msgstr "Sumber data seluruh sistem:"
+msgstr "_Sumber data seluruh sistem:"
#: ../control-center/gdaui-dsn-editor.c:165
msgid "_Provider:"
@@ -352,6 +351,9 @@ msgid ""
"available,\n"
"editing the data source's attributes is disabled</span>"
msgstr ""
+"<span foreground='red'>Penyedia basis data yang dipakai oleh sumber data ini "
+"tak tersedia,\n"
+"penyuntingan atribut sumber data dimatikan</span>"
#. connection's authentication
#: ../control-center/gdaui-dsn-editor.c:223 ../libgda/gda-config.c:1337
@@ -417,7 +419,7 @@ msgstr ""
#: ../libgda/gda-batch.c:316
msgid "Statement could not be found in batch's statements"
-msgstr ""
+msgstr "Statement tak dapat ditemukan di statement batch"
#: ../libgda/gda-batch.c:441
#, c-format
@@ -427,42 +429,42 @@ msgstr "Parameter bertentangan '%s'"
#: ../libgda/gda-config.c:264 ../libgda/gda-config.c:382
#, c-format
msgid "Error loading authentification information for '%s' DSN: %s"
-msgstr ""
+msgstr "Galat saat memuat informasi otentikasi bagi '%s' DSN: %s"
#: ../libgda/gda-config.c:542
#, c-format
msgid "Error creating user specific configuration directory '%s'"
-msgstr ""
+msgstr "Galat saat membuat direktori konfigurasi spesifik pengguna '%s'"
#: ../libgda/gda-config.c:591 ../libgda/gda-config.c:604
#, c-format
msgid ""
"User specific configuration directory '%s' exists and is not a directory"
-msgstr ""
+msgstr "Direktori konfigurasi spesifik pengguna '%s' ada dan bukan direktori"
#: ../libgda/gda-config.c:818
#, c-format
msgid "Malformed data source name '%s'"
-msgstr ""
+msgstr "Nama sumber data '%s' salah bentuk"
#: ../libgda/gda-config.c:842
#, c-format
msgid "Couldn't save authentification information for DSN '%s': %s"
-msgstr ""
+msgstr "Tak bisa menyimpan informasi otentikasi bagi DSN '%s': %s"
#: ../libgda/gda-config.c:874 ../libgda/gda-config.c:1002
msgid "Can't manage system-wide configuration"
-msgstr ""
+msgstr "Tak bisa mengelola konfigurasi yang berlaku pada seluruh sistem"
#: ../libgda/gda-config.c:929
#, c-format
msgid "Authentification for the '%s' DSN"
-msgstr ""
+msgstr "Otentikasi bagi DSN '%s'"
#: ../libgda/gda-config.c:964
#, c-format
msgid "Couldn't delete authentication information for DSN '%s': %s"
-msgstr ""
+msgstr "Tak bisa menghapus informasi otentikasi bagi DSN '%s': %s"
#: ../libgda/gda-config.c:996 ../libgda-ui/gdaui-login.c:632
#, c-format
@@ -488,11 +490,11 @@ msgstr "Tak bisa memuat penyedia: %s"
#: ../libgda/gda-config.c:1290
#, c-format
msgid "Can't instantiate provider '%s'"
-msgstr ""
+msgstr "Tak bisa menginstansikan penyedia '%s'"
#: ../libgda/gda-config.c:1334 ../libgda/gda-data-model-dsn-list.c:111
-#: ../libgda/gda-data-model-dsn-list.c:112 ../tools/gda-sql.c:1850
-#: ../tools/gda-sql.c:2698 ../tools/gda-sql.c:2870 ../tools/gda-sql.c:3087
+#: ../libgda/gda-data-model-dsn-list.c:112 ../tools/gda-sql.c:1852
+#: ../tools/gda-sql.c:2700 ../tools/gda-sql.c:2872 ../tools/gda-sql.c:3089
msgid "Provider"
msgstr "Penyedia"
@@ -501,7 +503,7 @@ msgstr "Penyedia"
#: ../libgda/gda-server-provider-extra.c:382
#: ../libgda/gda-server-provider-extra.c:405
#: ../tools/browser/data-manager/data-source-editor.c:130
-#: ../tools/gda-sql.c:1851 ../tools/gda-sql.c:2697 ../tools/gda-sql.c:2871
+#: ../tools/gda-sql.c:1853 ../tools/gda-sql.c:2699 ../tools/gda-sql.c:2873
msgid "Description"
msgstr "Keterangan"
@@ -518,7 +520,7 @@ msgid "List of installed providers"
msgstr "Daftar penyedia terpasang"
#: ../libgda/gda-config.c:1503 ../libgda/gda-data-model-dsn-list.c:131
-#: ../libgda/gda-data-model-dsn-list.c:132 ../tools/gda-sql.c:3089
+#: ../libgda/gda-data-model-dsn-list.c:132 ../tools/gda-sql.c:3091
msgid "Username"
msgstr "Nama pengguna"
@@ -575,69 +577,75 @@ msgid ""
"Unique GThread from which the connection will be available.This should only "
"be modified by the database providers' implementation"
msgstr ""
+"GThread unik tempat koneksi akan tersedia. Ini mestinya hanya diubah oleh "
+"implementasi penyedia basis data."
#: ../libgda/gda-connection.c:343
msgid ""
"Tells if the connection acts as a thread wrapper around another connection, "
"making it completely thread safe"
msgstr ""
+"Memberitahu bila koneksi berperan sebagai pembungkus thread atas koneksi "
+"lain, membuatnya aman thread (thread safe) secara lengkap."
#: ../libgda/gda-connection.c:358
msgid ""
"Make the connection set up a monitoring function in the mainloop to monitor "
"the wrapped connection"
msgstr ""
+"Membuat koneksi menyiapkan fungsi pemantauan pada loop utama untuk memantau "
+"koneksi yang dibungkus"
#: ../libgda/gda-connection.c:645 ../libgda/gda-connection.c:673
#: ../libgda/gda-connection.c:687 ../libgda/gda-connection.c:702
#, c-format
msgid "Could not set the '%s' property when the connection is opened"
-msgstr ""
+msgstr "Tak bisa menata properti '%s' ketika koneksi dibuka"
#: ../libgda/gda-connection.c:653
#, c-format
msgid "No DSN named '%s' defined"
-msgstr ""
+msgstr "DSN bernama '%s' tak didefinisikan"
#: ../libgda/gda-connection.c:723
#, c-format
msgid "Can't set the '%s' property once the connection is opened"
-msgstr ""
+msgstr "Tak bisa menata properti '%s' begitu koneksi telah dibuka"
#: ../libgda/gda-connection.c:961 ../libgda/gda-connection.c:1114
#: ../libgda/thread-wrapper/gda-thread-provider.c:428
#: ../libgda/thread-wrapper/gda-thread-provider.c:513
msgid "Multi threading is not supported or enabled"
-msgstr ""
+msgstr "Multi threading tak didukung atau diaktifkan"
#: ../libgda/gda-connection.c:970
#, c-format
msgid "Malformed data source specification '%s'"
-msgstr ""
+msgstr "Spesifikasi sumber data '%s' salah bentuk"
#: ../libgda/gda-connection.c:978 ../libgda/gda-connection.c:1361
#: ../libgda/gda-connection.c:1363
#, c-format
msgid "Data source %s not found in configuration"
-msgstr ""
+msgstr "Sumber data %s tak ditemukan di konfigurasi"
#: ../libgda/gda-connection.c:1044
msgid "Datasource configuration error: no provider specified"
-msgstr ""
+msgstr "Galat konfigurasi sumber data: penyedia tak dinyatakan"
#: ../libgda/gda-connection.c:1124 ../tools/browser/auth-dialog.c:417
-#: ../tools/browser/auth-dialog.c:453 ../tools/gda-sql.c:1309
+#: ../tools/browser/auth-dialog.c:453 ../tools/gda-sql.c:1311
#, c-format
msgid "Malformed connection string '%s'"
-msgstr ""
+msgstr "String koneksi '%s' salah bentuk"
#: ../libgda/gda-connection.c:1130 ../libgda/gda-connection.c:1385
msgid "No provider specified"
-msgstr ""
+msgstr "Penyedia tak dinyatakan"
#: ../libgda/gda-connection.c:1373 ../libgda/gda-connection.c:1375
msgid "No DSN or connection string specified"
-msgstr ""
+msgstr "String koneksi atau DSN tak dinyatakan"
#: ../libgda/gda-connection.c:1405
msgid "Provider does not allow usage from this thread"
@@ -678,7 +686,7 @@ msgstr "Sambungan tertutup"
msgid "Can't find task %u"
msgstr "Tak menemukan tugas %u"
-#: ../libgda/gda-connection.c:2553 ../libgda/sqlite/gda-sqlite-provider.c:1028
+#: ../libgda/gda-connection.c:2553 ../libgda/sqlite/gda-sqlite-provider.c:1096
#: ../libgda/thread-wrapper/gda-thread-provider.c:917
#: ../providers/jdbc/gda-jdbc-provider.c:575
#: ../providers/mysql/gda-mysql-provider.c:963
@@ -693,8 +701,9 @@ msgstr ""
#: ../libgda/gda-connection.c:2812 ../libgda/gda-connection.c:2888
#: ../libgda/gda-connection.c:2958
+#, fuzzy
msgid "Statement is not a selection statement"
-msgstr ""
+msgstr "Parameter '%s' tak ditemukan dalam statement"
#: ../libgda/gda-connection.c:3417
msgid "Invalid argument"
@@ -737,7 +746,7 @@ msgstr ""
#: ../libgda-ui/gdaui-combo.c:789
#, c-format
msgid "Column %d out of range (0-%d)"
-msgstr ""
+msgstr "Kolom %d diluar cakupan (0-%d)"
#: ../libgda/gda-data-access-wrapper.c:519
msgid "Can't set iterator's position"
@@ -792,7 +801,7 @@ msgstr ""
#: ../libgda/gda-data-select.c:1703
#, c-format
msgid "Row %d out of range (0-%d)"
-msgstr ""
+msgstr "Baris %d diluar cakupan (0-%d)"
#: ../libgda/gda-data-model-array.c:392 ../libgda/gda-data-model-array.c:538
#: ../libgda/gda-data-model-array.c:625 ../libgda/gda-data-model-dir.c:790
@@ -802,7 +811,7 @@ msgstr ""
#: ../libgda/gda-data-select.c:1706
#, c-format
msgid "Row %d not found (empty data model)"
-msgstr ""
+msgstr "Baris %d tak ditemukan (model data kosong)"
#: ../libgda/gda-data-model-array.c:528
msgid "No row in data model"
@@ -837,7 +846,7 @@ msgstr ""
#: ../libgda/gda-data-model-bdb.c:294 ../libgda/gda-data-model-bdb.c:365
msgid "Berkeley DB library not loaded"
-msgstr ""
+msgstr "Pustaka Berkeley DB tak dimuat"
#: ../libgda/gda-data-model-bdb.c:690 ../libgda/gda-data-model-bdb.c:723
#: ../libgda/gda-data-model-bdb.c:827 ../libgda/gda-data-model-bdb.c:915
@@ -912,7 +921,7 @@ msgstr "Berkas '%s' sudah ada"
#: ../libgda/gda-data-model.c:1401
msgid "Exported Data"
-msgstr ""
+msgstr "Data Terekspor"
#: ../libgda/gda-data-model.c:1518
#, c-format
@@ -978,11 +987,12 @@ msgstr[0] "(%d baris)\n"
#: ../libgda/gda-data-model-dir.c:859
msgid "Row not found"
-msgstr ""
+msgstr "Baris tak ditemukan"
#: ../libgda/gda-data-model-dir.c:984 ../libgda/gda-data-model-dir.c:986
+#, fuzzy
msgid "Column cannot be modified"
-msgstr ""
+msgstr "Kolom %d tak bisa diubah"
#: ../libgda/gda-data-model-dir.c:999 ../libgda/gda-data-model-dir.c:1001
#: ../libgda/gda-data-model-dir.c:1210 ../libgda/gda-data-model-dir.c:1212
@@ -992,7 +1002,7 @@ msgstr ""
#: ../libgda/gda-data-model-dir.c:1045 ../libgda/gda-data-model-dir.c:1089
#, c-format
msgid "Could not rename file '%s' to '%s'"
-msgstr ""
+msgstr "Tak bisa mengubah nama berkas '%s' menjadi '%s'"
#: ../libgda/gda-data-model-dir.c:1069
#, c-format
@@ -1006,7 +1016,7 @@ msgstr ""
#: ../libgda/gda-data-model-dir.c:1156 ../libgda/gda-data-model-dir.c:1157
msgid "Wrong type of data"
-msgstr ""
+msgstr "Jenis data salah"
#: ../libgda/gda-data-model-dir.c:1198 ../libgda/gda-data-model-dir.c:1200
msgid "Column cannot be set"
@@ -1029,10 +1039,10 @@ msgstr ""
#: ../libgda/gda-data-model-dir.c:1332
#, c-format
msgid "Cannot remove file '%s'"
-msgstr ""
+msgstr "Tak dapat menghapus berkas '%s'"
#: ../libgda/gda-data-model-dsn-list.c:105
-#: ../libgda/gda-data-model-dsn-list.c:106 ../tools/gda-sql.c:2696
+#: ../libgda/gda-data-model-dsn-list.c:106 ../tools/gda-sql.c:2698
msgid "DSN"
msgstr "DSN"
@@ -1041,7 +1051,7 @@ msgstr "DSN"
#: ../libgda/gda-data-model-dsn-list.c:125
#: ../libgda/gda-data-model-dsn-list.c:126
msgid "Connection string"
-msgstr ""
+msgstr "String koneksi"
#: ../libgda/gda-data-model-dsn-list.c:137
#: ../libgda/gda-data-model-dsn-list.c:138
@@ -1077,7 +1087,7 @@ msgid "Character conversion at line %d, error: %s"
msgstr ""
#: ../libgda/gda-data-model-import.c:904
-#: ../libgda/sqlite/gda-sqlite-provider.c:710
+#: ../libgda/sqlite/gda-sqlite-provider.c:778
#: ../providers/bdb/gda-bdb-provider.c:210
#: ../tools/browser/common/gdaui-data-import.c:177
msgid "no detail"
@@ -1166,7 +1176,7 @@ msgstr ""
#: ../libgda/gda-data-model-import.c:1929
#, c-format
msgid "Could not set iterator's value: %s"
-msgstr ""
+msgstr "Tak bisa menata nilai iterator: %s"
#: ../libgda/gda-data-model-iter.c:301 ../libgda/gda-data-model-iter.c:308
msgid "GdaDataModel refused value change"
@@ -1197,9 +1207,9 @@ msgid ""
"signal. This may be a bug of the %s's implementation (please report a bug)."
msgstr ""
-#: ../libgda/gda-data-proxy.c:2931 ../tools/gda-sql.c:3251
+#: ../libgda/gda-data-proxy.c:2931 ../tools/gda-sql.c:3253
msgid "Could not create virtual connection"
-msgstr ""
+msgstr "Tak bisa membuat sambungan virtual"
#: ../libgda/gda-data-proxy.c:2972 ../libgda/gda-data-proxy.c:2985
msgid "Error in filter expression"
@@ -1283,7 +1293,7 @@ msgstr ""
#: ../libgda/gda-data-select.c:1294 ../libgda/gda-data-select.c:1500
#: ../libgda/gda-data-select.c:3320
msgid "No connection to use"
-msgstr ""
+msgstr "Tak ada koneksi untuk dipakai"
#: ../libgda/gda-data-select.c:1340
msgid "Invalid unique row condition (only equal operators are allowed)"
@@ -1358,16 +1368,16 @@ msgstr ""
#: ../libgda/gda-data-select.c:2410 ../libgda/gda-data-select.c:2580
#: ../libgda/gda-data-select.c:2646 ../libgda/gda-data-select.c:2732
msgid "No UPDATE statement provided"
-msgstr ""
+msgstr "Tak diberikan statement UPDATE"
#: ../libgda/gda-data-select.c:2450
msgid "Could not get iterator's value"
-msgstr ""
+msgstr "Tak bisa mendapat nilai iterator"
#: ../libgda/gda-data-select.c:2607 ../libgda/gda-data-select.c:2674
#, c-format
msgid "Column %d can't be modified"
-msgstr ""
+msgstr "Kolom %d tak bisa diubah"
#: ../libgda/gda-data-select.c:2740
#, c-format
@@ -1514,7 +1524,7 @@ msgstr ""
#: ../libgda/gda-meta-store.c:899 ../libgda/gda-meta-store.c:908
#: ../libgda/gda-meta-store.c:2024 ../libgda/gda-meta-store.c:2033
msgid "Could not set the internal schema's version"
-msgstr ""
+msgstr "Tak bisa menata versi skema internal"
#: ../libgda/gda-meta-store.c:1213
msgid "Missing view name from <view> node"
@@ -1663,7 +1673,7 @@ msgstr ""
#: ../libgda/gda-meta-store.c:3784
msgid "Another object with the same name already exists"
-msgstr ""
+msgstr "Sudah ada objek lain dengan nama yang sama"
#: ../libgda/gda-meta-store.c:3887
#, c-format
@@ -1749,13 +1759,13 @@ msgstr ""
#: ../libgda/gda-meta-struct.c:2282
#, c-format
msgid "Database object '%s' already exists"
-msgstr ""
+msgstr "Objek basis data '%s' sudah ada"
#. FIXME
#: ../libgda/gda-meta-struct-io.c:82
#, c-format
msgid "Could not load file '%s'"
-msgstr ""
+msgstr "Tak bisa memuat berkas '%s'"
#. FIXME
#: ../libgda/gda-meta-struct-io.c:89
@@ -1791,12 +1801,12 @@ msgstr ""
#: ../libgda/gda-server-operation.c:587
#, c-format
msgid "GdaServerOperation: could not find file '%s'"
-msgstr ""
+msgstr "GdaServerOperation: tak bisa temukan berkas '%s'"
#: ../libgda/gda-server-operation.c:598
#, c-format
msgid "GdaServerOperation: could not load file '%s'"
-msgstr ""
+msgstr "GdaServerOperation: tak bisa memuat berkas '%s'"
#: ../libgda/gda-server-operation.c:613 ../libgda/gda-server-operation.c:1004
#, c-format
@@ -1835,7 +1845,7 @@ msgstr ""
#: ../libgda/gda-server-operation.c:1467 ../libgda/gda-server-operation.c:1481
#, c-format
msgid "Expected tag <%s>, got <%s>"
-msgstr ""
+msgstr "Mengharapkan tag <%s>, memperoleh <%s>"
#: ../libgda/gda-server-operation.c:1512 ../libgda/gda-server-operation.c:2198
msgid ""
@@ -1849,7 +1859,7 @@ msgstr ""
#: ../libgda/gda-server-operation.c:2327
#, c-format
msgid "Missing required value for '%s'"
-msgstr ""
+msgstr "Kehilangan nilai yang diperlukan '%s'"
#: ../libgda/gda-server-provider.c:507
#, c-format
@@ -1887,7 +1897,7 @@ msgstr "Id"
#: ../libgda/gda-server-provider-extra.c:392
#: ../libgda/gda-server-provider-extra.c:404
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:56
-#: ../tools/command-exec.c:643
+#: ../tools/command-exec.c:650
msgid "Owner"
msgstr "Pemilik"
@@ -1896,7 +1906,7 @@ msgstr "Pemilik"
#: ../libgda/gda-server-provider-extra.c:375
#: ../libgda/gda-server-provider-extra.c:393
msgid "Comments"
-msgstr ""
+msgstr "Komentar"
#: ../libgda/gda-server-provider-extra.c:321
msgid "OutType"
@@ -1994,7 +2004,7 @@ msgstr "Skala"
#: ../libgda/gda-server-provider-extra.c:335
msgid "Not null?"
-msgstr ""
+msgstr "Bukan null?"
#: ../libgda/gda-server-provider-extra.c:336
msgid "Primary key?"
@@ -2002,7 +2012,7 @@ msgstr "Kunci primer?"
#: ../libgda/gda-server-provider-extra.c:337
msgid "Unique index?"
-msgstr ""
+msgstr "Indeks unik?"
#: ../libgda/gda-server-provider-extra.c:338
#: ../providers/mysql/mysql_specs_drop_table.xml.in.h:5
@@ -2029,7 +2039,7 @@ msgstr "Nilai baku"
#: ../libgda/gda-server-provider-extra.c:340
msgid "Extra attributes"
-msgstr ""
+msgstr "Atribut ekstra"
#: ../libgda/gda-server-provider-extra.c:344
#: ../providers/bdbsql/bdbsql_specs_drop_index.xml.in.h:3
@@ -2086,16 +2096,17 @@ msgstr ""
#: ../libgda/gda-server-provider-extra.c:365
msgid "Return type"
-msgstr ""
+msgstr "Jenis kembalian"
#. To translators: "Nb args": the procedure's number of arguments
#: ../libgda/gda-server-provider-extra.c:367
+#, fuzzy
msgid "Nb args"
-msgstr ""
+msgstr "Jenis arg"
#: ../libgda/gda-server-provider-extra.c:368
msgid "Args types"
-msgstr ""
+msgstr "Jenis arg"
#: ../libgda/gda-server-provider-extra.c:387
msgid "Trigger"
@@ -2107,14 +2118,14 @@ msgstr "Trigger"
#: ../providers/mysql/mysql_specs_create_index.xml.in.h:17
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:17
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:17
-#: ../tools/command-exec.c:642 ../tools/command-exec.c:716
+#: ../tools/command-exec.c:649 ../tools/command-exec.c:723
#: ../tools/web-server.c:926
msgid "Type"
msgstr "Jenis"
#: ../libgda/gda-server-provider-extra.c:394
msgid "GDA type"
-msgstr ""
+msgstr "Jenis GDA"
#: ../libgda/gda-server-provider-extra.c:395
msgid "Synonyms"
@@ -2162,7 +2173,7 @@ msgstr "View"
#: ../providers/sqlite/sqlite_specs_create_view.xml.in.h:3
#: ../tools/browser/data-manager/data-favorite-selector.c:304
#: ../tools/browser/query-exec/query-favorite-selector.c:288
-#: ../tools/command-exec.c:641 ../tools/gda-sql.c:3086 ../tools/gda-sql.c:4012
+#: ../tools/command-exec.c:648 ../tools/gda-sql.c:3088 ../tools/gda-sql.c:4014
msgid "Name"
msgstr "Nama"
@@ -2171,7 +2182,7 @@ msgstr "Nama"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:77
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:25
msgid "Fields"
-msgstr ""
+msgstr "Ruas"
#: ../libgda/gda-server-provider-extra.c:534
msgid "Data model for schema has a wrong number of columns"
@@ -2234,16 +2245,16 @@ msgstr ""
#: ../libgda/gda-sql-builder.c:286 ../libgda/gda-sql-builder.c:1391
#, c-format
msgid "Unknown part ID %u"
-msgstr ""
+msgstr "Part ID %u tak dikenal"
#: ../libgda/gda-sql-builder.c:290
msgid "Unknown part type"
-msgstr ""
+msgstr "Jenis part tak dikenal"
#: ../libgda/gda-sql-builder.c:334
#, c-format
msgid "SqlBuilder is empty"
-msgstr ""
+msgstr "SqlBuilder kosong"
#: ../libgda/gda-sql-builder.c:410 ../libgda/gda-sql-builder.c:467
#: ../libgda/gda-sql-builder.c:496 ../libgda/gda-sql-builder.c:617
@@ -2255,7 +2266,7 @@ msgstr ""
#: ../libgda/gda-sql-builder.c:1563 ../libgda/gda-sql-builder.c:1599
#: ../libgda/gda-sql-builder.c:1765 ../libgda/gda-sql-builder.c:1791
msgid "Wrong statement type"
-msgstr ""
+msgstr "Jenis statement salah"
#: ../libgda/gda-sql-builder.c:588
#, c-format
@@ -2269,7 +2280,7 @@ msgstr ""
#: ../libgda/gda-sql-builder.c:815 ../libgda/gda-sql-builder.c:820
#, c-format
msgid "Unhandled data type '%s'"
-msgstr ""
+msgstr "Jenis data '%s' tak ditangani"
#: ../libgda/gda-sql-builder.c:836
#, c-format
@@ -2297,7 +2308,7 @@ msgstr "Tanpa nama"
#: ../libgda/gda-statement.c:683
msgid "Missing SQL code"
-msgstr ""
+msgstr "Kehilangan kode SQL"
#: ../libgda/gda-statement.c:700
#, c-format
@@ -2312,24 +2323,24 @@ msgstr ""
#: ../libgda/gda-statement.c:1231
#, c-format
msgid "Missing parameter '%s'"
-msgstr ""
+msgstr "Kehilangan parameter '%s'"
-#: ../libgda/gda-statement.c:1243 ../libgda/sqlite/gda-sqlite-provider.c:2532
+#: ../libgda/gda-statement.c:1243 ../libgda/sqlite/gda-sqlite-provider.c:2600
#: ../providers/jdbc/gda-jdbc-provider.c:1347
#: ../providers/mysql/gda-mysql-provider.c:2188
#: ../providers/postgres/gda-postgres-provider.c:1949
#: ../providers/web/gda-web-provider.c:1508
#, c-format
msgid "Parameter '%s' is invalid"
-msgstr ""
+msgstr "Parameter '%s' tak valid"
#: ../libgda/gda-statement.c:1289
msgid "Unnamed parameter"
-msgstr ""
+msgstr "Parameter tanpa nama"
#: ../libgda/gda-statement.c:1507
msgid "Malformed table name"
-msgstr ""
+msgstr "Nama tabel salah bentuk"
#: ../libgda/gda-statement.c:1956
msgid "Join is not in a FROM statement"
@@ -2346,17 +2357,17 @@ msgstr ""
#: ../tools/gda-sql.c:947
#, c-format
msgid "No connection specified"
-msgstr ""
+msgstr "Sambungan tak dinyatakan"
#: ../libgda/gda-tree-mgr-columns.c:347
#, c-format
msgid "No schema specified"
-msgstr ""
+msgstr "Skema tak dinyatakan"
#: ../libgda/gda-tree-mgr-columns.c:355
#, c-format
msgid "No table specified"
-msgstr ""
+msgstr "Tabel tak dinyatakan"
#: ../libgda/gda-tree-mgr-columns.c:384
#, c-format
@@ -2392,7 +2403,7 @@ msgstr ""
#: ../libgda/gda-tree-mgr-select.c:324
#, c-format
msgid "No value specified for parameter '%s'"
-msgstr ""
+msgstr "Nilai bagi parameter '%s' tak dinyatakan"
#: ../libgda/gda-tree-mgr-select.c:358
#, c-format
@@ -2446,13 +2457,13 @@ msgstr ""
msgid "Missing table name in UPDATE statement"
msgstr ""
-#: ../libgda/gda-util.c:1264
+#: ../libgda/gda-util.c:1266
#, c-format
msgid "Can't rewrite UPDATE statement to handle default values"
msgstr ""
-#: ../libgda/gda-util.c:1316 ../libgda/gda-util.c:1373
-#: ../libgda/gda-util.c:1413 ../libgda/sqlite/gda-sqlite-provider.c:2513
+#: ../libgda/gda-util.c:1318 ../libgda/gda-util.c:1375
+#: ../libgda/gda-util.c:1415 ../libgda/sqlite/gda-sqlite-provider.c:2581
#: ../providers/jdbc/gda-jdbc-provider.c:1318
#: ../providers/mysql/gda-mysql-provider.c:2168
#: ../providers/postgres/gda-postgres-provider.c:1931
@@ -2488,12 +2499,13 @@ msgid "Provider error: %s method not implemented for provider %s"
msgstr ""
#: ../libgda/handlers/gda-handler-bin.c:117
+#, fuzzy
msgid "Binary handler"
-msgstr ""
+msgstr "Handler Modul"
#: ../libgda/handlers/gda-handler-bin.c:124
msgid "Binary representation"
-msgstr ""
+msgstr "Representasi biner"
#: ../libgda/handlers/gda-handler-boolean.c:117
#: ../libgda/sqlite/gda-sqlite-handler-boolean.c:117
@@ -2503,15 +2515,16 @@ msgstr ""
#: ../libgda/handlers/gda-handler-boolean.c:123
msgid "Boolean representation"
-msgstr ""
+msgstr "Representasi boolean"
#: ../libgda/handlers/gda-handler-numerical.c:136
msgid "Numerical representation"
-msgstr ""
+msgstr "Representasi numerik"
#: ../libgda/handlers/gda-handler-string.c:121
+#, fuzzy
msgid "Strings handler"
-msgstr ""
+msgstr "Handler Modul"
#: ../libgda/handlers/gda-handler-string.c:126
msgid "InternalString"
@@ -2519,11 +2532,12 @@ msgstr ""
#: ../libgda/handlers/gda-handler-string.c:127
msgid "Strings representation"
-msgstr ""
+msgstr "Representasi string"
#: ../libgda/handlers/gda-handler-time.c:143
+#, fuzzy
msgid "Time and Date handler"
-msgstr ""
+msgstr "Tanggal dan waktu perubahan"
#: ../libgda/handlers/gda-handler-time.c:168
msgid "Time, Date and TimeStamp representation"
@@ -2557,27 +2571,29 @@ msgstr ""
msgid "Sqlite boolean representation"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:109
-#: ../libgda/sqlite/gda-sqlite-provider.c:146
+#: ../libgda/sqlite/gda-sqlite-provider.c:111
+#: ../libgda/sqlite/gda-sqlite-provider.c:169
#, c-format
msgid "Parameter '%s' not found is statement"
-msgstr ""
+msgstr "Parameter '%s' tak ditemukan dalam statement"
-#: ../libgda/sqlite/gda-sqlite-provider.c:117
-#: ../libgda/sqlite/gda-sqlite-provider.c:154
-#, c-format
-msgid "Parameter '%s' does not correspond to a table's column"
-msgstr ""
+#: ../libgda/sqlite/gda-sqlite-provider.c:125
+#: ../libgda/sqlite/gda-sqlite-provider.c:141
+#: ../libgda/sqlite/gda-sqlite-provider.c:183
+#: ../libgda/sqlite/gda-sqlite-provider.c:199
+#, fuzzy, c-format
+msgid "No column name to associate to parameter '%s'"
+msgstr "Nilai bagi parameter '%s' tak ditata"
-#: ../libgda/sqlite/gda-sqlite-provider.c:166
+#: ../libgda/sqlite/gda-sqlite-provider.c:209
msgid "Binding a BLOB for this type of statement is not supported"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:513
+#: ../libgda/sqlite/gda-sqlite-provider.c:581
msgid "Can't find libsqlite3."
-msgstr ""
+msgstr "Tak bisa menemukan libsqlite3."
-#: ../libgda/sqlite/gda-sqlite-provider.c:565
+#: ../libgda/sqlite/gda-sqlite-provider.c:633
#: ../libgda/sqlite/virtual/gda-vprovider-data-model.c:264
#: ../libgda/thread-wrapper/gda-thread-provider.c:389
#: ../providers/bdb/gda-bdb-provider.c:155
@@ -2589,13 +2605,13 @@ msgstr ""
msgid "Provider does not support asynchronous connection open"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:589
+#: ../libgda/sqlite/gda-sqlite-provider.c:657
#: ../providers/mdb/gda-mdb-provider.c:246
msgid "The connection string must contain DB_DIR and DB_NAME values"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:616
-#: ../libgda/sqlite/gda-sqlite-provider.c:624
+#: ../libgda/sqlite/gda-sqlite-provider.c:684
+#: ../libgda/sqlite/gda-sqlite-provider.c:692
#, c-format
msgid ""
"The connection string format has changed: replace URI with DB_DIR (the path "
@@ -2603,23 +2619,23 @@ msgid ""
"end)."
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:639
+#: ../libgda/sqlite/gda-sqlite-provider.c:707
#: ../providers/mdb/gda-mdb-provider.c:288
msgid ""
"The DB_DIR part of the connection string must point to a valid directory"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:681
+#: ../libgda/sqlite/gda-sqlite-provider.c:749
msgid "Wrong encryption passphrase"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:709
+#: ../libgda/sqlite/gda-sqlite-provider.c:777
#, c-format
msgid "Could not set empty_result_callbacks SQLite option: %s"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:924
-#: ../libgda/sqlite/gda-sqlite-provider.c:964
+#: ../libgda/sqlite/gda-sqlite-provider.c:992
+#: ../libgda/sqlite/gda-sqlite-provider.c:1032
#: ../libgda-ui/data-entries/plugins/libmain.c:85
#: ../libgda-ui/data-entries/plugins/libmain.c:123
#: ../libgda-ui/data-entries/plugins/libmain.c:151
@@ -2632,87 +2648,86 @@ msgstr ""
#: ../providers/postgres/gda-postgres-provider.c:792
#, c-format
msgid "Missing spec. file '%s'"
-msgstr ""
+msgstr "Kehilangan berkas spec. '%s'"
-#: ../libgda/sqlite/gda-sqlite-provider.c:1086
-#: ../libgda/sqlite/gda-sqlite-provider.c:1095
-#: ../libgda/sqlite/gda-sqlite-provider.c:1107
-#: ../libgda/sqlite/gda-sqlite-provider.c:1116
-#, fuzzy
+#: ../libgda/sqlite/gda-sqlite-provider.c:1154
+#: ../libgda/sqlite/gda-sqlite-provider.c:1163
+#: ../libgda/sqlite/gda-sqlite-provider.c:1175
+#: ../libgda/sqlite/gda-sqlite-provider.c:1184
msgid "Error initializing database with passphrase"
-msgstr "Galat saat membuat basis data: %s"
+msgstr "Galat saat menginisialisasi basis data dengan frasa sandi"
-#: ../libgda/sqlite/gda-sqlite-provider.c:1158
+#: ../libgda/sqlite/gda-sqlite-provider.c:1226
msgid "Missing database name or directory"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:1184
+#: ../libgda/sqlite/gda-sqlite-provider.c:1252
#: ../providers/postgres/gda-postgres-provider.c:992
#: ../providers/postgres/gda-postgres-provider.c:993
msgid "Transactions are not supported in read-only mode"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2017
+#: ../libgda/sqlite/gda-sqlite-provider.c:2085
#: ../providers/jdbc/gda-jdbc-provider.c:1115
#: ../providers/postgres/gda-postgres-provider.c:1528
#: ../providers/web/gda-web-provider.c:1259
msgid "Unnamed parameter is not allowed in prepared statements"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2129
-#: ../libgda/sqlite/gda-sqlite-provider.c:2141
+#: ../libgda/sqlite/gda-sqlite-provider.c:2197
+#: ../libgda/sqlite/gda-sqlite-provider.c:2209
#: ../providers/mysql/gda-mysql-provider.c:1955
#: ../providers/postgres/gda-postgres-provider.c:1672
#, c-format
msgid "Can't build SELECT statement to get last inserted row: %s)"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2163
+#: ../libgda/sqlite/gda-sqlite-provider.c:2231
#: ../providers/mysql/gda-mysql-provider.c:1970
#: ../providers/postgres/gda-postgres-provider.c:1687
#, c-format
msgid "Can't execute SELECT statement to get last inserted row: %s"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2176
+#: ../libgda/sqlite/gda-sqlite-provider.c:2244
#: ../providers/mysql/gda-mysql-provider.c:1983
#: ../providers/postgres/gda-postgres-provider.c:1700
msgid "SELECT statement to get last inserted row did not return any row"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2180
+#: ../libgda/sqlite/gda-sqlite-provider.c:2248
#: ../providers/mysql/gda-mysql-provider.c:1987
#: ../providers/postgres/gda-postgres-provider.c:1704
#, c-format
msgid "SELECT statement to get last inserted row returned too many (%d) rows"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2245
+#: ../libgda/sqlite/gda-sqlite-provider.c:2313
msgid "Prepared statement has no associated GdaStatement"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2285
-#: ../libgda/sqlite/gda-sqlite-provider.c:2322
+#: ../libgda/sqlite/gda-sqlite-provider.c:2353
+#: ../libgda/sqlite/gda-sqlite-provider.c:2390
msgid "Can't create SQLite BLOB handle"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2289
-#: ../libgda/sqlite/gda-sqlite-provider.c:2327
+#: ../libgda/sqlite/gda-sqlite-provider.c:2357
+#: ../libgda/sqlite/gda-sqlite-provider.c:2395
msgid "Can't write to SQLite's BLOB"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2312
+#: ../libgda/sqlite/gda-sqlite-provider.c:2380
#, c-format
msgid ""
"Can't obtain SQLite BLOB handle (reported type is '%s'), please report this "
"bug to http://bugzilla.gnome.org/ for the \"libgda\" product."
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2337
+#: ../libgda/sqlite/gda-sqlite-provider.c:2405
msgid "Can't identify the ROWID of the blob to fill"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2385
+#: ../libgda/sqlite/gda-sqlite-provider.c:2453
#: ../providers/jdbc/gda-jdbc-provider.c:1213
#: ../providers/mysql/gda-mysql-provider.c:2076
#: ../providers/postgres/gda-postgres-provider.c:1799
@@ -2720,13 +2735,13 @@ msgstr ""
msgid "Provider does not support asynchronous statement execution"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2453
+#: ../libgda/sqlite/gda-sqlite-provider.c:2521
#: ../tools/browser/mgr-favorites.c:217 ../tools/browser/mgr-favorites.c:259
msgid "Empty statement"
-msgstr ""
+msgstr "Statement kosong"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2495
-#: ../libgda/sqlite/gda-sqlite-provider.c:2498
+#: ../libgda/sqlite/gda-sqlite-provider.c:2563
+#: ../libgda/sqlite/gda-sqlite-provider.c:2566
#: ../providers/jdbc/gda-jdbc-provider.c:1300
#: ../providers/jdbc/gda-jdbc-provider.c:1303
#: ../providers/mysql/gda-mysql-provider.c:2150
@@ -2739,7 +2754,7 @@ msgstr ""
msgid "Missing parameter(s) to execute query"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2557
+#: ../libgda/sqlite/gda-sqlite-provider.c:2625
#: ../providers/jdbc/gda-jdbc-provider.c:1382
#: ../providers/mysql/gda-mysql-provider.c:2214
#: ../providers/postgres/gda-postgres-provider.c:1974
@@ -2747,33 +2762,33 @@ msgstr ""
msgid "Can't rewrite statement handle default values"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2621
+#: ../libgda/sqlite/gda-sqlite-provider.c:2689
#: ../providers/mysql/gda-mysql-provider.c:2346
msgid "Can't get BLOB's length"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2623
+#: ../libgda/sqlite/gda-sqlite-provider.c:2691
#: ../providers/mysql/gda-mysql-provider.c:2348
msgid "BLOB is too big"
-msgstr ""
+msgstr "BLOB terlalu besar"
-#: ../libgda/sqlite/gda-sqlite-provider.c:2705
+#: ../libgda/sqlite/gda-sqlite-provider.c:2773
#, c-format
msgid "Non handled data type '%s'"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2761
+#: ../libgda/sqlite/gda-sqlite-provider.c:2829
msgid "Could not start transaction to create BLOB"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2923
-#: ../libgda/sqlite/gda-sqlite-provider.c:2944
-#: ../libgda/sqlite/gda-sqlite-provider.c:3010
+#: ../libgda/sqlite/gda-sqlite-provider.c:2991
+#: ../libgda/sqlite/gda-sqlite-provider.c:3012
+#: ../libgda/sqlite/gda-sqlite-provider.c:3078
msgid "Function requires one argument"
msgstr ""
-#: ../libgda/sqlite/gda-sqlite-provider.c:2976
-#: ../libgda/sqlite/gda-sqlite-provider.c:3042
+#: ../libgda/sqlite/gda-sqlite-provider.c:3044
+#: ../libgda/sqlite/gda-sqlite-provider.c:3110
msgid "Function requires two arguments"
msgstr ""
@@ -2793,7 +2808,7 @@ msgstr ""
#: ../libgda/sqlite/gda-sqlite-recordset.c:462
msgid "Unable to open BLOB"
-msgstr ""
+msgstr "Tak dapat membuka BLOB"
#: ../libgda/sqlite/gda-sqlite-recordset.c:482
#: ../providers/postgres/gda-postgres-recordset.c:620
@@ -2821,7 +2836,7 @@ msgstr ""
#: ../providers/jdbc/gda-jdbc-recordset.c:490
#, c-format
msgid "Row %d not found"
-msgstr ""
+msgstr "Baris %d tak ditemukan"
#: ../libgda/sqlite/virtual/gda-vconnection-data-model.c:305
msgid "Table to remove not found"
@@ -2867,7 +2882,7 @@ msgstr ""
#: ../libgda/sqlite/virtual/gda-vprovider-data-model.c:649
msgid "Column not found"
-msgstr ""
+msgstr "Kolom tak ditemukan"
#: ../libgda/sql-parser/gda-sql-parser.c:635
#: ../libgda/sql-parser/gda-sql-parser.c:726
@@ -2896,7 +2911,7 @@ msgstr ""
#: ../libgda/sql-parser/gda-statement-struct.c:824
#, c-format
msgid "Column '%s' not found"
-msgstr ""
+msgstr "Kolom '%s' tak ditemukan"
#: ../libgda/sql-parser/gda-statement-struct.c:646
#: ../libgda/sql-parser/gda-statement-struct.c:757
@@ -2929,13 +2944,13 @@ msgstr ""
#: ../libgda/sql-parser/gda-statement-struct.c:1019
#, c-format
msgid "'%s' is not a valid identifier"
-msgstr ""
+msgstr "'%s' bukan identifier yang valid"
#: ../libgda/sql-parser/gda-statement-struct.c:996
#: ../libgda/sql-parser/gda-statement-struct.c:1009
#: ../libgda/sql-parser/gda-statement-struct.c:1022
msgid "Empty identifier"
-msgstr ""
+msgstr "Identifier kosong"
#: ../libgda/sql-parser/gda-statement-struct.c:1031
msgid "Operation has no operand"
@@ -2947,12 +2962,12 @@ msgstr ""
#: ../libgda/sql-parser/gda-statement-struct.c:1083
#: ../libgda/sql-parser/gda-statement-struct.c:1091
msgid "Wrong number of operands"
-msgstr ""
+msgstr "Cacah operand salah"
#: ../libgda/sql-parser/gda-statement-struct.c:1097
#, c-format
msgid "Unknown operator %d"
-msgstr ""
+msgstr "Operator %d tak dikenal"
#: ../libgda/sql-parser/gda-statement-struct.c:1120
msgid "Missing expression in select field"
@@ -3086,12 +3101,12 @@ msgstr ""
#: ../libgda/thread-wrapper/gda-thread-provider.c:1992
#, c-format
msgid "A connection is required"
-msgstr ""
+msgstr "Diperlukan koneksi"
#: ../libgda/thread-wrapper/gda-thread-wrapper.c:1059
#: ../libgda/thread-wrapper/gda-thread-wrapper.c:1153
msgid "Signal does not exist\n"
-msgstr ""
+msgstr "Sinyal tak ada\n"
#: ../libgda/thread-wrapper/gda-thread-wrapper.c:1068
msgid "Signal to connect to must not have a return value\n"
@@ -3109,7 +3124,7 @@ msgstr ""
#: ../libgda-report/RML/gda-report-rml-document.c:240
#, c-format
msgid "Could not find the '%s' program"
-msgstr ""
+msgstr "Tak bisa menemukan program '%s'"
#: ../libgda-report/DocBook/gda-report-docbook-document.c:299
msgid "Could not find the DocBook XSL stylesheet for HTML"
@@ -3137,14 +3152,14 @@ msgstr ""
#: ../libgda-report/engine/gda-report-engine.c:570
#, c-format
msgid "Unknown query '%s'"
-msgstr ""
+msgstr "Query '%s' tak dikenal"
#: ../libgda-report/engine/gda-report-engine.c:581
-#: ../libgda-report/engine/gda-report-engine.c:608 ../tools/gda-sql.c:2981
-#: ../tools/gda-sql.c:3063 ../tools/gda-sql.c:3163 ../tools/gda-sql.c:3239
+#: ../libgda-report/engine/gda-report-engine.c:608 ../tools/gda-sql.c:2983
+#: ../tools/gda-sql.c:3065 ../tools/gda-sql.c:3165 ../tools/gda-sql.c:3241
#, c-format
msgid "No connection named '%s' found"
-msgstr ""
+msgstr "Koneksi bernama '%s' tak ditemukan"
#: ../libgda-report/engine/gda-report-engine.c:653
msgid "Query is not specified (not named and not defined)"
@@ -3163,7 +3178,7 @@ msgstr ""
#: ../libgda-report/engine/gda-report-engine.c:884
msgid "No expression specified"
-msgstr ""
+msgstr "Ekspresi tak dinyatakan"
#: ../libgda-report/engine/gda-report-engine.c:907
#, c-format
@@ -3182,11 +3197,11 @@ msgstr ""
#: ../libgda-report/engine/gda-report-engine.c:1175
msgid "Binary data"
-msgstr ""
+msgstr "Data biner"
#: ../libgda-report/gda-report-document.c:254
msgid "Document not specified"
-msgstr ""
+msgstr "Dokumen tak dinyatakan"
#: ../libgda-report/gda-report-document.c:281
msgid "Cannot create temporary file"
@@ -3195,7 +3210,7 @@ msgstr "Tidak dapat membuat berkas temporer"
#: ../libgda-report/gda-report-document.c:308
#, c-format
msgid "Execution of the %s program failed: %s"
-msgstr ""
+msgstr "Eksekusi program %s gagal: %s"
#: ../libgda-report/gda-report-document.c:346
#: ../libgda-report/gda-report-document.c:371
@@ -3205,7 +3220,7 @@ msgstr ""
#: ../libgda-ui/data-entries/common-bin.c:38
msgid "Select file to load"
-msgstr ""
+msgstr "Pilih berkas untuk dimuat"
#: ../libgda-ui/data-entries/common-bin.c:77
#: ../libgda-ui/data-entries/plugins/common-pict.c:398
@@ -3214,6 +3229,8 @@ msgid ""
"Could not load the contents of '%s':\n"
" %s"
msgstr ""
+"Tidak bisa memuat isi dari '%s':\n"
+" %s"
#: ../libgda-ui/data-entries/common-bin.c:108
msgid "Select a file to save data to"
@@ -3225,6 +3242,8 @@ msgid ""
"Could not save data to '%s':\n"
" %s"
msgstr ""
+"Tak bisa menyimpan data ke '%s':\n"
+" %s"
#: ../libgda-ui/data-entries/common-bin.c:194
msgid "Properties"
@@ -3234,8 +3253,7 @@ msgstr "Properti"
#, c-format
msgid "%lu Byte"
msgid_plural "%lu Bytes"
-msgstr[0] ""
-msgstr[1] ""
+msgstr[0] "%lu Byte"
#: ../libgda-ui/data-entries/common-bin.c:266
#: ../libgda-ui/data-entries/common-bin.c:316
@@ -3250,7 +3268,7 @@ msgstr "Tak ada data"
#: ../libgda-ui/data-entries/common-bin.c:301
#: ../libgda-ui/data-entries/common-bin.c:305
msgid "Data size"
-msgstr ""
+msgstr "Ukuran data"
#: ../libgda-ui/data-entries/common-bin.c:301
#: ../providers/mysql/gda-mysql-provider.c:623
@@ -3265,8 +3283,8 @@ msgstr "Tak dikenal"
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c:167
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c:182
#: ../libgda-ui/gdaui-basic-form.c:717 ../libgda-ui/gdaui-basic-form.c:753
-#: ../libgda-ui/gdaui-raw-grid.c:740 ../tools/gda-sql.c:2658
-#: ../tools/gda-sql.c:2833 ../tools/gda-sql.c:4013
+#: ../libgda-ui/gdaui-raw-grid.c:740 ../tools/gda-sql.c:2660
+#: ../tools/gda-sql.c:2835 ../tools/gda-sql.c:4015
msgid "Value"
msgstr "Nilai"
@@ -3275,8 +3293,9 @@ msgstr "Nilai"
#: ../libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c:188
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c:168
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c:183
+#, fuzzy
msgid "GValue to render"
-msgstr ""
+msgstr "Teks yang hendak ditulis"
#: ../libgda-ui/data-entries/gdaui-data-cell-renderer-bin.c:171
#: ../libgda-ui/data-entries/gdaui-data-cell-renderer-boolean.c:168
@@ -3334,13 +3353,13 @@ msgstr ""
#: ../libgda-ui/data-entries/gdaui-data-cell-renderer-textual.c:490
#: ../libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-password.c:298
msgid "<non-printable>"
-msgstr ""
+msgstr "<tak-bisa-dicetak>"
#: ../libgda-ui/data-entries/gdaui-entry.c:201
#: ../libgda-ui/data-entries/gdaui-entry.c:220
#: ../libgda-ui/data-entries/gdaui-formatted-entry.c:163
msgid "Invalid UTF-8 format!"
-msgstr ""
+msgstr "Format UTF-8 tak valid!"
#. format tooltip
#: ../libgda-ui/data-entries/gdaui-entry-common-time.c:1053
@@ -3355,16 +3374,18 @@ msgid ""
msgstr ""
#: ../libgda-ui/data-entries/gdaui-entry-shell.c:407
+#, fuzzy
msgid "Value is NULL"
-msgstr ""
+msgstr "Kunci adalah NULL"
#: ../libgda-ui/data-entries/gdaui-entry-shell.c:413
msgid "Value will be determined by default"
msgstr ""
#: ../libgda-ui/data-entries/gdaui-entry-shell.c:419
+#, fuzzy
msgid "Value is invalid"
-msgstr ""
+msgstr "URI '%s' tidak benar"
#: ../libgda-ui/data-entries/gdaui-entry-number.xml.in.h:1
msgid "A currency symbol"
@@ -3379,8 +3400,9 @@ msgid "Decimals"
msgstr ""
#: ../libgda-ui/data-entries/gdaui-entry-number.xml.in.h:4
+#, fuzzy
msgid "Number of decimals"
-msgstr ""
+msgstr "Jumlah _area kerja:"
#: ../libgda-ui/data-entries/gdaui-entry-number.xml.in.h:5
msgid "Use 1000s separators"
@@ -3405,16 +3427,18 @@ msgid ""
msgstr ""
#: ../libgda-ui/data-entries/gdaui-entry-string.xml.in.h:4
+#, fuzzy
msgid "Maximum acceptable length of the text"
-msgstr ""
+msgstr "Panjang maksimal dari daerah teks"
#: ../libgda-ui/data-entries/gdaui-entry-string.xml.in.h:5
msgid "Maximum length"
msgstr "Panjang maksimum"
#: ../libgda-ui/data-entries/gdaui-entry-string.xml.in.h:6
+#, fuzzy
msgid "Multiline"
-msgstr ""
+msgstr "Penggal multibaris"
#: ../libgda-ui/data-entries/gdaui-formatted-entry.c:274
#, c-format
@@ -3424,7 +3448,7 @@ msgstr ""
#: ../libgda-ui/data-entries/gdaui-numeric-entry.c:266
#, c-format
msgid "Type %s is not numerical"
-msgstr ""
+msgstr "Jenis %s bukan numerik"
#: ../libgda-ui/data-entries/gdaui-numeric-entry.c:279
#, c-format
@@ -3441,12 +3465,12 @@ msgstr ""
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict.c:415
#, c-format
msgid "Empty data"
-msgstr ""
+msgstr "Data kosong"
#: ../libgda-ui/data-entries/plugins/common-pict.c:114
-#, c-format
+#, fuzzy, c-format
msgid "Unhandled type of data"
-msgstr ""
+msgstr "Jenis data '%s' tak ditangani"
#: ../libgda-ui/data-entries/plugins/common-pict.c:211
#, c-format
@@ -3465,7 +3489,7 @@ msgstr ""
#: ../libgda-ui/data-entries/plugins/common-pict.c:315
msgid "_Load image from file"
-msgstr ""
+msgstr "_Muat gambar dari berkas"
#: ../libgda-ui/data-entries/plugins/common-pict.c:322
msgid "_Save image"
@@ -3473,31 +3497,31 @@ msgstr "_Simpan gambar"
#: ../libgda-ui/data-entries/plugins/common-pict.c:339
msgid "Select image to load"
-msgstr ""
+msgstr "Pilih gambar untuk dimuat"
#. determine writable formats
#: ../libgda-ui/data-entries/plugins/common-pict.c:444
msgid "Image format"
-msgstr ""
+msgstr "Format gambar"
#: ../libgda-ui/data-entries/plugins/common-pict.c:448
msgid "Format image as:"
-msgstr ""
+msgstr "Format gambar sebagai"
#: ../libgda-ui/data-entries/plugins/common-pict.c:460
msgid "Current format"
-msgstr ""
+msgstr "Format kini"
#: ../libgda-ui/data-entries/plugins/common-pict.c:463
msgid "Select a file to save the image to"
msgstr ""
#: ../libgda-ui/data-entries/plugins/common-pict.c:507
-#, c-format
+#, fuzzy, c-format
msgid ""
"Could not save the image to '%s':\n"
" %s"
-msgstr ""
+msgstr "Tak bisa menyimpan ke berkas: %s"
#. list of fields
#: ../libgda-ui/data-entries/plugins/gda-sql.lang.h:1
@@ -3515,9 +3539,8 @@ msgid "Decimal"
msgstr "Desimal"
#: ../libgda-ui/data-entries/plugins/gda-sql.lang.h:4
-#, fuzzy
msgid "Floating Point"
-msgstr "Titik Ambang"
+msgstr "Bilangan Pecahan"
#: ../libgda-ui/data-entries/plugins/gda-sql.lang.h:5
msgid "Function"
@@ -3525,7 +3548,7 @@ msgstr "Fungsi"
#: ../libgda-ui/data-entries/plugins/gda-sql.lang.h:6
msgid "GDA-SQL"
-msgstr ""
+msgstr "GDA-SQL"
#: ../libgda-ui/data-entries/plugins/gda-sql.lang.h:7
msgid "Keyword"
@@ -3548,8 +3571,9 @@ msgid "Variable"
msgstr "Variabel"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-cidr.c:257
+#, fuzzy
msgid "Mask settings"
-msgstr ""
+msgstr "Pengaturan _Waktu"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-cidr.c:263
msgid "Set to host mask"
@@ -3607,17 +3631,19 @@ msgid "How password should be encoded"
msgstr ""
#: ../libgda-ui/data-entries/plugins/gdaui-entry-password.xml.in.h:3
+#, fuzzy
msgid "MD5 Sum"
-msgstr ""
+msgstr "Sidikjari MD5"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-password.xml.in.h:4
+#, fuzzy
msgid "No encoding"
-msgstr ""
+msgstr "Pengkodean Karakter"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict-spec.xml.in.h:1
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict-spec_string.xml.in.h:4
msgid "Serialized picture"
-msgstr ""
+msgstr "Gambar terserialisasi"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict-spec.xml.in.h:2
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict-spec_string.xml.in.h:5
@@ -3627,7 +3653,7 @@ msgstr ""
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict-spec_string.xml.in.h:1
msgid "Base 64"
-msgstr ""
+msgstr "Base 64"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-pict-spec_string.xml.in.h:3
msgid "Encoding used to convert binary data to the string"
@@ -3658,12 +3684,14 @@ msgid "Do not wrap lines"
msgstr ""
#: ../libgda-ui/data-entries/plugins/gdaui-entry-text-spec.xml.in.h:6
+#, fuzzy
msgid "Lines wrapping"
-msgstr ""
+msgstr "Pelipatan Teks"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-text-spec.xml.in.h:7
+#, fuzzy
msgid "Programming language"
-msgstr ""
+msgstr "Oleh_bahasa"
#: ../libgda-ui/data-entries/plugins/gdaui-entry-text-spec.xml.in.h:8
msgid "break lines anywhere the cursor can appear"
@@ -3676,22 +3704,23 @@ msgstr "Kolom"
#: ../libgda-ui/data/server_operation.glade.h:2
msgid "Constraints"
-msgstr ""
+msgstr "Kendala"
#: ../libgda-ui/data/server_operation.glade.h:3
msgid "Foreign keys"
msgstr "Kunci foreign"
-#: ../libgda-ui/data/server_operation.glade.h:4 ../tools/gda-sql.c:1996
-#: ../tools/gda-sql.c:2095 ../tools/gda-sql.c:2107 ../tools/gda-sql.c:2119
-#: ../tools/gda-sql.c:2227 ../tools/gda-sql.c:2239 ../tools/gda-sql.c:2251
-#: ../tools/gda-sql.c:2445
+#: ../libgda-ui/data/server_operation.glade.h:4 ../tools/gda-sql.c:1998
+#: ../tools/gda-sql.c:2097 ../tools/gda-sql.c:2109 ../tools/gda-sql.c:2121
+#: ../tools/gda-sql.c:2229 ../tools/gda-sql.c:2241 ../tools/gda-sql.c:2253
+#: ../tools/gda-sql.c:2447
msgid "General"
msgstr "Umum"
#: ../libgda-ui/data/server_operation.glade.h:6
+#, fuzzy
msgid "hello"
-msgstr ""
+msgstr "Hallo Python"
#: ../libgda-ui/demos/main.c:760
#, c-format
@@ -3727,9 +3756,9 @@ msgid "Can't set authentification string: no authentication is needed"
msgstr ""
#: ../libgda-ui/internal/gdaui-provider-spec-editor.c:196
-#, c-format
+#, fuzzy, c-format
msgid "Unknown provider '%s'"
-msgstr ""
+msgstr "Operator Anda:"
#: ../libgda-ui/internal/gdaui-provider-spec-editor.c:200
#, c-format
@@ -3738,14 +3767,14 @@ msgstr ""
#. set to NULL item
#: ../libgda-ui/internal/utility.c:80
-#, fuzzy
msgid "Unset"
-msgstr "Belum diset"
+msgstr "Tak ditata"
#. default value item
#: ../libgda-ui/internal/utility.c:93
+#, fuzzy
msgid "Set to default value"
-msgstr ""
+msgstr "Tetapkan daftar default untuk %s\n"
#. reset to original value item
#: ../libgda-ui/internal/utility.c:106
@@ -3785,8 +3814,9 @@ msgid "Error details"
msgstr "Rincian galat"
#: ../libgda-ui/internal/utility.c:479
+#, fuzzy
msgid "Discard modified data"
-msgstr ""
+msgstr "Buang proyek yang diubah saat ini"
#: ../libgda-ui/internal/utility.c:480
msgid "Correct data first"
@@ -3807,8 +3837,9 @@ msgid "Entry headers are sensitive"
msgstr ""
#: ../libgda-ui/gdaui-basic-form.c:273
+#, fuzzy
msgid "Show Entry actions"
-msgstr ""
+msgstr "Tampilkan masukan pencarian"
#: ../libgda-ui/gdaui-basic-form.c:278
msgid "Entries Auto-default"
@@ -3868,8 +3899,9 @@ msgid "Display popup as list"
msgstr ""
#: ../libgda-ui/gdaui-data-store.c:135
+#, fuzzy
msgid "Data model"
-msgstr ""
+msgstr "Model data lama"
#: ../libgda-ui/gdaui-data-store.c:139
msgid "Internal GdaDataProxy data model"
@@ -3880,8 +3912,9 @@ msgid "Trying to modify a read-only row"
msgstr ""
#: ../libgda-ui/gdaui-data-filter.c:182
+#, fuzzy
msgid "Filter failed:"
-msgstr ""
+msgstr "Pemasangan Gagal"
#: ../libgda-ui/gdaui-data-filter.c:216
msgid "Filter"
@@ -3892,12 +3925,14 @@ msgid "any valid SQL expression"
msgstr ""
#: ../libgda-ui/gdaui-data-filter.c:232
+#, fuzzy
msgid "Set filter"
-msgstr ""
+msgstr "Set filter, misalnya diinstal"
#: ../libgda-ui/gdaui-data-filter.c:237
+#, fuzzy
msgid "Clear filter"
-msgstr ""
+msgstr "Ta_npa Tapis"
#: ../libgda-ui/gdaui-init.c:70
msgid "Attempt to initialize an already initialized library"
@@ -3918,9 +3953,9 @@ msgid "Error: %s"
msgstr "Galat: %s"
#: ../libgda-ui/gdaui-init.c:492
-#, fuzzy, c-format
+#, c-format
msgid "Loading file %s...\n"
-msgstr "Membuka berkas '%s'..."
+msgstr "Memuat berkas %s...\n"
#: ../libgda-ui/gdaui-init.c:495
#, c-format
@@ -3929,12 +3964,14 @@ msgstr ""
#. radio buttons
#: ../libgda-ui/gdaui-login.c:169
+#, fuzzy
msgid "Use data source:"
-msgstr ""
+msgstr "Properti Sumber Data"
#: ../libgda-ui/gdaui-login.c:177
+#, fuzzy
msgid "Specify connection:"
-msgstr ""
+msgstr "Koneksi ditutup"
#. Create the DSN add button
#: ../libgda-ui/gdaui-login.c:191
@@ -3946,8 +3983,9 @@ msgid "Could not execute the Database access control center"
msgstr ""
#: ../libgda-ui/gdaui-raw-form.c:179 ../libgda-ui/gdaui-raw-grid.c:285
+#, fuzzy
msgid "Data to display"
-msgstr ""
+msgstr "Tampilan X yang digunakan"
#: ../libgda-ui/gdaui-raw-form.c:605
#, c-format
@@ -3970,8 +4008,9 @@ msgstr ""
#. FIXME: if nullok is FALSE, then set the column title in bold
#: ../libgda-ui/gdaui-raw-grid.c:743 ../libgda-ui/gdaui-raw-grid.c:766
+#, fuzzy
msgid "Can't be NULL"
-msgstr ""
+msgstr "%d file dapat ditambah (%s)"
#: ../libgda-ui/gdaui-raw-grid.c:774
msgid "No title"
@@ -3982,30 +4021,34 @@ msgid "Select _All"
msgstr "Pilih Semu_a"
#: ../libgda-ui/gdaui-raw-grid.c:1759
-#, fuzzy
msgid "_Clear Selection"
-msgstr "Hapus bagian yang dipilih"
+msgstr "_Bersihkan Pilihan"
#: ../libgda-ui/gdaui-raw-grid.c:1762
+#, fuzzy
msgid "Show Column _Titles"
-msgstr ""
+msgstr "Tampilkan Kolom _Ukuran"
#: ../libgda-ui/gdaui-raw-grid.c:1767
+#, fuzzy
msgid "_Set filter"
-msgstr ""
+msgstr "Set filter, misalnya diinstal"
#: ../libgda-ui/gdaui-raw-grid.c:1770
+#, fuzzy
msgid "_Unset filter"
-msgstr ""
+msgstr "Ta_npa Tapis"
#. create dialog box
#: ../libgda-ui/gdaui-raw-grid.c:1870
+#, fuzzy
msgid "Saving Data"
-msgstr ""
+msgstr "Visualisasi Data"
#: ../libgda-ui/gdaui-raw-grid.c:1878
+#, fuzzy
msgid "Saving data to a file"
-msgstr ""
+msgstr "Log data pengawakutuan ke suatu berkas"
#: ../libgda-ui/gdaui-raw-grid.c:1879
msgid ""
@@ -4027,8 +4070,9 @@ msgid "File type:"
msgstr "Jenis berkas:"
#: ../libgda-ui/gdaui-raw-grid.c:1944
+#, fuzzy
msgid "Tab-delimited"
-msgstr ""
+msgstr "A4 Tab"
#: ../libgda-ui/gdaui-raw-grid.c:1945
msgid "Comma-delimited"
@@ -4040,8 +4084,9 @@ msgstr "XML"
#. limit to selection ?
#: ../libgda-ui/gdaui-raw-grid.c:1953
+#, fuzzy
msgid "Limit to selection?"
-msgstr ""
+msgstr "Salin pilihan ke papan tempel"
#: ../libgda-ui/gdaui-raw-grid.c:1974
msgid "Other options"
@@ -4087,11 +4132,11 @@ msgid "Got empty file while converting the data"
msgstr ""
#: ../libgda-ui/gdaui-raw-grid.c:2203
-#, c-format
+#, fuzzy, c-format
msgid ""
"File '%s' already exists.\n"
"Do you want to overwrite it?"
-msgstr ""
+msgstr "Berkas '%s' sudah ada. Apakah anda ingin menimpanya?"
#: ../libgda-ui/gdaui-raw-grid.c:2213
msgid "If you choose yes, the contents will be lost."
@@ -4116,29 +4161,33 @@ msgid "Server operation specification"
msgstr ""
#: ../libgda-ui/gdaui-server-operation.c:1173
+#, fuzzy
msgid "<b>Field properties:</b>"
-msgstr ""
+msgstr "Pengaturan Direktori"
#: ../libgda-ui/gdaui-server-operation.c:1192
+#, fuzzy
msgid "<b>Fields:</b>"
-msgstr ""
+msgstr "Ruas"
#: ../libgda-ui/gdaui-server-operation.c:1241
msgid "Add a new field"
-msgstr ""
+msgstr "Tambahkan ruas baru"
#: ../libgda-ui/gdaui-server-operation.c:1243
+#, fuzzy
msgid "Remove selected field"
-msgstr ""
+msgstr "Hapus buku alamat yang sedang dipilih"
#: ../libgda-ui/gdaui-tree-store.c:267
+#, fuzzy
msgid "GdaTree to use"
-msgstr ""
+msgstr "Tampilan X yang digunakan"
#: ../libgda-ui/gdaui-tree-store.c:595
#, c-format
msgid "Unknown column number %d"
-msgstr ""
+msgstr "Nomor kolom %d tak dikenal"
#: ../libgda-ui/gdaui-tree-store.c:611
#, c-format
@@ -4151,7 +4200,7 @@ msgstr ""
#: ../providers/bdb/bdb_specs_dsn.xml.in.h:2
msgid "Database file"
-msgstr ""
+msgstr "Berkas basis data"
#. DSN parameters
#: ../providers/bdb/bdb_specs_dsn.xml.in.h:3
@@ -4173,7 +4222,7 @@ msgstr ""
#: ../providers/sqlite/sqlite_specs_dsn.xml.in.h:1
#: ../providers/web/web_specs_dsn.xml.in.h:1
msgid "Database name"
-msgstr ""
+msgstr "Nama basis data"
#. DSN parameters
#: ../providers/bdb/bdb_specs_dsn.xml.in.h:4
@@ -4225,8 +4274,9 @@ msgid "-"
msgstr "-"
#: ../providers/bdb/libmain.c:72
+#, fuzzy
msgid "Provider for Berkeley databases"
-msgstr ""
+msgstr "Penyedia bagi basis data SQLite"
#. list of fields
#: ../providers/bdbsql/bdbsql_specs_add_column.xml.in.h:1
@@ -4258,7 +4308,7 @@ msgstr "Centang"
#: ../providers/sqlite/sqlite_specs_add_column.xml.in.h:2
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:6
msgid "Check constraint"
-msgstr ""
+msgstr "Periksa kendala"
#: ../providers/bdbsql/bdbsql_specs_add_column.xml.in.h:3
#: ../providers/mysql/mysql_specs_add_column.xml.in.h:8
@@ -4284,7 +4334,7 @@ msgstr "Keterangan kolom"
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:19
#: ../providers/sqlite/sqlite_specs_add_column.xml.in.h:5
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:19
-#: ../tools/command-exec.c:718 ../tools/web-server.c:928
+#: ../tools/command-exec.c:725 ../tools/web-server.c:928
msgid "Default"
msgstr "Baku"
@@ -4307,8 +4357,9 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:28
#: ../providers/sqlite/sqlite_specs_add_column.xml.in.h:8
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:28
+#, fuzzy
msgid "Not NULL"
-msgstr ""
+msgstr "Bukan null?"
#: ../providers/bdbsql/bdbsql_specs_add_column.xml.in.h:12
#: ../providers/bdbsql/bdbsql_specs_create_table.xml.in.h:39
@@ -4327,7 +4378,7 @@ msgstr ""
#: ../providers/sqlite/sqlite_specs_add_column.xml.in.h:12
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:39
msgid "Table's name"
-msgstr ""
+msgstr "Nama tabel"
#. DSN parameters
#: ../providers/bdbsql/bdbsql_specs_create_db.xml.in.h:4
@@ -4341,7 +4392,7 @@ msgstr ""
#: ../providers/sqlite/sqlite_specs_create_db.xml.in.h:4
#: ../providers/sqlite/sqlite_specs_drop_db.xml.in.h:4
msgid "Database's description"
-msgstr ""
+msgstr "Deskripsi basis data"
#. DSN parameters
#: ../providers/bdbsql/bdbsql_specs_create_db.xml.in.h:8
@@ -4363,8 +4414,9 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_drop_db.xml.in.h:10
#: ../providers/sqlite/sqlite_specs_create_db.xml.in.h:10
#: ../providers/sqlite/sqlite_specs_drop_db.xml.in.h:10
+#, fuzzy
msgid "The name of a database to create"
-msgstr ""
+msgstr "Nama basis data untuk dipakai"
#. To translators: "Compare method" refers to the method SQLite has to compare values
#: ../providers/bdbsql/bdbsql_specs_create_index.xml.in.h:2
@@ -4384,7 +4436,7 @@ msgstr ""
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:4
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:10
msgid "Compare method"
-msgstr ""
+msgstr "Metoda pembandingan"
#: ../providers/bdbsql/bdbsql_specs_create_index.xml.in.h:5
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:5
@@ -4398,7 +4450,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:6
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:6
msgid "Index description"
-msgstr ""
+msgstr "Deskripsi indeks"
#: ../providers/bdbsql/bdbsql_specs_create_index.xml.in.h:7
#: ../providers/mysql/mysql_specs_create_index.xml.in.h:2
@@ -4406,7 +4458,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:7
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:7
msgid "Index name"
-msgstr ""
+msgstr "Nama indeks"
#. Index fields
#: ../providers/bdbsql/bdbsql_specs_create_index.xml.in.h:9
@@ -4424,7 +4476,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:11
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:11
msgid "Indexed field(s)"
-msgstr ""
+msgstr "Ruas terindeks"
#: ../providers/bdbsql/bdbsql_specs_create_index.xml.in.h:13
#: ../providers/mysql/mysql_specs_create_index.xml.in.h:12
@@ -4433,7 +4485,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_index.xml.in.h:13
#: ../providers/sqlite/sqlite_specs_create_index.xml.in.h:13
msgid "On table"
-msgstr ""
+msgstr "Pada tabel"
#. DSN parameters
#: ../providers/bdbsql/bdbsql_specs_create_index.xml.in.h:14
@@ -4465,16 +4517,16 @@ msgstr "Jenis pengurutan"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:2
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:2
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:2
-#: ../tools/command-exec.c:581 ../tools/command-exec.c:584
+#: ../tools/command-exec.c:588 ../tools/command-exec.c:591
#: ../tools/web-server.c:898 ../tools/web-server.c:901
+#, fuzzy
msgid "Auto increment"
-msgstr ""
+msgstr "Besar Kenaikan"
#. list of fields
#: ../providers/bdbsql/bdbsql_specs_create_table.xml.in.h:12
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:12
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:12
-#, fuzzy
msgid "Conflict"
msgstr "Konflik"
@@ -4501,7 +4553,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:25
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:25
msgid "Global constraints"
-msgstr ""
+msgstr "Kendala global"
#. list of fields
#: ../providers/bdbsql/bdbsql_specs_create_table.xml.in.h:31
@@ -4515,7 +4567,7 @@ msgstr ""
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:31
#: ../tools/browser/schema-browser/mgr-columns.c:375
#: ../tools/browser/schema-browser/table-columns.c:190
-#: ../tools/command-exec.c:809
+#: ../tools/command-exec.c:816
msgid "Primary key"
msgstr "Kunci primer"
@@ -4528,7 +4580,7 @@ msgstr "Kunci primer"
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:37
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:37
msgid "Table's columns"
-msgstr ""
+msgstr "Kolom tabel"
#: ../providers/bdbsql/bdbsql_specs_create_table.xml.in.h:38
#: ../providers/jdbc/jdbc_specs_create_table.xml.in.h:22
@@ -4539,7 +4591,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:38
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:38
msgid "Table's description"
-msgstr ""
+msgstr "Deskripsi tabel"
#: ../providers/bdbsql/bdbsql_specs_create_table.xml.in.h:40
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:179
@@ -4548,7 +4600,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:40
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:40
msgid "Temporary table"
-msgstr ""
+msgstr "Tabel sementara"
#. list of fields
#: ../providers/bdbsql/bdbsql_specs_create_table.xml.in.h:42
@@ -4561,9 +4613,9 @@ msgstr ""
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:73
#: ../providers/sqlcipher/sqlcipher_specs_create_table.xml.in.h:42
#: ../providers/sqlite/sqlite_specs_create_table.xml.in.h:42
-#: ../tools/command-exec.c:932
+#: ../tools/command-exec.c:939
msgid "Unique"
-msgstr ""
+msgstr "Unik"
#: ../providers/bdbsql/bdbsql_specs_create_view.xml.in.h:1
#: ../providers/sqlcipher/sqlcipher_specs_create_view.xml.in.h:1
@@ -4576,7 +4628,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_view.xml.in.h:5
#: ../providers/sqlite/sqlite_specs_create_view.xml.in.h:5
msgid "Temporary view"
-msgstr ""
+msgstr "View sementara"
#: ../providers/bdbsql/bdbsql_specs_create_view.xml.in.h:6
#: ../providers/mysql/mysql_specs_create_view.xml.in.h:6
@@ -4592,7 +4644,7 @@ msgstr "Definisi view:"
#: ../providers/sqlcipher/sqlcipher_specs_create_view.xml.in.h:7
#: ../providers/sqlite/sqlite_specs_create_view.xml.in.h:7
msgid "View's description"
-msgstr ""
+msgstr "Deskripsi view"
#: ../providers/bdbsql/bdbsql_specs_create_view.xml.in.h:8
#: ../providers/mysql/mysql_specs_create_view.xml.in.h:8
@@ -4600,7 +4652,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_create_view.xml.in.h:8
#: ../providers/sqlite/sqlite_specs_create_view.xml.in.h:8
msgid "View's name"
-msgstr ""
+msgstr "Nama view"
#: ../providers/bdbsql/bdbsql_specs_drop_index.xml.in.h:1
#: ../providers/sqlcipher/sqlcipher_specs_drop_index.xml.in.h:1
@@ -4623,7 +4675,7 @@ msgstr ""
#: ../providers/sqlite/sqlite_specs_drop_table.xml.in.h:2
#: ../providers/sqlite/sqlite_specs_drop_view.xml.in.h:2
msgid "If exists"
-msgstr ""
+msgstr "Bila ada"
#: ../providers/bdbsql/bdbsql_specs_drop_index.xml.in.h:4
#: ../providers/mysql/mysql_specs_drop_index.xml.in.h:2
@@ -4631,7 +4683,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_drop_index.xml.in.h:4
#: ../providers/sqlite/sqlite_specs_drop_index.xml.in.h:4
msgid "Index to delete"
-msgstr ""
+msgstr "Indeks yang akan dihapus"
#: ../providers/bdbsql/bdbsql_specs_drop_table.xml.in.h:1
#: ../providers/mysql/mysql_specs_drop_table.xml.in.h:2
@@ -4646,7 +4698,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_drop_table.xml.in.h:4
#: ../providers/sqlite/sqlite_specs_drop_table.xml.in.h:4
msgid "Table to delete"
-msgstr ""
+msgstr "Tabel yang akan dihapus"
#: ../providers/bdbsql/bdbsql_specs_drop_view.xml.in.h:1
#: ../providers/mysql/mysql_specs_drop_view.xml.in.h:1
@@ -4662,7 +4714,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_drop_view.xml.in.h:4
#: ../providers/sqlite/sqlite_specs_drop_view.xml.in.h:4
msgid "View to delete"
-msgstr ""
+msgstr "View yang akan dihapus"
#: ../providers/bdbsql/bdbsql_specs_dsn.xml.in.h:4
#: ../providers/sqlcipher/sqlcipher_specs_dsn.xml.in.h:4
@@ -4680,7 +4732,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_dsn.xml.in.h:6
#: ../providers/sqlite/sqlite_specs_dsn.xml.in.h:6
msgid "Extra functions"
-msgstr ""
+msgstr "Fungsi ekstra"
#: ../providers/bdbsql/bdbsql_specs_dsn.xml.in.h:7
#: ../providers/sqlcipher/sqlcipher_specs_dsn.xml.in.h:7
@@ -4708,7 +4760,7 @@ msgstr "Nama baru"
#: ../providers/sqlcipher/sqlcipher_specs_rename_table.xml.in.h:2
#: ../providers/sqlite/sqlite_specs_rename_table.xml.in.h:2
msgid "New table name"
-msgstr ""
+msgstr "Nama tabel baru"
#: ../providers/bdbsql/bdbsql_specs_rename_table.xml.in.h:4
#: ../providers/mysql/mysql_specs_rename_table.xml.in.h:4
@@ -4716,7 +4768,7 @@ msgstr ""
#: ../providers/sqlcipher/sqlcipher_specs_rename_table.xml.in.h:4
#: ../providers/sqlite/sqlite_specs_rename_table.xml.in.h:4
msgid "Table to rename"
-msgstr ""
+msgstr "Tabel yang akan diganti namanya"
#: ../providers/bdbsql/libmain.c:50
msgid "Can't find libdb_sql-5."
@@ -4732,12 +4784,12 @@ msgstr ""
#: ../providers/jdbc/GdaJValue.c:322 ../providers/jdbc/GdaJValue.c:364
#: ../providers/jdbc/GdaJValue.c:490
msgid "Invalid argument: NULL"
-msgstr ""
+msgstr "Argumen tidak valid: NULL"
#: ../providers/jdbc/GdaInputStream.c:54
#: ../providers/jdbc/GdaInputStream.c:127
msgid "Can't read BLOB"
-msgstr ""
+msgstr "Tak bisa membaca BLOB"
#: ../providers/jdbc/GdaJValue.c:167
#, c-format
@@ -4754,7 +4806,7 @@ msgstr ""
#: ../providers/jdbc/jdbc_specs_dsn.xml.in.h:1
msgid "Connection URL"
-msgstr ""
+msgstr "URL koneksi"
#: ../providers/jdbc/libmain.c:154 ../providers/jdbc/libmain.c:164
#, c-format
@@ -4785,9 +4837,9 @@ msgid "Could not open file %s"
msgstr "Tak dapat membuka berkas %s"
#: ../providers/mdb/gda-mdb-provider.c:351
-#, c-format
+#, fuzzy, c-format
msgid "Could not map table '%s': %s"
-msgstr ""
+msgstr "Tak bisa temukan tabel \"%s\""
#: ../providers/mdb/libmain.c:73
msgid "Provider for Microsoft Access files"
@@ -4911,8 +4963,9 @@ msgid "Type %s not mapped for value %s"
msgstr ""
#: ../providers/mysql/libmain.c:71
+#, fuzzy
msgid "Provider for MySQL databases"
-msgstr ""
+msgstr "Penyedia bagi basis data SQLite"
#: ../providers/mysql/mysql_specs_add_column.xml.in.h:1
msgid "Add the column after the specified column"
@@ -4927,24 +4980,26 @@ msgid "After column"
msgstr "Setelah kolom"
#: ../providers/mysql/mysql_specs_add_column.xml.in.h:4
+#, fuzzy
msgid "As first column"
-msgstr ""
+msgstr "Baris pertama sebagai judul:"
#: ../providers/mysql/mysql_specs_comment_column.xml.in.h:2
msgid "Field comment"
-msgstr ""
+msgstr "Komentar ruas"
#: ../providers/mysql/mysql_specs_comment_table.xml.in.h:2
msgid "Table comment"
-msgstr ""
+msgstr "Komentar tabel"
#. To translators: Charset name
#. other table options
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:2
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:3
+#, fuzzy
msgid "7bit Swedish"
-msgstr ""
+msgstr "Susunan Swedia"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:4
@@ -4957,20 +5012,20 @@ msgstr "Armenia ARMSCII-8"
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:3
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:2
msgid "Administrator login"
-msgstr ""
+msgstr "Log masuk administrator"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:6
#: ../providers/mysql/mysql_specs_drop_db.xml.in.h:2
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:4
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:3
msgid "Administrator password"
-msgstr ""
+msgstr "Sandi administrator"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:8
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:17
msgid "Big5 Traditional Chinese"
-msgstr ""
+msgstr "Cina Tradisional Big5"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:10
@@ -5011,14 +5066,15 @@ msgstr ""
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:22
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:41
+#, fuzzy
msgid "DEC West European"
-msgstr ""
+msgstr "ISO 8859-1 Eropa Barat"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:24
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:43
msgid "DOS Central European"
-msgstr ""
+msgstr "DOS Eropa Tengah"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:26
@@ -5030,13 +5086,14 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:28
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:47
msgid "DOS Russian"
-msgstr ""
+msgstr "DOS Rusia"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:30
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:49
+#, fuzzy
msgid "DOS West European"
-msgstr ""
+msgstr "DOS Eropa Tengah"
#. Connection parameters
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:34
@@ -5046,13 +5103,13 @@ msgstr ""
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:8
#: ../providers/postgres/postgres_specs_dsn.xml.in.h:2
msgid "Database server"
-msgstr ""
+msgstr "Server basis data"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:35
#: ../providers/mysql/mysql_specs_drop_db.xml.in.h:7
#: ../providers/mysql/mysql_specs_dsn.xml.in.h:4
msgid "Database server port"
-msgstr ""
+msgstr "Port server basis data"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:39
@@ -5076,13 +5133,13 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:44
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:85
msgid "GB2312 Simplified Chinese"
-msgstr ""
+msgstr "GB2312 Cina Disederhanakan"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:46
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:87
msgid "GBK Simplified Chinese"
-msgstr ""
+msgstr "GBK Cina Disederhanakan"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:48
@@ -5093,8 +5150,9 @@ msgstr "Georgia GEOSTD8"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:50
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:93
+#, fuzzy
msgid "HP West European"
-msgstr ""
+msgstr "ISO 8859-1 Eropa Barat"
#. Connection parameters
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:52
@@ -5107,7 +5165,7 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:54
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:96
msgid "ISO 8859-1 West European"
-msgstr ""
+msgstr "ISO 8859-1 Eropa Barat"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:56
@@ -5119,7 +5177,7 @@ msgstr "Baltik ISO-8859-13"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:58
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:100
msgid "ISO 8859-2 Central European"
-msgstr ""
+msgstr "ISO 8859-2 Eropa Tengah"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:60
@@ -5131,13 +5189,13 @@ msgstr "Yunani ISO-8859-7"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:62
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:104
msgid "ISO 8859-8 Hebrew"
-msgstr ""
+msgstr "ISO 8859-8 Ibrani"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:64
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:106
msgid "ISO 8859-9 Turkish"
-msgstr ""
+msgstr "ISO 8859-9 Turki"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:66
@@ -5149,7 +5207,7 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:68
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:116
msgid "KOI8-U Ukrainian"
-msgstr ""
+msgstr "KOI8-U Ukraina"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:69
#: ../providers/mysql/mysql_specs_drop_db.xml.in.h:15
@@ -5162,13 +5220,14 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:71
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:118
msgid "Mac Central European"
-msgstr ""
+msgstr "Mac Eropa Tengah"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:73
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:120
+#, fuzzy
msgid "Mac West European"
-msgstr ""
+msgstr "Mac Eropa Tengah"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:76
#: ../providers/mysql/mysql_specs_drop_db.xml.in.h:18
@@ -5188,7 +5247,7 @@ msgstr "Port"
#: ../providers/postgres/postgres_specs_dsn.xml.in.h:8
#: ../providers/web/web_specs_dsn.xml.in.h:4
msgid "Require SSL"
-msgstr ""
+msgstr "Perlu SSL"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:79
@@ -5213,25 +5272,25 @@ msgstr "Jepang Shift-JIS"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:84
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:169
msgid "TIS620 Thai"
-msgstr ""
+msgstr "TIS620 Thai"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:88
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:181
msgid "UCS-2 Unicode"
-msgstr ""
+msgstr "UCS-2 Unicode"
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:89
#: ../providers/mysql/mysql_specs_drop_db.xml.in.h:23
#: ../providers/mysql/mysql_specs_dsn.xml.in.h:10
msgid "UNIX Socket"
-msgstr ""
+msgstr "Soket UNIX"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:91
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:183
msgid "US ASCII"
-msgstr ""
+msgstr "US ASCII"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:93
@@ -5251,25 +5310,26 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:96
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:191
msgid "Windows Arabic"
-msgstr ""
+msgstr "Windows Arab"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:98
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:193
msgid "Windows Baltic"
-msgstr ""
+msgstr "Windows Baltik"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:100
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:195
msgid "Windows Central European"
-msgstr ""
+msgstr "Windows Eropa Tengah"
#. To translators: Charset name
#: ../providers/mysql/mysql_specs_create_db.xml.in.h:102
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:197
+#, fuzzy
msgid "Windows Cyrillic"
-msgstr ""
+msgstr "Cyrillic (_Windows-1251)"
#: ../providers/mysql/mysql_specs_create_index.xml.in.h:3
msgid "Index type (depending on table storage engine)"
@@ -5312,26 +5372,27 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:15
msgid "Berkeley DB"
-msgstr ""
+msgstr "Berkeley DB"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:20
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:3
-#, fuzzy
msgid "Cascade"
msgstr "Cascade"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:28
+#, fuzzy
msgid "Checksum"
-msgstr ""
+msgstr "Membuat checksum"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:29
msgid "Clustered, fault-tolerant, memory-based"
msgstr ""
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:32
+#, fuzzy
msgid "Comma Separated Value (CSV)"
-msgstr ""
+msgstr "Bentuk kolom berkoma (.csv)"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:35
msgid "Compact"
@@ -5351,7 +5412,7 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:51
msgid "Data directory"
-msgstr ""
+msgstr "Direktori data"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:59
@@ -5359,8 +5420,9 @@ msgid "Delay key write"
msgstr ""
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:60
+#, fuzzy
msgid "Don't pack keys"
-msgstr ""
+msgstr "Tak satupun: Jangan publikasikan kunci"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:61
msgid "Dynamic"
@@ -5368,8 +5430,9 @@ msgstr "Dinamik"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:67
+#, fuzzy
msgid "Engine"
-msgstr ""
+msgstr "Merah"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:68
msgid "Example"
@@ -5405,9 +5468,10 @@ msgstr "Tetap"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:83
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:29
#: ../tools/browser/schema-browser/mgr-columns.c:381
-#: ../tools/command-exec.c:852
+#: ../tools/command-exec.c:859
+#, fuzzy
msgid "Foreign key"
-msgstr ""
+msgstr "Tombol akselerator"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:94
msgid "ISAM"
@@ -5420,7 +5484,7 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:109
msgid "Index directory"
-msgstr ""
+msgstr "Direktori indeks"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:110
msgid "InnoDB"
@@ -5429,27 +5493,27 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:112
msgid "Insert method"
-msgstr ""
+msgstr "Metoda penyisipan"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:121
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:34
msgid "Match full"
-msgstr ""
+msgstr "Cocok lengkap"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:122
msgid "Match partial"
-msgstr ""
+msgstr "Cocok sebagian"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:123
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:35
msgid "Match simple"
-msgstr ""
+msgstr "Kecocokan sedehana"
#. foreign key spec
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:125
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:37
msgid "Match type"
-msgstr ""
+msgstr "Jenis kecocokan"
#. foreign key spec
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:127
@@ -5460,7 +5524,7 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:129
msgid "Max rows"
-msgstr ""
+msgstr "Baris maks"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:130
msgid "Merge"
@@ -5469,28 +5533,29 @@ msgstr "Gabung"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:132
msgid "Min rows"
-msgstr ""
+msgstr "Baris min"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:133
msgid "MyISAM (default)"
-msgstr ""
+msgstr "MyISAM (bawaan)"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:135
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:41
msgid "No action"
-msgstr ""
+msgstr "Tanpa aksi"
#. foreign key spec
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:139
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:46
+#, fuzzy
msgid "On delete action"
-msgstr ""
+msgstr "Aksi saat dimutakhirkan"
#. foreign key spec
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:141
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:48
msgid "On update action"
-msgstr ""
+msgstr "Aksi saat dimutakhirkan"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:143
msgid "Only pack long CHAR/VARCHAR columns"
@@ -5498,24 +5563,25 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:145
+#, fuzzy
msgid "Pack keys"
-msgstr ""
+msgstr "Tombol Pantul"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:150
msgid "Redundant"
-msgstr ""
+msgstr "Redundan"
#. foreign key spec
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:152
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:54
msgid "Referenced field"
-msgstr ""
+msgstr "Ruas yang diacu"
#. foreign key spec
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:154
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:56
msgid "Referenced table"
-msgstr ""
+msgstr "Tabel yang diacu"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:155
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:57
@@ -5525,17 +5591,17 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:157
msgid "Row format"
-msgstr ""
+msgstr "Format baris"
#. To translators: Action of setting a value to NULL
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:163
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:61
msgid "Set to NULL"
-msgstr ""
+msgstr "Menata ke NULL"
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:172
msgid "Table's comment"
-msgstr ""
+msgstr "Komentar tabel"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:175
@@ -5545,12 +5611,12 @@ msgstr ""
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:178
msgid "Table's options"
-msgstr ""
+msgstr "Opsi tabel"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:187
msgid "Union"
-msgstr ""
+msgstr "Union"
#. other table options
#: ../providers/mysql/mysql_specs_create_table.xml.in.h:199
@@ -5560,7 +5626,7 @@ msgstr ""
#: ../providers/mysql/mysql_specs_create_view.xml.in.h:1
#: ../providers/postgres/postgres_specs_create_view.xml.in.h:1
msgid "Columns' names"
-msgstr ""
+msgstr "Nama kolom"
#: ../providers/mysql/mysql_specs_create_view.xml.in.h:4
#: ../providers/postgres/postgres_specs_create_view.xml.in.h:4
@@ -5585,7 +5651,7 @@ msgstr ""
#. DSN parameters
#: ../providers/mysql/mysql_specs_drop_db.xml.in.h:17
msgid "Only if existing"
-msgstr ""
+msgstr "Hanya jika ada"
#: ../providers/mysql/mysql_specs_drop_table.xml.in.h:1
#: ../providers/postgres/postgres_specs_drop_index.xml.in.h:1
@@ -5606,8 +5672,9 @@ msgstr ""
#: ../providers/mysql/mysql_specs_drop_table.xml.in.h:10
#: ../providers/postgres/postgres_specs_drop_index.xml.in.h:6
#: ../providers/postgres/postgres_specs_drop_table.xml.in.h:6
+#, fuzzy
msgid "What to do with references"
-msgstr ""
+msgstr "Pengaturan judul dinamis"
#: ../providers/mysql/mysql_specs_dsn.xml.in.h:1
msgid "Compress"
@@ -5616,11 +5683,11 @@ msgstr "Mampatkan"
#: ../providers/mysql/mysql_specs_dsn.xml.in.h:9
#: ../providers/postgres/postgres_specs_dsn.xml.in.h:11
msgid "The name of a database to connect to"
-msgstr ""
+msgstr "Nama basis data untuk dihubungi"
#: ../providers/mysql/mysql_specs_dsn.xml.in.h:11
msgid "Use compression protocol"
-msgstr ""
+msgstr "Pakai protokol kompresi"
#: ../providers/oracle/gda-oracle-meta.c:570
msgid "Could not fetch next row"
@@ -5646,15 +5713,16 @@ msgstr ""
#: ../providers/oracle/gda-oracle-meta.c:804
#: ../providers/oracle/gda-oracle-meta.c:820
msgid "Could not get attribute"
-msgstr ""
+msgstr "Tak bisa mendapat atribut"
#: ../providers/oracle/gda-oracle-util.c:78
msgid "NO DESCRIPTION"
msgstr "TANPA KETERANGAN"
#: ../providers/oracle/gda-oracle-util.c:646
+#, fuzzy
msgid "Invalid Oracle handle"
-msgstr ""
+msgstr "Panggilan Kamar Tidak Valid"
#: ../providers/oracle/gda-oracle-util.c:654
msgid "Could not allocate Lob locator"
@@ -5733,7 +5801,7 @@ msgstr ""
#: ../providers/postgres/gda-postgres-provider.c:2010
#: ../providers/postgres/gda-postgres-provider.c:2012
msgid "Cannot start transaction"
-msgstr ""
+msgstr "Tak bisa memulai transaksi"
#: ../providers/postgres/gda-postgres-provider.c:2221
#: ../providers/postgres/gda-postgres-provider.c:2257
@@ -5746,16 +5814,18 @@ msgid "Number of rows chunks read since the object creation"
msgstr ""
#: ../providers/postgres/libmain.c:79
+#, fuzzy
msgid "Provider for PostgreSQL databases"
-msgstr ""
+msgstr "Penyedia bagi basis data SQLite"
#: ../providers/postgres/postgres_specs_add_column.xml.in.h:7
msgid "Don't add the column to descendants of the table"
msgstr ""
#: ../providers/postgres/postgres_specs_add_column.xml.in.h:9
+#, fuzzy
msgid "Ignore descendants"
-msgstr ""
+msgstr "Abaikan PERINGATAN"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:2
@@ -5767,7 +5837,7 @@ msgstr "ASCII"
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:7
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:4
msgid "Chinese EUC"
-msgstr ""
+msgstr "Cina EUC"
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:12
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:9
@@ -5781,7 +5851,7 @@ msgstr ""
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:11
#: ../providers/postgres/postgres_specs_dsn.xml.in.h:4
msgid "Extra connection options"
-msgstr ""
+msgstr "Opsi koneksi ekstra"
#. Connection parameters
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:17
@@ -5881,19 +5951,19 @@ msgstr ""
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:47
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:28
msgid "Japanese EUC"
-msgstr ""
+msgstr "Jepang EUC"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:49
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:29
msgid "KOI8-R(U)"
-msgstr ""
+msgstr "KOI8-R(U)"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:51
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:30
msgid "Korean EUC"
-msgstr ""
+msgstr "Korea EUC"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:53
@@ -5917,7 +5987,7 @@ msgstr ""
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:64
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:38
msgid "Taiwan EUC"
-msgstr ""
+msgstr "Taiwan EUC"
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:65
msgid "Template"
@@ -5951,31 +6021,31 @@ msgstr ""
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:75
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:43
msgid "Windows CP1250"
-msgstr ""
+msgstr "Windows CP1250"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:77
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:44
msgid "Windows CP1251"
-msgstr ""
+msgstr "Windows CP1251"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:79
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:45
msgid "Windows CP1256 (Arabic)"
-msgstr ""
+msgstr "Windows CP1256 (Arab)"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:81
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:46
msgid "Windows CP866"
-msgstr ""
+msgstr "Windows CP866"
#. To translators: Charset name
#: ../providers/postgres/postgres_specs_create_db.xml.in.h:83
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:47
msgid "Windows CP874 (Thai)"
-msgstr ""
+msgstr "Windows CP874 (Thai)"
#: ../providers/postgres/postgres_specs_create_index.xml.in.h:1
msgid "Constraint expression for a partial index"
@@ -5991,16 +6061,18 @@ msgstr "Predikat"
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:5
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:2
+#, fuzzy
msgid "Can create databases"
-msgstr ""
+msgstr "Tak dapat membuat berkas sementara '%s'"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
#. available since PostgreSQL 8.1
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:10
+#, fuzzy
msgid "Can create roles"
-msgstr ""
+msgstr "Tak dapat membuat berkas sementara '%s'"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
@@ -6008,7 +6080,7 @@ msgstr ""
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:15
msgid "Can login"
-msgstr ""
+msgstr "Bisa log masuk"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
@@ -6028,7 +6100,7 @@ msgstr ""
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:25
msgid "Database superuser"
-msgstr ""
+msgstr "Pengguna super basis data"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
@@ -6037,11 +6109,11 @@ msgstr ""
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:30
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:5
msgid "Encrypt password"
-msgstr ""
+msgstr "Enkripsikan sandi"
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:31
msgid "Existing role"
-msgstr ""
+msgstr "Peran yang ada"
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:32
msgid ""
@@ -6064,8 +6136,9 @@ msgstr ""
#. available since PostgreSQL 8.1
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:42
+#, fuzzy
msgid "Inherit"
-msgstr ""
+msgstr "_Inherit reminder"
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:43
msgid ""
@@ -6085,8 +6158,9 @@ msgstr ""
#. available since PostgreSQL 8.1
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:49
+#, fuzzy
msgid "Login limit"
-msgstr ""
+msgstr "Batasan _Download:"
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:50
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:8
@@ -6098,8 +6172,9 @@ msgid "Role"
msgstr "Peran"
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:62
+#, fuzzy
msgid "Role's admins"
-msgstr ""
+msgstr "Peran Akses"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
@@ -6107,12 +6182,14 @@ msgstr ""
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:67
#: ../providers/postgres/postgres_specs_drop_role.xml.in.h:4
+#, fuzzy
msgid "Role's definition"
-msgstr ""
+msgstr "Penjelasan definisi"
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:68
+#, fuzzy
msgid "Role's members"
-msgstr ""
+msgstr "Daftar Anggota"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
@@ -6120,16 +6197,18 @@ msgstr ""
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:73
#: ../providers/postgres/postgres_specs_drop_role.xml.in.h:5
+#, fuzzy
msgid "Role's name"
-msgstr ""
+msgstr "Nama Kota"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
#. available since PostgreSQL 8.1
#.
#: ../providers/postgres/postgres_specs_create_role.xml.in.h:78
+#, fuzzy
msgid "Role's password"
-msgstr ""
+msgstr "Masukkan sandi"
#.
#. This file contains the CREATE ROLE operation's parameters, which is
@@ -6199,8 +6278,9 @@ msgid "Copy default expressions"
msgstr ""
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:9
+#, fuzzy
msgid "Copy defaults"
-msgstr ""
+msgstr "Default Projek"
#. foreign key spec
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:17
@@ -6216,45 +6296,53 @@ msgid "Deferrable initially immediate"
msgstr ""
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:32
+#, fuzzy
msgid "Inheritance"
-msgstr ""
+msgstr "Inheritansi Kelas"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:33
+#, fuzzy
msgid "Keep coupled"
-msgstr ""
+msgstr "_Rapikan Susunan Ikon"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:44
+#, fuzzy
msgid "Not deferrable"
-msgstr ""
+msgstr "Tak merespon"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:49
+#, fuzzy
msgid "Parent table"
-msgstr ""
+msgstr "Tabel Cell"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:50
+#, fuzzy
msgid "Parent table(s)"
-msgstr ""
+msgstr "Tabel Cell"
#. To translators: Action of setting a value to its default value
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:63
+#, fuzzy
msgid "Set to default"
-msgstr ""
+msgstr "Perbesaran Standar"
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:74
msgid "Use INHERIT instead of LIKE"
msgstr ""
#: ../providers/postgres/postgres_specs_create_table.xml.in.h:75
+#, fuzzy
msgid "With OIDs"
-msgstr ""
+msgstr "Buka dengan \"%s\""
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:1
msgid "Can be used to choose the PostgreSQL user ID of the new user"
msgstr ""
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:3
+#, fuzzy
msgid "Can create users"
-msgstr ""
+msgstr "Tak dapat membuat berkas sementara '%s'"
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:6
msgid ""
@@ -6264,7 +6352,7 @@ msgstr ""
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:7
msgid "Existing user"
-msgstr ""
+msgstr "Pengguna yang telah ada"
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:11
msgid "Set to TRUE if the user is allowed to create databases"
@@ -6280,8 +6368,9 @@ msgstr "ID pengguna"
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:16
#: ../providers/postgres/postgres_specs_drop_user.xml.in.h:4
+#, fuzzy
msgid "User's definition"
-msgstr ""
+msgstr "Penjelasan definisi"
#: ../providers/postgres/postgres_specs_create_user.xml.in.h:17
#: ../providers/postgres/postgres_specs_drop_user.xml.in.h:5
@@ -6306,8 +6395,9 @@ msgstr ""
#. DSN parameters
#: ../providers/postgres/postgres_specs_drop_db.xml.in.h:40
+#, fuzzy
msgid "The name of a database to drop"
-msgstr ""
+msgstr "Nama basis data untuk dipakai"
#: ../providers/postgres/postgres_specs_drop_role.xml.in.h:1
msgid "Drop role only if it exists"
@@ -6330,8 +6420,9 @@ msgid "What to do with objects referencing the view"
msgstr ""
#: ../providers/postgres/postgres_specs_dsn.xml.in.h:9
+#, fuzzy
msgid "Search Path"
-msgstr ""
+msgstr "_LOKASI PERANGKAT"
#: ../providers/postgres/postgres_specs_dsn.xml.in.h:10
msgid "Search path among database's schemas ('search_path' variable)"
@@ -6374,8 +6465,9 @@ msgstr "Penyedia SQLCipher"
#. DSN parameters
#: ../providers/sqlcipher/sqlcipher_specs_auth.xml.in.h:1
#: ../providers/sqlcipher/sqlcipher_specs_create_db.xml.in.h:10
+#, fuzzy
msgid "Encryption passphrase"
-msgstr ""
+msgstr "Masukkan Kata Sandi"
#. DSN parameters
#: ../providers/sqlcipher/sqlcipher_specs_auth.xml.in.h:2
@@ -6385,13 +6477,13 @@ msgstr "Frase sandi"
#: ../providers/sqlite/libmain.c:73
msgid "Provider for SQLite databases"
-msgstr ""
+msgstr "Penyedia bagi basis data SQLite"
#: ../providers/web/gda-web-provider.c:290 ../providers/web/gda-web-util.c:296
#: ../providers/web/gda-web-util.c:414 ../providers/web/gda-web-util.c:567
-#, c-format
+#, fuzzy, c-format
msgid "Invalid HOST/SCRIPT '%s'"
-msgstr ""
+msgstr "Nama host tak valid"
#: ../providers/web/gda-web-provider.c:351
#: ../providers/web/gda-web-provider.c:357
@@ -6411,45 +6503,46 @@ msgstr "Tak didukung"
#: ../providers/web/gda-web-provider.c:657
#, c-format
msgid "Server operations not yet implemented"
-msgstr ""
+msgstr "Operasi server belum diimplementasi"
#: ../providers/web/gda-web-provider.c:707
#: ../providers/web/gda-web-provider.c:772
#: ../providers/web/gda-web-provider.c:832
msgid "Named transaction is not supported"
-msgstr ""
+msgstr "Transaksi bernama tak didukung"
#: ../providers/web/gda-web-provider.c:712
msgid "Transaction level is not supported"
-msgstr ""
+msgstr "Aras transaksi tak didukung"
#: ../providers/web/gda-web-provider.c:892
#: ../providers/web/gda-web-provider.c:953
msgid "Unnamed savepoint is not supported"
-msgstr ""
+msgstr "Savepoint tak bernama tak didukung"
#: ../providers/web/gda-web-recordset.c:183
#, c-format
msgid "Can't create temporary file '%s'"
-msgstr ""
+msgstr "Tak dapat membuat berkas sementara '%s'"
#: ../providers/web/gda-web-recordset.c:365
#: ../providers/web/gda-web-recordset.c:371
#: ../providers/web/gda-web-recordset.c:381
msgid "Can't create temporary table to store data from web server"
-msgstr ""
+msgstr "Tak bisa membuat tabel sementara untuk menyimpan data dari server web"
#: ../providers/web/gda-web-util.c:151 ../providers/web/gda-web-util.c:165
msgid "Could not parse server's reponse"
-msgstr ""
+msgstr "Tak bisa mengurai respon server"
#: ../providers/web/gda-web-util.c:159
+#, fuzzy
msgid "Invalid response hash"
-msgstr ""
+msgstr "Respon invalid dari server"
#: ../providers/web/gda-web-util.c:347
msgid "Can't start new thread"
-msgstr ""
+msgstr "Tak bisa memulai thread baru"
#: ../providers/web/gda-web-util.c:401 ../providers/web/gda-web-util.c:441
msgid "Could not run PHP script on the server"
@@ -6482,11 +6575,11 @@ msgstr ""
#: ../providers/web/web_specs_dsn.xml.in.h:5
msgid "Server secret"
-msgstr ""
+msgstr "Rahasia server"
#: ../providers/web/web_specs_dsn.xml.in.h:6
msgid "The name of a database to use"
-msgstr ""
+msgstr "Nama basis data untuk dipakai"
#: ../providers/web/web_specs_dsn.xml.in.h:7
msgid "The name of the web server which proxies connections"
@@ -6499,7 +6592,7 @@ msgstr ""
#: ../providers/web/web_specs_dsn.xml.in.h:9
msgid "Web server name"
-msgstr ""
+msgstr "Nama server web"
#: ../providers/web/web_specs_dsn.xml.in.h:10
msgid "Web server port (leave this field empty for default)"
@@ -6531,7 +6624,7 @@ msgstr "_Berkas"
#: ../testing/gdaui-test-data-entries.c:254
msgid "_Tested Widgets"
-msgstr ""
+msgstr "Widget _Teruji"
#: ../testing/gdaui-test-data-entries.c:261
msgid "Default individual data entry widgets"
@@ -6564,11 +6657,11 @@ msgstr ""
#. Other widgets
#: ../testing/gdaui-test-data-entries.c:695
msgid "Current flags: "
-msgstr ""
+msgstr "Flag kini:"
#: ../testing/gdaui-test-data-entries.c:700
msgid "--"
-msgstr ""
+msgstr "--"
#: ../testing/gdaui-test-data-entries.c:706
msgid "Current value: "
@@ -6576,11 +6669,11 @@ msgstr "Nilai kini:"
#: ../testing/gdaui-test-data-entries.c:724
msgid "NULL ok"
-msgstr ""
+msgstr "NULL ok"
#: ../testing/gdaui-test-data-entries.c:732
msgid "DEFAULT ok"
-msgstr ""
+msgstr "DEFAULT ok"
#: ../testing/gdaui-test-data-entries.c:740
msgid "Actions?"
@@ -6592,7 +6685,7 @@ msgstr "Dapat disunting?"
#: ../testing/gdaui-test-data-entries.c:762
msgid "Set as original"
-msgstr ""
+msgstr "Jadikan sebagai asli"
#: ../testing/gdaui-test-data-entries.c:775
msgid "Set as default"
@@ -6600,11 +6693,11 @@ msgstr "Jadikan baku"
#: ../tools/browser/auth-dialog.c:522
msgid "For connection"
-msgstr ""
+msgstr "Untuk koneksi"
#: ../tools/browser/auth-dialog.c:523
msgid "enter authentication information"
-msgstr ""
+msgstr "masukkan informasi otentikasi"
#: ../tools/browser/auth-dialog.c:679 ../tools/browser/login-dialog.c:238
#, c-format
@@ -6618,12 +6711,12 @@ msgstr ""
#: ../tools/browser/browser-connection.c:262
#, c-format
msgid "c%u"
-msgstr ""
+msgstr "c%u"
#: ../tools/browser/browser-connection.c:353
#: ../tools/browser/browser-connection.c:439
msgid "Analysing database schema"
-msgstr ""
+msgstr "Menganalisis skema basis data"
#: ../tools/browser/browser-connection.c:355
#: ../tools/browser/browser-connection.c:421
@@ -6631,28 +6724,28 @@ msgstr ""
#: ../tools/browser/browser-connection.c:853
#, c-format
msgid "Error while fetching meta data from the connection: %s"
-msgstr ""
+msgstr "Galat saat mengambil meta data dari koneksi: %s"
#: ../tools/browser/browser-connection.c:419
#: ../tools/browser/browser-connection.c:851
msgid "Getting database schema information"
-msgstr ""
+msgstr "Sedang mengambil informasi skema basis data"
#: ../tools/browser/browser-connection.c:625
#: ../tools/browser/browser-connection.c:645
#, c-format
msgid "Error while analysing database schema: %s"
-msgstr ""
+msgstr "Galat saat menganalisis skema basis data: %s"
#: ../tools/browser/browser-connection.c:1107
#: ../tools/browser/browser-connection.c:1157
msgid "Executing a query"
-msgstr ""
+msgstr "Mengeksekusi query"
#: ../tools/browser/browser-connection.c:1437
#, c-format
msgid "Connection not yet opened"
-msgstr ""
+msgstr "Koneksi belum dibuka"
#: ../tools/browser/browser-connection.c:1443
msgid "Can't initialize dictionary to store table preferences"
@@ -6686,15 +6779,15 @@ msgstr "Penyedia: %s"
#: ../tools/browser/browser-connections-list.c:203
msgid "Database provider"
-msgstr ""
+msgstr "Penyedia basis data"
#: ../tools/browser/browser-connections-list.c:210
msgid "In memory"
-msgstr ""
+msgstr "Di memori"
#: ../tools/browser/browser-connections-list.c:212
msgid "Dictionary file"
-msgstr ""
+msgstr "Berkas kamus"
#: ../tools/browser/browser-connections-list.c:213
msgid ""
@@ -6704,15 +6797,15 @@ msgstr ""
#: ../tools/browser/browser-connections-list.c:326
msgid "Opened connections"
-msgstr ""
+msgstr "Koneksi terbuka"
-#: ../tools/browser/browser-connections-list.c:354 ../tools/gda-sql.c:3090
+#: ../tools/browser/browser-connections-list.c:354 ../tools/gda-sql.c:3092
msgid "List of opened connections"
msgstr ""
#: ../tools/browser/browser-connections-list.c:363 ../tools/web-server.c:707
msgid "Connections"
-msgstr ""
+msgstr "Koneksi"
#: ../tools/browser/browser-connections-list.c:379
msgid "Connection's properties"
@@ -6724,7 +6817,7 @@ msgstr "Tutup koneksi"
#: ../tools/browser/browser-connections-list.c:394
msgid "Close selected connection"
-msgstr ""
+msgstr "Tutup koneksi yang dipilih"
#: ../tools/browser/browser-connections-list.c:397
msgid "Connect"
@@ -6732,7 +6825,7 @@ msgstr "Sambung"
#: ../tools/browser/browser-connections-list.c:401
msgid "Open a new connection"
-msgstr ""
+msgstr "Buka koneksi baru"
#: ../tools/browser/browser-favorites.c:181
#: ../tools/browser/browser-favorites.c:190
@@ -6780,11 +6873,12 @@ msgstr "Layar _Penuh"
#: ../tools/browser/browser-window.c:271
msgid "Use the whole screen"
-msgstr ""
+msgstr "Gunakan seluruh layar"
#: ../tools/browser/browser-window.c:277
+#, fuzzy
msgid "_Bind connection"
-msgstr ""
+msgstr "Koneksi ditutup"
#: ../tools/browser/browser-window.c:277
msgid ""
@@ -6798,12 +6892,13 @@ msgid "Begin a new transaction"
msgstr ""
#: ../tools/browser/browser-window.c:299
+#, fuzzy
msgid "Commit current transaction"
-msgstr ""
+msgstr "Rollback transaksi kini"
#: ../tools/browser/browser-window.c:301
msgid "Rollback current transaction"
-msgstr ""
+msgstr "Rollback transaksi kini"
#: ../tools/browser/browser-window.c:391
msgid "unnamed"
@@ -6821,7 +6916,7 @@ msgstr ""
#: ../tools/browser/browser-window.c:827 ../tools/browser/browser-window.c:834
msgid "Do you want to quit the application?"
-msgstr ""
+msgstr "Apakah Anda keluar aplikasi?"
#: ../tools/browser/browser-window.c:828
msgid "all the connections will be closed."
@@ -6829,17 +6924,17 @@ msgstr ""
#: ../tools/browser/browser-window.c:835
msgid "the connection will be closed."
-msgstr ""
+msgstr "koneksi akan ditutup."
#: ../tools/browser/browser-window.c:886
#, c-format
msgid "Error starting transaction: %s"
-msgstr ""
+msgstr "Galat memulai transaksi: %s"
#: ../tools/browser/browser-window.c:900
-#, c-format
+#, fuzzy, c-format
msgid "Error committing transaction: %s"
-msgstr ""
+msgstr "Galat memulai transaksi: %s"
#: ../tools/browser/browser-window.c:914
#, c-format
@@ -6863,7 +6958,7 @@ msgstr ""
#: ../tools/browser/browser-window.c:1225
#: ../tools/browser/gda-browser-4.0.desktop.in.h:2
msgid "Database browser"
-msgstr ""
+msgstr "Peramban basis data"
#: ../tools/browser/browser-window.c:1543
msgid "Don't show this message again"
@@ -6883,12 +6978,13 @@ msgstr ""
#: ../tools/browser/connection-binding-properties.c:142
msgid "New virtual connection"
-msgstr ""
+msgstr "Koneksi virtual baru"
#: ../tools/browser/connection-binding-properties.c:170
#: ../tools/browser/connection-binding-properties.c:196
+#, fuzzy
msgid "Virtual connection's properties"
-msgstr ""
+msgstr "Koneksi virtual baru"
#: ../tools/browser/connection-binding-properties.c:197
msgid ""
@@ -6897,16 +6993,19 @@ msgid ""
msgstr ""
#: ../tools/browser/connection-binding-properties.c:277
+#, fuzzy
msgid "Add binding"
-msgstr ""
+msgstr "Tambah Pembatas"
#: ../tools/browser/connection-binding-properties.c:328
+#, fuzzy
msgid "Bind a connection"
-msgstr ""
+msgstr "Koneksi ditutup"
#: ../tools/browser/connection-binding-properties.c:334
+#, fuzzy
msgid "Bind a data set"
-msgstr ""
+msgstr "Tata data repositori"
#: ../tools/browser/connection-binding-properties.c:413
msgid "Table from a data set:"
@@ -6915,7 +7014,7 @@ msgstr ""
#: ../tools/browser/connection-binding-properties.c:463
#, c-format
msgid "Invalid schema name"
-msgstr ""
+msgstr "Nama skema yang tak valid"
#: ../tools/browser/connection-binding-properties.c:510
msgid "All tables of a connection:"
@@ -6951,31 +7050,31 @@ msgstr ""
#: ../tools/browser/login-dialog.c:252
#, c-format
msgid "Cancelled by the user"
-msgstr ""
+msgstr "Dibatalkan oleh pengguna"
#: ../tools/browser/main.c:72 ../tools/gda-sql.c:166
msgid "[DSN|connection string]..."
-msgstr ""
+msgstr "[DSN|string koneksi..."
#: ../tools/browser/mgr-favorites.c:219
msgid "Multiple statements"
-msgstr ""
+msgstr "Statement berganda"
#: ../tools/browser/mgr-favorites.c:223
msgid "SELECT statement"
-msgstr ""
+msgstr "Statement SELECT"
#: ../tools/browser/mgr-favorites.c:226
msgid "INSERT statement"
-msgstr ""
+msgstr "Statement INSERT"
#: ../tools/browser/mgr-favorites.c:229
msgid "UPDATE statement"
-msgstr ""
+msgstr "Statement UPDATE"
#: ../tools/browser/mgr-favorites.c:232
msgid "DELETE statement"
-msgstr ""
+msgstr "Statement DELETE"
#: ../tools/browser/mgr-favorites.c:235
msgid "COMPOUND SELECT statement"
@@ -6983,37 +7082,41 @@ msgstr ""
#: ../tools/browser/mgr-favorites.c:238
msgid "BEGIN statement"
-msgstr ""
+msgstr "Statement BEGIN"
#: ../tools/browser/mgr-favorites.c:241
msgid "ROLLBACK statement"
-msgstr ""
+msgstr "Statement ROLLBACK"
#: ../tools/browser/mgr-favorites.c:244
msgid "COMMIT statement"
-msgstr ""
+msgstr "Statement COMMIT"
#: ../tools/browser/mgr-favorites.c:247
+#, fuzzy
msgid "ADD SAVEPOINT statement"
-msgstr ""
+msgstr "Statement DELETE SAVEPOINT"
#: ../tools/browser/mgr-favorites.c:250
+#, fuzzy
msgid "ROLLBACK SAVEPOINT statement"
-msgstr ""
+msgstr "Statement DELETE SAVEPOINT"
#: ../tools/browser/mgr-favorites.c:253
msgid "DELETE SAVEPOINT statement"
-msgstr ""
+msgstr "Statement DELETE SAVEPOINT"
#: ../tools/browser/mgr-favorites.c:256
msgid "Unknown statement"
-msgstr ""
+msgstr "Statement tak dikenal"
#: ../tools/browser/mgr-favorites.c:547
msgid ""
"Getting\n"
"favorites..."
msgstr ""
+"Mengambil\n"
+"favorit..."
#: ../tools/browser/mgr-favorites.c:559
msgid ""
@@ -7027,6 +7130,8 @@ msgid ""
"Unable to display help. Please make sure the documentation package is "
"installed."
msgstr ""
+"Tak bisa menampilkan bantuan. Pastikan bahwa paket dokumentasi telah "
+"dipasang."
#: ../tools/browser/support.c:232
msgid "Unable to open help file"
@@ -7077,7 +7182,7 @@ msgstr ""
#: ../tools/browser/canvas/browser-canvas-db-relations.c:505
msgid "Add table"
-msgstr ""
+msgstr "Tambah tabel"
#: ../tools/browser/canvas/browser-canvas-db-relations.c:525
msgid "Select tables to add to diagram"
@@ -7085,7 +7190,7 @@ msgstr ""
#: ../tools/browser/canvas/browser-canvas-print.c:82
msgid "Page size and zoom"
-msgstr ""
+msgstr "Zum dan ukuran halaman"
#: ../tools/browser/canvas/browser-canvas-print.c:179
#, c-format
@@ -7094,7 +7199,7 @@ msgstr ""
#: ../tools/browser/canvas/browser-canvas-print.c:237
msgid "Adjust page's size and orientation"
-msgstr ""
+msgstr "Tata orientasi dan ukuran halaman"
#: ../tools/browser/canvas/browser-canvas-print.c:243
msgid "<b>Zoom</b>"
@@ -7102,19 +7207,19 @@ msgstr "<b>Zum</b>"
#: ../tools/browser/canvas/browser-canvas-print.c:255
msgid "Number of pages used:"
-msgstr ""
+msgstr "Cacah halaman yang dipakai:"
#: ../tools/browser/canvas/browser-canvas-print.c:266
msgid "horizontally"
-msgstr ""
+msgstr "secara horisontal"
#: ../tools/browser/canvas/browser-canvas-print.c:277
msgid "vertically"
-msgstr ""
+msgstr "secara vertikal"
#: ../tools/browser/canvas/browser-canvas-print.c:281
msgid "Zoom factor:"
-msgstr ""
+msgstr "Faktor zum:"
#: ../tools/browser/canvas/browser-canvas-print.c:294
msgid "<b>Page numbers</b>"
@@ -7122,31 +7227,31 @@ msgstr "<b>Nomor halaman</b>"
#: ../tools/browser/canvas/browser-canvas-print.c:307
msgid "Print page numbers"
-msgstr ""
+msgstr "Cetak nomor halaman"
#: ../tools/browser/canvas/browser-canvas.c:389
msgid "Linear layout"
-msgstr ""
+msgstr "Tata letak linier"
#: ../tools/browser/canvas/browser-canvas.c:394
msgid "Radial layout"
-msgstr ""
+msgstr "Tata letak radial"
#: ../tools/browser/canvas/browser-canvas.c:508
msgid "Save diagram as"
-msgstr ""
+msgstr "Simpan diagram sebagai"
#: ../tools/browser/canvas/browser-canvas.c:514
msgid "PNG Image"
-msgstr ""
+msgstr "Gambar PNG"
#: ../tools/browser/canvas/browser-canvas.c:519
msgid "SVG file"
-msgstr ""
+msgstr "Berkas SVG"
#: ../tools/browser/canvas/browser-canvas.c:556
msgid "Failed to create SVG file"
-msgstr ""
+msgstr "Gagal membuat berkas SVG"
#: ../tools/browser/canvas/browser-canvas.c:564
msgid "File format to save to is not recognized."
@@ -7154,16 +7259,16 @@ msgstr ""
#: ../tools/browser/canvas/browser-canvas.c:584
msgid "Failed to create PNG file"
-msgstr ""
+msgstr "Gagal membuat berkas PNG"
#: ../tools/browser/common/gdaui-data-import.c:123
msgid "Import specifications"
-msgstr ""
+msgstr "Spesifikasi impor"
#. file to import from
#: ../tools/browser/common/gdaui-data-import.c:142
msgid "File to import from:"
-msgstr ""
+msgstr "Impor dari berkas:"
#: ../tools/browser/common/gdaui-data-import.c:146
msgid "File to import data from"
@@ -7175,7 +7280,7 @@ msgstr ""
#: ../tools/browser/common/gdaui-data-import.c:154
msgid "XML exported"
-msgstr ""
+msgstr "XML diekspor"
#: ../tools/browser/common/gdaui-data-import.c:158
msgid "All files"
@@ -7189,7 +7294,7 @@ msgstr "Pengkodean:"
#. first line as title
#: ../tools/browser/common/gdaui-data-import.c:192
msgid "First line as title:"
-msgstr ""
+msgstr "Baris pertama sebagai judul:"
#. separator
#: ../tools/browser/common/gdaui-data-import.c:204
@@ -7198,11 +7303,12 @@ msgstr "Pemisah:"
#: ../tools/browser/common/gdaui-data-import.c:208
msgid "Comma"
-msgstr ""
+msgstr "Koma"
#: ../tools/browser/common/gdaui-data-import.c:215
+#, fuzzy
msgid "Semi column"
-msgstr ""
+msgstr "Moda Kolom..."
#: ../tools/browser/common/gdaui-data-import.c:222
msgid "Tab"
@@ -7213,8 +7319,9 @@ msgid "Space"
msgstr "Spasi"
#: ../tools/browser/common/gdaui-data-import.c:236
+#, fuzzy
msgid "Pipe"
-msgstr ""
+msgstr "Pipa rusak"
#: ../tools/browser/common/gdaui-data-import.c:245
msgid "Other:"
@@ -7222,7 +7329,7 @@ msgstr "Lainnya:"
#: ../tools/browser/common/gdaui-data-import.c:269
msgid "Import preview"
-msgstr ""
+msgstr "Pratilik impor"
#: ../tools/browser/common/gdaui-data-import.c:284
msgid "No data."
@@ -7255,7 +7362,7 @@ msgstr ""
#: ../tools/browser/common/gdaui-entry-import.c:211
#: ../tools/browser/common/gdaui-entry-import.c:234
msgid "No data set"
-msgstr ""
+msgstr "Tak ada data yang ditata"
#: ../tools/browser/common/objects-cloud.c:249
#, c-format
@@ -7272,8 +7379,7 @@ msgstr ""
#, c-format
msgid "%d Table in schema '%s':"
msgid_plural "%d Tables in schema '%s':"
-msgstr[0] ""
-msgstr[1] ""
+msgstr[0] "%d Tabel di skema '%s':"
#. no connection at all or not authenticated
#: ../tools/browser/common/objects-cloud.c:266 ../tools/web-server.c:712
@@ -7286,7 +7392,7 @@ msgstr ""
#: ../tools/browser/data-manager/data-console.c:296
msgid "Data Manager"
-msgstr ""
+msgstr "Manajer Data"
#: ../tools/browser/data-manager/data-console.c:296
#: ../tools/browser/data-manager/data-console.c:515
@@ -7298,10 +7404,9 @@ msgstr "Belum disimpan"
#: ../tools/browser/data-manager/data-console.c:327
#: ../tools/browser/query-exec/query-console.c:330
msgid "Variables' values:"
-msgstr ""
+msgstr "Nilai variabel:"
#: ../tools/browser/data-manager/data-console.c:384
-#, fuzzy
msgid "Reset"
msgstr "Reset"
@@ -7337,7 +7442,7 @@ msgstr ""
#: ../tools/browser/data-manager/data-console.c:410
msgid "View XML"
-msgstr ""
+msgstr "Tilik XML"
#: ../tools/browser/data-manager/data-console.c:410
msgid ""
@@ -7351,27 +7456,30 @@ msgstr "Bantuan"
#: ../tools/browser/data-manager/data-console.c:431
msgid "BBB:"
-msgstr ""
+msgstr "BBB:"
#: ../tools/browser/data-manager/data-console.c:503
#, c-format
msgid "'%s' data manager"
-msgstr ""
+msgstr "Manajer data '%s'"
#: ../tools/browser/data-manager/data-console.c:504
#: ../tools/browser/data-manager/data-console.c:515
#: ../tools/browser/data-manager/data-console.c:548
#: ../tools/browser/data-manager/data-console.c:942
msgid "Data manager"
-msgstr ""
+msgstr "Manajer data"
#: ../tools/browser/data-manager/data-console.c:558
+#, fuzzy
msgid "Could not save data manager"
msgstr ""
+"Tak bisa menyimpan data ke '%s':\n"
+" %s"
#: ../tools/browser/data-manager/data-console.c:584
msgid "Data manager's name"
-msgstr ""
+msgstr "Nama manajer data"
#: ../tools/browser/data-manager/data-console.c:604
#: ../tools/browser/schema-browser/relations-diagram.c:280
@@ -7384,14 +7492,13 @@ msgid "source%d"
msgstr "sumber%d"
#: ../tools/browser/data-manager/data-console.c:767
-#, fuzzy
msgid "Data source from query"
-msgstr "Nama sumber data"
+msgstr "Sumber data dari query"
#: ../tools/browser/data-manager/data-console.c:805
#, c-format
msgid "In schema %s"
-msgstr ""
+msgstr "Di skema %s"
#: ../tools/browser/data-manager/data-console.c:815
#, c-format
@@ -7404,8 +7511,9 @@ msgid ""
msgstr ""
#: ../tools/browser/data-manager/data-console.c:898
+#, fuzzy
msgid "_Toggle mode"
-msgstr ""
+msgstr "Rubah mode layar penuh"
#: ../tools/browser/data-manager/data-console.c:898
msgid "Switch between compose and execute modes"
@@ -7416,7 +7524,7 @@ msgstr ""
#: ../tools/browser/schema-browser/favorite-selector.c:169
#, c-format
msgid "Could not remove favorite: %s"
-msgstr ""
+msgstr "Tak dapat menghapus favorit: %s"
#: ../tools/browser/data-manager/data-favorite-selector.c:258
#: ../tools/browser/data-manager/data-favorite-selector.c:626
@@ -7427,16 +7535,16 @@ msgstr ""
#: ../tools/browser/schema-browser/table-info.c:468
#, c-format
msgid "Could not add favorite: %s"
-msgstr ""
+msgstr "Tak dapat menambah favorit: %s"
#: ../tools/browser/data-manager/data-favorite-selector.c:289
#: ../tools/browser/query-exec/query-favorite-selector.c:273
msgid "Favorite's properties"
-msgstr ""
+msgstr "Properti dari favorit"
#: ../tools/browser/data-manager/data-favorite-selector.c:311
msgid "Specifications"
-msgstr ""
+msgstr "Spesifikasi"
#: ../tools/browser/data-manager/data-favorite-selector.c:482
#: ../tools/browser/query-exec/query-favorite-selector.c:446
@@ -7445,20 +7553,21 @@ msgid "Favorites"
msgstr "Favorit"
#: ../tools/browser/data-manager/data-favorite-selector.c:612
+#, fuzzy
msgid "Unnamed data manager"
-msgstr ""
+msgstr "Nama manajer data"
#: ../tools/browser/data-manager/data-manager-perspective.c:407
#: ../tools/browser/query-exec/query-exec-perspective.c:385
#: ../tools/browser/schema-browser/schema-browser-perspective.c:317
msgid "_Show favorites"
-msgstr ""
+msgstr "_Tampilkan favorit"
#: ../tools/browser/data-manager/data-manager-perspective.c:407
#: ../tools/browser/query-exec/query-exec-perspective.c:385
#: ../tools/browser/schema-browser/schema-browser-perspective.c:317
msgid "Show or hide favorites"
-msgstr ""
+msgstr "Tampilkan atau sembunyikan favorit"
#. Translators: Do not translate "table" nor "query"
#: ../tools/browser/data-manager/data-source.c:401
@@ -7470,22 +7579,22 @@ msgstr ""
#: ../tools/browser/schema-browser/mgr-columns.c:274
#, c-format
msgid "Not ready"
-msgstr ""
+msgstr "Tak siap"
#: ../tools/browser/data-manager/data-source.c:441
#, c-format
msgid "Malformed table name \"%s\""
-msgstr ""
+msgstr "Nama tabel \"%s\" salah bentuk"
#: ../tools/browser/data-manager/data-source.c:458
#, c-format
msgid "Could not find the \"%s\" table"
-msgstr ""
+msgstr "Tak bisa temukan tabel \"%s\""
#: ../tools/browser/data-manager/data-source.c:463
#, c-format
msgid "The \"%s\" object is not a table"
-msgstr ""
+msgstr "Objek \"%s\" bukan tabel"
#. Translators: Do not translate "name"
#: ../tools/browser/data-manager/data-source.c:482
@@ -7521,7 +7630,7 @@ msgstr "Isi dari '%s'"
#: ../tools/browser/data-manager/data-source.c:1242
#, c-format
msgid "Could not build SELECT statement"
-msgstr ""
+msgstr "Tak bisa membangun statement SELECT"
#: ../tools/browser/data-manager/data-source.c:1309
#, c-format
@@ -7549,6 +7658,8 @@ msgid ""
"SELECT\n"
"SQL"
msgstr ""
+"SELECT\n"
+"SQL"
#: ../tools/browser/data-manager/data-source-editor.c:140
msgid ""
@@ -7566,30 +7677,28 @@ msgstr "Memerlukan:"
#: ../tools/browser/data-manager/data-source-editor.c:260
msgid "Exports:"
-msgstr ""
+msgstr "Ekspor:"
#: ../tools/browser/data-manager/data-widget.c:246
msgid "Link to other data"
msgstr ""
#: ../tools/browser/data-manager/data-widget.c:342
-#, fuzzy, c-format
+#, c-format
msgid "Error adding new data source: %s"
-msgstr "Galat saat membuat basis data: %s"
+msgstr "Galat saat menambah sumber data baru: %s"
#: ../tools/browser/data-manager/data-widget.c:387
msgid "Remove data source"
msgstr "Hapus sumber data"
#: ../tools/browser/data-manager/data-widget.c:393
-#, fuzzy
msgid "Show data source's properties"
-msgstr "Properti Sumber Data"
+msgstr "Tampilkan properti sumber data"
#: ../tools/browser/data-manager/data-widget.c:531
-#, fuzzy
msgid "Obtain referenced data in table "
-msgstr "Sisipkan data ke dalam tabel"
+msgstr "Dapatkan data yang dirujuk di tabel"
#: ../tools/browser/data-manager/data-widget.c:548
msgid "List referencing data in "
@@ -7597,30 +7706,29 @@ msgstr ""
#: ../tools/browser/data-manager/data-widget.c:614
msgid "No data source defined"
-msgstr ""
+msgstr "Tak ada definisi sumber data"
#: ../tools/browser/data-manager/data-widget.c:849
msgid "Error: no detail"
-msgstr ""
+msgstr "Galat: tak ada rincian"
#: ../tools/browser/data-manager/ui-spec-editor.c:153
msgid "Data sources:"
msgstr "Sumber data:"
#: ../tools/browser/data-manager/ui-spec-editor.c:204
-#, fuzzy
msgid "Selected data source's properties:"
-msgstr "Properti Sumber Data"
+msgstr "Properti sumber data yang dipilih:"
#: ../tools/browser/data-manager/xml-spec-editor.c:171
-#, c-format
+#, fuzzy, c-format
msgid "Error parsing XML specifications"
-msgstr ""
+msgstr "Kesalahan saat mengurai XML introspeksi: %s\n"
#: ../tools/browser/data-manager/xml-spec-editor.c:185
-#, c-format
+#, fuzzy, c-format
msgid "Expecting <%s> root node"
-msgstr ""
+msgstr "Titik akar diagram"
#: ../tools/browser/data-manager/xml-spec-editor.c:320
#: ../tools/browser/query-exec/query-console.c:309
@@ -7630,7 +7738,7 @@ msgstr ""
#: ../tools/browser/query-exec/query-console.c:283
#: ../tools/browser/query-exec/query-console.c:1078
msgid "Query editor"
-msgstr ""
+msgstr "Penyunting query"
#: ../tools/browser/query-exec/query-console.c:357
#: ../tools/browser/query-exec/query-console.c:421
@@ -7697,7 +7805,7 @@ msgstr "Hasil Eksekusi:"
#: ../tools/browser/query-exec/query-console.c:677
#: ../tools/browser/query-exec/query-favorite-selector.c:583
msgid "Unnamed query"
-msgstr ""
+msgstr "Query tak bernama"
#: ../tools/browser/query-exec/query-console.c:767
msgid "Invalid variable's contents"
@@ -7723,7 +7831,7 @@ msgstr ""
#: ../tools/browser/schema-browser/table-info.c:548
#, c-format
msgid "Error executing query: %s"
-msgstr ""
+msgstr "Galat saat mengeksekusi query: %s"
#: ../tools/browser/query-exec/query-console.c:920
#: ../tools/browser/query-exec/query-console.c:971
@@ -7733,10 +7841,12 @@ msgid ""
"Error executing query:\n"
"%s"
msgstr ""
+"Galat saat mengeksekusi query:\n"
+"%s"
#: ../tools/browser/query-exec/query-console.c:931
msgid "Statement executed"
-msgstr ""
+msgstr "Statement dieksekusi"
#: ../tools/browser/query-exec/query-console.c:940
msgid ""
@@ -7754,15 +7864,16 @@ msgstr "_Jalankan"
#: ../tools/browser/query-exec/query-console.c:1028
msgid "Execute query"
-msgstr ""
+msgstr "Eksekusi query"
#: ../tools/browser/query-exec/query-console.c:1031
msgid "_Undo"
msgstr "_Batalkan"
#: ../tools/browser/query-exec/query-console.c:1031
+#, fuzzy
msgid "Undo last change"
-msgstr ""
+msgstr "Batalkan perubahan teks terakhir"
#: ../tools/browser/query-exec/query-editor.c:1186
msgid "In the future:\n"
@@ -7796,7 +7907,7 @@ msgstr "_Query"
#: ../tools/browser/query-exec/query-exec-perspective.c:390
msgid "_New editor"
-msgstr ""
+msgstr "Pe_nyunting baru"
#: ../tools/browser/query-exec/query-exec-perspective.c:390
msgid "Open a new query editor"
@@ -7820,7 +7931,7 @@ msgstr "Parameter Eksekusi"
#: ../tools/browser/query-exec/query-result.c:327
msgid "No result selected"
-msgstr ""
+msgstr "Tak ada hasil yang dipilih"
#: ../tools/browser/query-exec/query-result.c:386
msgid "Number of rows impacted:"
@@ -7842,11 +7953,11 @@ msgstr ""
#: ../tools/browser/schema-browser/mgr-columns.c:390
msgid "Auto incremented"
-msgstr ""
+msgstr "Bertambah otomatis"
#: ../tools/browser/schema-browser/objects-index.c:170
msgid "Tables' index"
-msgstr ""
+msgstr "Indeks tabel"
#: ../tools/browser/schema-browser/perspective-main.c:32
msgid "Schema browser"
@@ -7895,19 +8006,21 @@ msgstr "_Isi"
#: ../tools/browser/schema-browser/relations-diagram.c:513
msgid "View contents"
-msgstr ""
+msgstr "Tilik isi"
#: ../tools/browser/schema-browser/schema-browser-perspective.c:416
+#, fuzzy
msgid "Could not load diagram"
-msgstr ""
+msgstr "Tak bisa menyimpan diagram"
#: ../tools/browser/schema-browser/table-columns.c:228
+#, fuzzy
msgid "Foreign key on "
-msgstr ""
+msgstr "Operasi key pada direktori"
#: ../tools/browser/schema-browser/table-columns.c:303
msgid "Unique constraint"
-msgstr ""
+msgstr "Konstrain unik"
#: ../tools/browser/schema-browser/table-columns.c:334
msgid "Tables referencing this one"
@@ -7938,7 +8051,7 @@ msgstr "Preferensi"
#: ../tools/browser/schema-browser/table-info.c:527
msgid "Data successfully inserted"
-msgstr ""
+msgstr "Data berhasil disisipkan"
#: ../tools/browser/schema-browser/table-info.c:666
msgid "Meta data not yet available"
@@ -8031,68 +8144,68 @@ msgid ""
"data entry"
msgstr ""
-#: ../tools/command-exec.c:329
+#: ../tools/command-exec.c:336
msgid "History is not supported"
msgstr "Riwayat tak didukung"
-#: ../tools/command-exec.c:342 ../tools/command-exec.c:378
-#: ../tools/command-exec.c:421 ../tools/command-exec.c:463
-#: ../tools/command-exec.c:596 ../tools/gda-sql.c:2992 ../tools/gda-sql.c:4125
-#: ../tools/gda-sql.c:4215 ../tools/gda-sql.c:4440 ../tools/gda-sql.c:4541
+#: ../tools/command-exec.c:349 ../tools/command-exec.c:385
+#: ../tools/command-exec.c:428 ../tools/command-exec.c:470
+#: ../tools/command-exec.c:603 ../tools/gda-sql.c:2994 ../tools/gda-sql.c:4127
+#: ../tools/gda-sql.c:4217 ../tools/gda-sql.c:4442 ../tools/gda-sql.c:4543
msgid "No current connection"
msgstr "Kini tak ada koneksi"
-#: ../tools/command-exec.c:405
+#: ../tools/command-exec.c:412
msgid "List of tables"
msgstr "Daftar tabel"
-#: ../tools/command-exec.c:447
+#: ../tools/command-exec.c:454
msgid "List of views"
msgstr "Daftar view"
-#: ../tools/command-exec.c:487
+#: ../tools/command-exec.c:494
msgid "List of schemas"
msgstr "Daftar skema"
-#: ../tools/command-exec.c:561 ../tools/command-exec.c:686
+#: ../tools/command-exec.c:568 ../tools/command-exec.c:693
msgid "No object found"
msgstr "Objek tak ada yang ditemukan"
-#: ../tools/command-exec.c:640
+#: ../tools/command-exec.c:647
msgid "Schema"
msgstr "Skema"
-#: ../tools/command-exec.c:715 ../tools/web-server.c:925
+#: ../tools/command-exec.c:722 ../tools/web-server.c:925
msgid "Column"
msgstr "Kolom"
-#: ../tools/command-exec.c:717 ../tools/web-server.c:927
+#: ../tools/command-exec.c:724 ../tools/web-server.c:927
msgid "Nullable"
msgstr ""
-#: ../tools/command-exec.c:719 ../tools/web-server.c:929
+#: ../tools/command-exec.c:726 ../tools/web-server.c:929
msgid "Extra"
msgstr "Ekstra"
-#: ../tools/command-exec.c:722
+#: ../tools/command-exec.c:729
#, c-format
msgid "List of columns for view '%s'"
-msgstr ""
+msgstr "Daftar kolom bagi view '%s'"
-#: ../tools/command-exec.c:726
+#: ../tools/command-exec.c:733
#, c-format
msgid "List of columns for table '%s'"
-msgstr ""
+msgstr "Daftar kolom bagi tabel '%s'"
-#: ../tools/command-exec.c:738 ../tools/web-server.c:940
+#: ../tools/command-exec.c:745 ../tools/web-server.c:940
msgid "yes"
msgstr "ya"
-#: ../tools/command-exec.c:738 ../tools/web-server.c:940
+#: ../tools/command-exec.c:745 ../tools/web-server.c:940
msgid "no"
msgstr "tidak"
-#: ../tools/command-exec.c:770
+#: ../tools/command-exec.c:777
#, c-format
msgid "View definition: %s"
msgstr "Definisi view: %s"
@@ -8104,12 +8217,12 @@ msgstr ""
#: ../tools/gda-list-server-op.c:39
#, c-format
msgid "Using XML descriptions in %s\n"
-msgstr ""
+msgstr "Memakai deskripsi XML dalam %s\n"
#: ../tools/gda-list-server-op.c:46
#, c-format
msgid "Could not create provider object: %s\n"
-msgstr ""
+msgstr "Tak bisa membuat objek penyedia: %s\n"
#: ../tools/gda-list-server-op.c:55
#, c-format
@@ -8124,7 +8237,7 @@ msgstr ""
#: ../tools/gda-list-server-op.c:75
#, c-format
msgid "Description for type: %s\n"
-msgstr ""
+msgstr "Keterangan bagi jenis: %s\n"
#: ../tools/gda-list-server-op.c:88
#, c-format
@@ -8165,12 +8278,12 @@ msgstr ""
#: ../tools/gda-sql.c:264
#, c-format
msgid "Opening connection '%s' for: %s\n"
-msgstr ""
+msgstr "Membuka koneksi '%s' bagi: %s\n"
#: ../tools/gda-sql.c:268
#, c-format
msgid "Can't open connection %d: %s\n"
-msgstr ""
+msgstr "Tak bisa membuka koneksi %d: %s\n"
#: ../tools/gda-sql.c:280
#, c-format
@@ -8193,11 +8306,11 @@ msgstr "Koneksi ditutup"
#: ../tools/gda-sql.c:780
msgid "Invalid unnamed command"
-msgstr ""
+msgstr "Perintah tanpa nama yang tak valid"
#: ../tools/gda-sql.c:891
msgid "Unknown internal command"
-msgstr ""
+msgstr "Perintah internal tak dikenal"
#: ../tools/gda-sql.c:897
msgid "Internal command not correctly defined"
@@ -8205,582 +8318,581 @@ msgstr ""
#: ../tools/gda-sql.c:903
msgid "Incomplete internal command"
-msgstr ""
+msgstr "Perintah internal tak lengkap"
#: ../tools/gda-sql.c:1013
#, c-format
msgid "Could not interpret the '%s' parameter's value"
-msgstr ""
+msgstr "Tak bisa menginterpretasi nilai bagi parameter '%s'"
#: ../tools/gda-sql.c:1030
#, c-format
msgid "No internal parameter named '%s' required by query"
msgstr ""
-#: ../tools/gda-sql.c:1147
+#: ../tools/gda-sql.c:1149
#, c-format
msgid "Can't open file '%s' for writing: %s\n"
msgstr ""
-#: ../tools/gda-sql.c:1160
-#, c-format
+#: ../tools/gda-sql.c:1162
+#, fuzzy, c-format
msgid "Can't open pipe '%s': %s\n"
-msgstr ""
+msgstr "Tak bisa membuka direktori"
-#: ../tools/gda-sql.c:1199
+#: ../tools/gda-sql.c:1201
#, c-format
msgid "Can't open file '%s' for reading: %s\n"
msgstr ""
-#: ../tools/gda-sql.c:1266 ../tools/gda-sql.c:3232
+#: ../tools/gda-sql.c:1268 ../tools/gda-sql.c:3234
#, c-format
msgid "Connection name '%s' is invalid"
msgstr "Nama koneksi '%s' tak valid"
-#: ../tools/gda-sql.c:1332
+#: ../tools/gda-sql.c:1334
#, c-format
msgid "\tUsername for '%s': "
msgstr "\tNama pengguna bagi '%s':"
-#: ../tools/gda-sql.c:1339
+#: ../tools/gda-sql.c:1341
#, c-format
msgid "No username for '%s'"
msgstr "Tak ada nama pengguna bagi '%s'"
-#: ../tools/gda-sql.c:1354
+#: ../tools/gda-sql.c:1356
#, c-format
msgid "\tPassword for '%s': "
msgstr "\tKata sandi bagi '%s':"
-#: ../tools/gda-sql.c:1363
+#: ../tools/gda-sql.c:1365
#, c-format
msgid "No password for '%s'"
msgstr "Tak ada kata sandi bagi '%s'"
-#: ../tools/gda-sql.c:1436
+#: ../tools/gda-sql.c:1438
#, c-format
msgid ""
"All the meta data associated to the '%s' connection will be stored in the '%"
"s' file\n"
msgstr ""
-#: ../tools/gda-sql.c:1464
+#: ../tools/gda-sql.c:1466
#, c-format
msgid "Error getting meta data in background: %s\n"
msgstr ""
-#: ../tools/gda-sql.c:1472 ../tools/gda-sql.c:1609
+#: ../tools/gda-sql.c:1474 ../tools/gda-sql.c:1611
#, c-format
msgid ""
"Getting database schema information for connection '%s', this may take some "
"time... "
msgstr ""
-#: ../tools/gda-sql.c:1479 ../tools/gda-sql.c:1616 ../tools/gda-sql.c:3048
+#: ../tools/gda-sql.c:1481 ../tools/gda-sql.c:1618 ../tools/gda-sql.c:3050
#, c-format
msgid "error: %s\n"
msgstr "galat: %s\n"
-#: ../tools/gda-sql.c:1486 ../tools/gda-sql.c:1623 ../tools/gda-sql.c:3055
+#: ../tools/gda-sql.c:1488 ../tools/gda-sql.c:1625 ../tools/gda-sql.c:3057
#, c-format
msgid "Done.\n"
msgstr "Selesai.\n"
-#: ../tools/gda-sql.c:1750
+#: ../tools/gda-sql.c:1752
#, c-format
msgid "(%d row)"
msgid_plural "(%d rows)"
msgstr[0] "(%d baris)"
-#: ../tools/gda-sql.c:1852 ../tools/gda-sql.c:2872
+#: ../tools/gda-sql.c:1854 ../tools/gda-sql.c:2874
msgid "Installed providers list"
msgstr "Daftar penyedia terpasang"
-#: ../tools/gda-sql.c:1997 ../tools/gda-sql.c:2192 ../tools/gda-sql.c:2264
-#: ../tools/gda-sql.c:2276
+#: ../tools/gda-sql.c:1999 ../tools/gda-sql.c:2194 ../tools/gda-sql.c:2266
+#: ../tools/gda-sql.c:2278
#, c-format
msgid "%s [FILE]"
msgstr "%s [BERKAS]"
-#: ../tools/gda-sql.c:1998
+#: ../tools/gda-sql.c:2000
msgid "Show commands history, or save it to file"
msgstr ""
-#: ../tools/gda-sql.c:2008 ../tools/gda-sql.c:2020 ../tools/gda-sql.c:2032
-#: ../tools/gda-sql.c:2044 ../tools/gda-sql.c:2056 ../tools/gda-sql.c:2068
-#: ../tools/gda-sql.c:2081
+#: ../tools/gda-sql.c:2010 ../tools/gda-sql.c:2022 ../tools/gda-sql.c:2034
+#: ../tools/gda-sql.c:2046 ../tools/gda-sql.c:2058 ../tools/gda-sql.c:2070
+#: ../tools/gda-sql.c:2083
msgid "Information"
msgstr "Informasi"
-#: ../tools/gda-sql.c:2009
+#: ../tools/gda-sql.c:2011
#, c-format
msgid "%s [META DATA TYPE]"
msgstr "%s [JENIS META DATA]"
-#: ../tools/gda-sql.c:2010
+#: ../tools/gda-sql.c:2012
msgid ""
"Force reading the database meta data (or part of the meta data, ex:\"tables"
"\")"
msgstr ""
-#: ../tools/gda-sql.c:2021
+#: ../tools/gda-sql.c:2023
#, c-format
msgid "%s [TABLE]"
msgstr "%s [TABEL]"
-#: ../tools/gda-sql.c:2022
+#: ../tools/gda-sql.c:2024
msgid "List all tables (or named table)"
msgstr ""
-#: ../tools/gda-sql.c:2033
+#: ../tools/gda-sql.c:2035
#, c-format
msgid "%s [VIEW]"
msgstr "%s [VIEW]"
-#: ../tools/gda-sql.c:2034
+#: ../tools/gda-sql.c:2036
msgid "List all views (or named view)"
msgstr ""
-#: ../tools/gda-sql.c:2045
+#: ../tools/gda-sql.c:2047
#, c-format
msgid "%s [SCHEMA]"
msgstr "%s [SKEMA]"
-#: ../tools/gda-sql.c:2046
+#: ../tools/gda-sql.c:2048
msgid "List all schemas (or named schema)"
msgstr ""
-#: ../tools/gda-sql.c:2057
+#: ../tools/gda-sql.c:2059
#, c-format
msgid "%s [OBJ_NAME|SCHEMA.*]"
-msgstr ""
+msgstr "%s [NAMA_OBJ|SCHEMA.*]"
-#: ../tools/gda-sql.c:2058
+#: ../tools/gda-sql.c:2060
msgid "Describe object or full list of objects"
msgstr ""
-#: ../tools/gda-sql.c:2069
+#: ../tools/gda-sql.c:2071
#, c-format
msgid "%s [TABLE1 [TABLE2...]]"
msgstr "%s [TABEL1 [TABEL2...]]"
-#: ../tools/gda-sql.c:2070
+#: ../tools/gda-sql.c:2072
msgid "Create a graph of all or the listed tables"
msgstr ""
-#: ../tools/gda-sql.c:2082
+#: ../tools/gda-sql.c:2084
#, c-format
msgid "%s [port [authentication token]]"
msgstr ""
-#: ../tools/gda-sql.c:2083
+#: ../tools/gda-sql.c:2085
msgid "Start/stop embedded HTTP server (on given port or on 12345 by default)"
msgstr ""
-#: ../tools/gda-sql.c:2096
+#: ../tools/gda-sql.c:2098
#, c-format
msgid "%s [CNC_NAME [DSN|CONNECTION STRING]]"
-msgstr ""
+msgstr "%s [NAMA_CNC [DSN|STRING KONEKSI]]"
-#: ../tools/gda-sql.c:2097
+#: ../tools/gda-sql.c:2099
msgid "Opens a new connection or lists opened connections"
msgstr ""
-#: ../tools/gda-sql.c:2108
+#: ../tools/gda-sql.c:2110
#, c-format
msgid "%s [CNC_NAME]"
msgstr "%s [NAMA_CNC]"
-#: ../tools/gda-sql.c:2109
+#: ../tools/gda-sql.c:2111
msgid "Close a connection"
msgstr "Tutup koneksi"
-#: ../tools/gda-sql.c:2120
+#: ../tools/gda-sql.c:2122
#, c-format
msgid "%s CNC_NAME CNC_NAME1 CNC_NAME2 [CNC_NAME ...]"
msgstr ""
-#: ../tools/gda-sql.c:2121
+#: ../tools/gda-sql.c:2123
msgid "Bind several connections together into the CNC_NAME virtual connection"
msgstr ""
-#: ../tools/gda-sql.c:2131 ../tools/gda-sql.c:2143 ../tools/gda-sql.c:2155
-#: ../tools/gda-sql.c:2167
+#: ../tools/gda-sql.c:2133 ../tools/gda-sql.c:2145 ../tools/gda-sql.c:2157
+#: ../tools/gda-sql.c:2169
msgid "DSN (data sources) management"
msgstr ""
-#: ../tools/gda-sql.c:2132
+#: ../tools/gda-sql.c:2134
#, c-format
msgid "%s [DSN]"
msgstr "%s [DSN]"
-#: ../tools/gda-sql.c:2133
+#: ../tools/gda-sql.c:2135
msgid "List all DSN (or named DSN's attributes)"
msgstr ""
-#: ../tools/gda-sql.c:2144
+#: ../tools/gda-sql.c:2146
#, c-format
msgid "%s DSN_NAME DSN_DEFINITION [DESCRIPTION]"
msgstr ""
-#: ../tools/gda-sql.c:2145
+#: ../tools/gda-sql.c:2147
msgid "Create (or modify) a DSN"
-msgstr ""
+msgstr "Buat (atau ubah) suatu DSN"
-#: ../tools/gda-sql.c:2156
+#: ../tools/gda-sql.c:2158
#, c-format
msgid "%s DSN_NAME [DSN_NAME...]"
-msgstr ""
+msgstr "%s NAMA_DSN [NAMA_DSN...]"
-#: ../tools/gda-sql.c:2157
+#: ../tools/gda-sql.c:2159
msgid "Remove a DSN"
msgstr "Hapus suatu DSN"
-#: ../tools/gda-sql.c:2168
+#: ../tools/gda-sql.c:2170
#, c-format
msgid "%s [PROVIDER]"
msgstr "%s [PENYEDIA]"
-#: ../tools/gda-sql.c:2169
+#: ../tools/gda-sql.c:2171
msgid "List all installed database providers (or named one's attributes)"
msgstr ""
-#: ../tools/gda-sql.c:2179 ../tools/gda-sql.c:2191 ../tools/gda-sql.c:2203
-#: ../tools/gda-sql.c:2215
+#: ../tools/gda-sql.c:2181 ../tools/gda-sql.c:2193 ../tools/gda-sql.c:2205
+#: ../tools/gda-sql.c:2217
msgid "Input/Output"
msgstr "Masukan/Keluaran"
-#: ../tools/gda-sql.c:2180 ../tools/gda-sql.c:2312
+#: ../tools/gda-sql.c:2182 ../tools/gda-sql.c:2314
#, c-format
msgid "%s FILE"
msgstr "%s BERKAS"
-#: ../tools/gda-sql.c:2181
+#: ../tools/gda-sql.c:2183
msgid "Execute commands from file"
msgstr "Eksekusi perintah dari berkas"
-#: ../tools/gda-sql.c:2193
+#: ../tools/gda-sql.c:2195
msgid "Send output to a file or |pipe"
msgstr "Kirim keluaran ke suatu berkas atau |pipe"
-#: ../tools/gda-sql.c:2204 ../tools/gda-sql.c:2216
+#: ../tools/gda-sql.c:2206 ../tools/gda-sql.c:2218
#, c-format
msgid "%s [TEXT]"
msgstr "%s [TEKS]"
-#: ../tools/gda-sql.c:2205
+#: ../tools/gda-sql.c:2207
msgid "Send output to stdout"
msgstr "Kirim keluaran ke stdout"
-#: ../tools/gda-sql.c:2217
+#: ../tools/gda-sql.c:2219
msgid "Send output to output stream"
msgstr "Kirim keluaran ke stream keluaran"
-#: ../tools/gda-sql.c:2229
+#: ../tools/gda-sql.c:2231
msgid "Quit"
msgstr "Keluar"
-#: ../tools/gda-sql.c:2240
+#: ../tools/gda-sql.c:2242
#, c-format
msgid "%s [DIR]"
msgstr "%s [DIR]"
-#: ../tools/gda-sql.c:2241
+#: ../tools/gda-sql.c:2243
msgid "Change the current working directory"
msgstr "Ubah direktori kerja kini"
-#: ../tools/gda-sql.c:2253
+#: ../tools/gda-sql.c:2255
msgid "Show usage and distribution terms"
msgstr "Tampilkan syarat distribusi dan penggunaan"
-#: ../tools/gda-sql.c:2263 ../tools/gda-sql.c:2275 ../tools/gda-sql.c:2287
-#: ../tools/gda-sql.c:2299 ../tools/gda-sql.c:2311 ../tools/gda-sql.c:2323
-#: ../tools/gda-sql.c:2335 ../tools/gda-sql.c:2347 ../tools/gda-sql.c:2359
-#: ../tools/gda-sql.c:2371 ../tools/gda-sql.c:2383 ../tools/gda-sql.c:2420
-#: ../tools/gda-sql.c:2432
+#: ../tools/gda-sql.c:2265 ../tools/gda-sql.c:2277 ../tools/gda-sql.c:2289
+#: ../tools/gda-sql.c:2301 ../tools/gda-sql.c:2313 ../tools/gda-sql.c:2325
+#: ../tools/gda-sql.c:2337 ../tools/gda-sql.c:2349 ../tools/gda-sql.c:2361
+#: ../tools/gda-sql.c:2373 ../tools/gda-sql.c:2385 ../tools/gda-sql.c:2422
+#: ../tools/gda-sql.c:2434
msgid "Query buffer"
msgstr "Penyangga query"
-#: ../tools/gda-sql.c:2265
+#: ../tools/gda-sql.c:2267
msgid "Edit the query buffer (or file) with external editor"
msgstr ""
-#: ../tools/gda-sql.c:2277
+#: ../tools/gda-sql.c:2279
msgid "Reset the query buffer (fill buffer with contents of file)"
msgstr ""
-#: ../tools/gda-sql.c:2289
+#: ../tools/gda-sql.c:2291
msgid "Show the contents of the query buffer"
msgstr ""
-#: ../tools/gda-sql.c:2300
+#: ../tools/gda-sql.c:2302
#, c-format
msgid "%s [QUERY_BUFFER_NAME]"
-msgstr ""
+msgstr "%s [NAMA_SINGGAHAN_QUERY]"
-#: ../tools/gda-sql.c:2301
+#: ../tools/gda-sql.c:2303
msgid "Execute contents of query buffer, or named query buffer"
msgstr ""
-#: ../tools/gda-sql.c:2313
+#: ../tools/gda-sql.c:2315
msgid "Write query buffer to file"
-msgstr ""
+msgstr "Tulis singgahan query ke berkas"
-#: ../tools/gda-sql.c:2324 ../tools/gda-sql.c:2336 ../tools/gda-sql.c:2348
+#: ../tools/gda-sql.c:2326 ../tools/gda-sql.c:2338 ../tools/gda-sql.c:2350
#, c-format
msgid "%s QUERY_BUFFER_NAME"
-msgstr ""
+msgstr "%s NAMA_SINGGAHAN_QUERY"
-#: ../tools/gda-sql.c:2325
+#: ../tools/gda-sql.c:2327
msgid "Save query buffer to dictionary"
-msgstr ""
+msgstr "Simpan singgahan query ke kamus"
-#: ../tools/gda-sql.c:2337
+#: ../tools/gda-sql.c:2339
msgid "Load query buffer from dictionary"
-msgstr ""
+msgstr "Muat singgahan query dari kamus"
-#: ../tools/gda-sql.c:2349
+#: ../tools/gda-sql.c:2351
msgid "Delete query buffer from dictionary"
-msgstr ""
+msgstr "Hapus singgahan query dari kamus"
-#: ../tools/gda-sql.c:2360
+#: ../tools/gda-sql.c:2362
#, c-format
msgid "%s"
msgstr "%s"
-#: ../tools/gda-sql.c:2361
+#: ../tools/gda-sql.c:2363
msgid "List all saved query buffers in dictionary"
msgstr ""
-#: ../tools/gda-sql.c:2372
+#: ../tools/gda-sql.c:2374
#, c-format
msgid "%s [NAME [VALUE|_null_]]"
-msgstr ""
+msgstr "%s [NAMA [NILAI|_null_]]"
-#: ../tools/gda-sql.c:2373
+#: ../tools/gda-sql.c:2375
msgid "Set or show internal parameter, or list all if no parameters"
msgstr ""
-#: ../tools/gda-sql.c:2384
+#: ../tools/gda-sql.c:2386
#, c-format
msgid "%s [NAME]"
msgstr "%s [NAMA]"
-#: ../tools/gda-sql.c:2385
+#: ../tools/gda-sql.c:2387
msgid "Unset (delete) internal named parameter (or all parameters)"
msgstr ""
-#: ../tools/gda-sql.c:2395
-#, fuzzy
+#: ../tools/gda-sql.c:2397
msgid "Formatting"
-msgstr "Memformat %s (%s)"
+msgstr "Memformat"
-#: ../tools/gda-sql.c:2397
+#: ../tools/gda-sql.c:2399
msgid "Set output format"
msgstr "Tata bentuk keluaran"
-#: ../tools/gda-sql.c:2421
+#: ../tools/gda-sql.c:2423
#, c-format
msgid "%s [NAME|TABLE COLUMN ROW_CONDITION] FILE"
msgstr ""
-#: ../tools/gda-sql.c:2422
+#: ../tools/gda-sql.c:2424
msgid "Export internal parameter or table's value to the FILE file"
msgstr ""
-#: ../tools/gda-sql.c:2433
+#: ../tools/gda-sql.c:2435
#, c-format
msgid "%s NAME [FILE|TABLE COLUMN ROW_CONDITION]"
msgstr ""
-#: ../tools/gda-sql.c:2434
+#: ../tools/gda-sql.c:2436
msgid ""
"Set internal parameter as the contents of the FILE file or from an existing "
"table's value"
msgstr ""
-#: ../tools/gda-sql.c:2447
+#: ../tools/gda-sql.c:2449
msgid "List all available commands"
msgstr ""
-#: ../tools/gda-sql.c:2512
+#: ../tools/gda-sql.c:2514
#, c-format
msgid "Unknown output format: '%s', reset to default"
msgstr ""
-#: ../tools/gda-sql.c:2657 ../tools/gda-sql.c:2832
+#: ../tools/gda-sql.c:2659 ../tools/gda-sql.c:2834
msgid "Attribute"
msgstr "Atribut"
-#: ../tools/gda-sql.c:2660
+#: ../tools/gda-sql.c:2662
#, c-format
msgid "DSN '%s' description"
-msgstr ""
+msgstr "Deskripsi DSN '%s'"
-#: ../tools/gda-sql.c:2688
+#: ../tools/gda-sql.c:2690
#, c-format
msgid "Could not find any DSN named '%s'"
-msgstr ""
+msgstr "Tak bisa temukan DSN bernama '%s'"
-#: ../tools/gda-sql.c:2699
+#: ../tools/gda-sql.c:2701
msgid "DSN list"
msgstr "Daftar DSN"
-#: ../tools/gda-sql.c:2751 ../tools/gda-sql.c:4564
+#: ../tools/gda-sql.c:2753 ../tools/gda-sql.c:4566
msgid "Missing arguments"
msgstr "Argumen hilang"
-#: ../tools/gda-sql.c:2772
+#: ../tools/gda-sql.c:2774
msgid "Missing provider name"
msgstr "Nama penyedia hilang"
-#: ../tools/gda-sql.c:2795
+#: ../tools/gda-sql.c:2797
msgid "Missing DSN name"
msgstr "Nama DSN hilang"
-#: ../tools/gda-sql.c:2835
+#: ../tools/gda-sql.c:2837
#, c-format
msgid "Provider '%s' description"
msgstr "Keterangan penyedia '%s'"
-#: ../tools/gda-sql.c:2863
+#: ../tools/gda-sql.c:2865
#, c-format
msgid "Could not find any provider named '%s'"
msgstr "Tak bisa temukan penyedia bernama '%s'"
-#: ../tools/gda-sql.c:2938 ../tools/gda-sql.c:3227
+#: ../tools/gda-sql.c:2940 ../tools/gda-sql.c:3229
#, c-format
msgid "A connection named '%s' already exists"
msgstr "Koneksi bernama '%s' telah ada"
-#: ../tools/gda-sql.c:3042
+#: ../tools/gda-sql.c:3044
#, c-format
msgid "Getting database schema information, this may take some time... "
msgstr ""
-#: ../tools/gda-sql.c:3077
+#: ../tools/gda-sql.c:3079
msgid "No opened connection"
msgstr "Tak ada koneksi terbuka"
-#: ../tools/gda-sql.c:3088
+#: ../tools/gda-sql.c:3090
msgid "DSN or connection string"
msgstr "String koneksi atau DSN"
-#: ../tools/gda-sql.c:3179
+#: ../tools/gda-sql.c:3181
msgid "No connection currently opened"
msgstr "Tak ada koneksi yang kini terbuka"
-#: ../tools/gda-sql.c:3219
+#: ../tools/gda-sql.c:3221
msgid "Missing required connection names"
msgstr "Kehilangan nama koneksi yang diperlukan"
#. add existing connections to virtual connection
-#: ../tools/gda-sql.c:3256
+#: ../tools/gda-sql.c:3258
msgid "Bound connections are as:"
msgstr ""
-#: ../tools/gda-sql.c:3359
+#: ../tools/gda-sql.c:3361
#, c-format
msgid "Could not get home directory: %s"
msgstr "Tak bisa mendapat direktori home: %s"
-#: ../tools/gda-sql.c:3385
+#: ../tools/gda-sql.c:3387
#, c-format
msgid "Working directory is now: %s"
msgstr "Direktori kerja kini: %s"
-#: ../tools/gda-sql.c:3389
+#: ../tools/gda-sql.c:3391
#, c-format
msgid "Could not change working directory to '%s': %s"
msgstr "Tak bisa mengubah direktori kerja ke '%s': %s"
-#: ../tools/gda-sql.c:3416 ../tools/gda-sql.c:3519 ../tools/gda-sql.c:3562
-#: ../tools/gda-sql.c:3591 ../tools/gda-sql.c:3632 ../tools/gda-sql.c:3683
-#: ../tools/gda-sql.c:3736 ../tools/gda-sql.c:3827 ../tools/gda-sql.c:3899
+#: ../tools/gda-sql.c:3418 ../tools/gda-sql.c:3521 ../tools/gda-sql.c:3564
+#: ../tools/gda-sql.c:3593 ../tools/gda-sql.c:3634 ../tools/gda-sql.c:3685
+#: ../tools/gda-sql.c:3738 ../tools/gda-sql.c:3829 ../tools/gda-sql.c:3901
msgid "No connection opened"
msgstr "Tak ada koneksi terbuka"
-#: ../tools/gda-sql.c:3434
+#: ../tools/gda-sql.c:3436
#, c-format
msgid "Could not write to temporary file '%s': %s"
msgstr "Tak bisa menulis ke berkas temporer '%s': %s"
-#: ../tools/gda-sql.c:3470
+#: ../tools/gda-sql.c:3472
#, c-format
msgid "could not start editor '%s'"
-msgstr ""
+msgstr "tak bisa memulai penyunting '%s'"
-#: ../tools/gda-sql.c:3475
+#: ../tools/gda-sql.c:3477
#, c-format
msgid "Could not start /bin/sh"
-msgstr ""
+msgstr "Tak bisa memulai /bin/sh"
-#: ../tools/gda-sql.c:3640
+#: ../tools/gda-sql.c:3642
msgid "Missing FILE to write to"
-msgstr ""
+msgstr "Kehilangan BERKAS untuk ditulisi"
-#: ../tools/gda-sql.c:3692 ../tools/gda-sql.c:3758 ../tools/gda-sql.c:3840
-#: ../tools/gda-sql.c:3912
+#: ../tools/gda-sql.c:3694 ../tools/gda-sql.c:3760 ../tools/gda-sql.c:3842
+#: ../tools/gda-sql.c:3914
msgid "Can't initialize dictionary to store query buffers"
msgstr ""
-#: ../tools/gda-sql.c:3711
+#: ../tools/gda-sql.c:3713
msgid "Query buffer name"
-msgstr ""
+msgstr "Nama singgahan query"
-#: ../tools/gda-sql.c:3712
+#: ../tools/gda-sql.c:3714
msgid "SQL"
msgstr "SQL"
-#: ../tools/gda-sql.c:3749 ../tools/gda-sql.c:3878 ../tools/gda-sql.c:3939
+#: ../tools/gda-sql.c:3751 ../tools/gda-sql.c:3880 ../tools/gda-sql.c:3941
msgid "Missing query buffer name"
-msgstr ""
+msgstr "Kehilangan nama singgahan query"
-#: ../tools/gda-sql.c:3806
+#: ../tools/gda-sql.c:3808
msgid "Query buffer is empty"
-msgstr ""
+msgstr "Singgahan query kosong"
-#: ../tools/gda-sql.c:3873
+#: ../tools/gda-sql.c:3875
#, c-format
msgid "Could not find query buffer named '%s'"
-msgstr ""
+msgstr "Tak bisa temukan singgahan query bernama '%s'"
-#: ../tools/gda-sql.c:4003 ../tools/gda-sql.c:4253 ../tools/gda-sql.c:4331
+#: ../tools/gda-sql.c:4005 ../tools/gda-sql.c:4255 ../tools/gda-sql.c:4333
#, c-format
msgid "No parameter named '%s' defined"
-msgstr ""
+msgstr "Parameter bernama '%s' tak didefinisikan"
-#: ../tools/gda-sql.c:4014
+#: ../tools/gda-sql.c:4016
msgid "List of defined parameters"
-msgstr ""
+msgstr "Daftar parameter terdefinisi"
-#: ../tools/gda-sql.c:4070 ../tools/gda-sql.c:4592
+#: ../tools/gda-sql.c:4072 ../tools/gda-sql.c:4594
msgid "Wrong row condition"
-msgstr ""
+msgstr "Kondisi baris salah"
-#: ../tools/gda-sql.c:4098
+#: ../tools/gda-sql.c:4100
msgid "No unique row identified"
-msgstr ""
+msgstr "Baris unik tak teridentifikasi"
-#: ../tools/gda-sql.c:4139 ../tools/gda-sql.c:4231 ../tools/gda-sql.c:4555
+#: ../tools/gda-sql.c:4141 ../tools/gda-sql.c:4233 ../tools/gda-sql.c:4557
#, c-format
msgid "Too many arguments"
msgstr "Terlalu banyak argumen"
-#: ../tools/gda-sql.c:4187 ../tools/gda-sql.c:4259
+#: ../tools/gda-sql.c:4189 ../tools/gda-sql.c:4261
msgid "Wrong number of arguments"
msgstr "Cacah argumen salah"
-#: ../tools/gda-sql.c:4271 ../tools/gda-sql.c:4285
+#: ../tools/gda-sql.c:4273 ../tools/gda-sql.c:4287
msgid "Could not write file"
msgstr "Tak bisa menulis berkas"
-#: ../tools/gda-sql.c:4410
+#: ../tools/gda-sql.c:4412
#, c-format
msgid "Graph written to '%s'\n"
msgstr ""
-#: ../tools/gda-sql.c:4413
+#: ../tools/gda-sql.c:4415
#, c-format
msgid ""
"Graph written to '%s'\n"
@@ -8790,23 +8902,23 @@ msgid ""
"to view the graph\n"
msgstr ""
-#: ../tools/gda-sql.c:4484
+#: ../tools/gda-sql.c:4486
msgid "HTTPD server stopped"
msgstr "Server HTTPD dihentikan"
-#: ../tools/gda-sql.c:4503
+#: ../tools/gda-sql.c:4505
msgid "Could not start HTTPD server"
msgstr "Tak bisa memulai server HTTPD"
-#: ../tools/gda-sql.c:4507
+#: ../tools/gda-sql.c:4509
msgid "HTTPD server started"
msgstr "Server HTTP dijalankan"
-#: ../tools/gda-sql.c:4512
+#: ../tools/gda-sql.c:4514
msgid "Invalid port specification"
msgstr "Spesifikasi port tak valid"
-#: ../tools/gda-sql.c:4726
+#: ../tools/gda-sql.c:4728
#, c-format
msgid "Command is incomplete"
msgstr "Perintah tak lengkap"
@@ -8822,7 +8934,7 @@ msgstr "Konsol"
#: ../tools/tools-input.c:322
#, c-format
msgid "Could not save history file to '%s': %s"
-msgstr ""
+msgstr "Tak bisa menyimpan berkas riwayat ke '%s': %s"
#: ../tools/web-server.c:566 ../tools/web-server.c:567
msgid "Authentication required"
@@ -8886,9 +8998,9 @@ msgid "Trigger '%s' for the '%s.%s' table:"
msgstr "Trigger '%s' bagi tabel '%s.%s':"
#: ../tools/web-server.c:1366
-#, c-format
+#, fuzzy, c-format
msgid "Trigger fired for: %s"
-msgstr ""
+msgstr "Trigger '%s' bagi tabel '%s.%s':"
#: ../tools/web-server.c:1370
#, c-format
diff --git a/providers/Makefile.am b/providers/Makefile.am
index c783825..80aa813 100644
--- a/providers/Makefile.am
+++ b/providers/Makefile.am
@@ -6,10 +6,6 @@ if BDBSQL
GDA_BDBSQL_SERVER=bdbsql
endif
-if IBMDB2
-GDA_IBMDB2_SERVER=ibmdb2
-endif
-
if FIREBIRD
GDA_FIREBIRD_SERVER=firebird
endif
@@ -22,14 +18,6 @@ if MYSQL
GDA_MYSQL_SERVER=mysql
endif
-if MSQL
-GDA_MSQL_SERVER=msql
-endif
-
-if ODBC
-GDA_ODBC_SERVER=odbc
-endif
-
if ORACLE
GDA_ORACLE_SERVER=oracle
endif
@@ -38,22 +26,6 @@ if POSTGRES
GDA_POSTGRES_SERVER=postgres
endif
-if SYBASE
-GDA_SYBASE_SERVER=sybase
-endif
-
-if FREETDS
-GDA_FREETDS_SERVER=freetds
-endif
-
-if XBASE
-GDA_XBASE_SERVER=xbase
-endif
-
-if LDAP
-GDA_LDAP_SERVER=ldap
-endif
-
if JAVA
GDA_JAVA_SERVER=jdbc
endif
@@ -79,11 +51,5 @@ SUBDIRS = \
$(GDA_ORACLE_SERVER) \
$(GDA_WEB_SERVER) \
$(GDA_SQLCIPHER_SERVER)
-# $(GDA_FREETDS_SERVER) \
-# $(GDA_IBMDB2_SERVER) \
-# $(GDA_FIREBIRD_SERVER) \
-# $(GDA_MSQL_SERVER) \
-# $(GDA_ODBC_SERVER) \
-# $(GDA_SYBASE_SERVER) \
-# $(GDA_XBASE_SERVER) \
-# $(GDA_LDAP_SERVER)
+# $(GDA_FIREBIRD_SERVER)
+
diff --git a/providers/bdb/gda-bdb-provider.c b/providers/bdb/gda-bdb-provider.c
index ee34b98..42600c3 100644
--- a/providers/bdb/gda-bdb-provider.c
+++ b/providers/bdb/gda-bdb-provider.c
@@ -74,7 +74,7 @@ gda_bdb_provider_class_init (GdaBdbProviderClass *klass)
}
static void
-gda_bdb_provider_init (GdaBdbProvider *pg_prv, GdaBdbProviderClass *klass)
+gda_bdb_provider_init (G_GNUC_UNUSED GdaBdbProvider *pg_prv, G_GNUC_UNUSED GdaBdbProviderClass *klass)
{
}
@@ -104,7 +104,8 @@ gda_bdb_provider_get_type (void)
NULL, NULL,
sizeof (GdaBdbProvider),
0,
- (GInstanceInitFunc) gda_bdb_provider_init
+ (GInstanceInitFunc) gda_bdb_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -119,7 +120,7 @@ gda_bdb_provider_get_type (void)
* Get provider name request
*/
static const gchar *
-gda_bdb_provider_get_name (GdaServerProvider *provider)
+gda_bdb_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return BDB_PROVIDER_NAME;
}
@@ -128,7 +129,7 @@ gda_bdb_provider_get_name (GdaServerProvider *provider)
* Get version request
*/
static const gchar *
-gda_bdb_provider_get_version (GdaServerProvider *provider)
+gda_bdb_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -138,8 +139,9 @@ gda_bdb_provider_get_version (GdaServerProvider *provider)
*/
static gboolean
gda_bdb_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
- GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ GdaQuarkList *params, G_GNUC_UNUSED GdaQuarkList *auth,
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
BdbConnectionData *cdata;
gchar *bdb_file, *bdb_db, *dirname;
diff --git a/providers/bdb/gda-bdb-test.c b/providers/bdb/gda-bdb-test.c
index 888125c..74ec25c 100644
--- a/providers/bdb/gda-bdb-test.c
+++ b/providers/bdb/gda-bdb-test.c
@@ -30,7 +30,8 @@ static void
create_db (const gchar *filename)
{
DB *dbp;
- int ret, i;
+ gint ret;
+ gsize i;
g_print ("Creating BDB database in '%s'\n", filename);
g_assert (db_create (&dbp, NULL, 0) == 0);
@@ -129,7 +130,7 @@ gda_stuff (gpointer filename)
gda_connection_close (cnc);
}
-int main (int argc, char **argv)
+int main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
{
gda_init ();
create_db (DB_FILE);
diff --git a/providers/bdb/libmain.c b/providers/bdb/libmain.c
index eb7765c..a55ee71 100644
--- a/providers/bdb/libmain.c
+++ b/providers/bdb/libmain.c
@@ -37,14 +37,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/providers/jdbc/GdaInputStream.c b/providers/jdbc/GdaInputStream.c
index d9af0a4..4b97074 100644
--- a/providers/jdbc/GdaInputStream.c
+++ b/providers/jdbc/GdaInputStream.c
@@ -19,7 +19,7 @@ JNICALL Java_GdaInputStream_initIDs (JNIEnv *env, jclass klass)
}
JNIEXPORT jintArray
-JNICALL Java_GdaInputStream_readData (JNIEnv *jenv, jobject obj,
+JNICALL Java_GdaInputStream_readData (JNIEnv *jenv, G_GNUC_UNUSED jobject obj,
jlong gda_blob_pointer, jlong offset, jlong size)
{
GdaBlob *blob = (GdaBlob*) gda_blob_pointer;
@@ -93,7 +93,7 @@ JNICALL Java_GdaInputStream_readData (JNIEnv *jenv, jobject obj,
}
JNIEXPORT jbyteArray JNICALL
-Java_GdaInputStream_readByteData (JNIEnv *jenv, jobject obj,
+Java_GdaInputStream_readByteData (JNIEnv *jenv, G_GNUC_UNUSED jobject obj,
jlong gda_blob_pointer, jlong offset, jlong size)
{
GdaBlob *blob = (GdaBlob*) gda_blob_pointer;
diff --git a/providers/jdbc/GdaJBlobOp.c b/providers/jdbc/GdaJBlobOp.c
index 37e76a1..412f051 100644
--- a/providers/jdbc/GdaJBlobOp.c
+++ b/providers/jdbc/GdaJBlobOp.c
@@ -14,7 +14,7 @@ JniWrapperMethod *GdaJBlobOp__length = NULL;
JNIEXPORT void
JNICALL Java_GdaJBlobOp_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJColumnInfos.c b/providers/jdbc/GdaJColumnInfos.c
index bb90574..fa89c2d 100644
--- a/providers/jdbc/GdaJColumnInfos.c
+++ b/providers/jdbc/GdaJColumnInfos.c
@@ -14,7 +14,7 @@ JniWrapperField *GdaJColumnInfos__col_type = NULL;
JNIEXPORT void
JNICALL Java_GdaJColumnInfos_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJConnection.c b/providers/jdbc/GdaJConnection.c
index ce62e1a..5979e78 100644
--- a/providers/jdbc/GdaJConnection.c
+++ b/providers/jdbc/GdaJConnection.c
@@ -24,7 +24,7 @@ JniWrapperMethod *GdaJConnection__getJMeta = NULL;
JNIEXPORT void
JNICALL Java_GdaJConnection_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJMeta.c b/providers/jdbc/GdaJMeta.c
index eae5a5b..99a0eb1 100644
--- a/providers/jdbc/GdaJMeta.c
+++ b/providers/jdbc/GdaJMeta.c
@@ -16,7 +16,7 @@ JniWrapperMethod *GdaJMeta__getColumns = NULL;
JNIEXPORT void
JNICALL Java_GdaJMeta_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJPStmt.c b/providers/jdbc/GdaJPStmt.c
index 0c47528..ec6e824 100644
--- a/providers/jdbc/GdaJPStmt.c
+++ b/providers/jdbc/GdaJPStmt.c
@@ -17,7 +17,7 @@ JniWrapperMethod *GdaJPStmt__setParameterValue = NULL;
JNIEXPORT void
JNICALL Java_GdaJPStmt_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJProvider.c b/providers/jdbc/GdaJProvider.c
index fbb3d86..a2240cc 100644
--- a/providers/jdbc/GdaJProvider.c
+++ b/providers/jdbc/GdaJProvider.c
@@ -14,7 +14,7 @@ JniWrapperMethod *GdaJProvider__openConnection = NULL;
JNIEXPORT void
JNICALL Java_GdaJProvider_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJResultSet.c b/providers/jdbc/GdaJResultSet.c
index d2e6dfa..d3b86af 100644
--- a/providers/jdbc/GdaJResultSet.c
+++ b/providers/jdbc/GdaJResultSet.c
@@ -14,7 +14,7 @@ JniWrapperMethod *GdaJResultSet__fillNextRow = NULL;
JNIEXPORT void
JNICALL Java_GdaJResultSet_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJResultSetInfos.c b/providers/jdbc/GdaJResultSetInfos.c
index 304a669..689c069 100644
--- a/providers/jdbc/GdaJResultSetInfos.c
+++ b/providers/jdbc/GdaJResultSetInfos.c
@@ -13,7 +13,7 @@ JniWrapperMethod *GdaJResultSetInfos__describeColumn = NULL;
JNIEXPORT void
JNICALL Java_GdaJResultSetInfos_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
diff --git a/providers/jdbc/GdaJValue.c b/providers/jdbc/GdaJValue.c
index c5be92d..f6fee73 100644
--- a/providers/jdbc/GdaJValue.c
+++ b/providers/jdbc/GdaJValue.c
@@ -19,7 +19,7 @@ static JniWrapperMethod *GdaJValue__createTimestamp = NULL;
JNIEXPORT void
JNICALL Java_GdaJValue_initIDs (JNIEnv *env, jclass klass)
{
- gint i;
+ gsize i;
typedef struct {
const gchar *name;
const gchar *sig;
@@ -42,7 +42,7 @@ JNICALL Java_GdaJValue_initIDs (JNIEnv *env, jclass klass)
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCString (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jstring str)
+JNICALL Java_GdaJValue_setCString (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer, jint col, jstring str)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
gchar *tmp;
@@ -67,7 +67,7 @@ JNICALL Java_GdaJValue_setCString (JNIEnv *jenv, jobject obj, jlong c_pointer, j
}
JNIEXPORT jstring
-JNICALL Java_GdaJValue_getCString (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCString (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
const gchar *str;
@@ -76,7 +76,8 @@ JNICALL Java_GdaJValue_getCString (JNIEnv *jenv, jobject obj, jlong c_pointer)
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCInt (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jint i)
+JNICALL Java_GdaJValue_setCInt (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jint i)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_INT);
@@ -84,13 +85,14 @@ JNICALL Java_GdaJValue_setCInt (JNIEnv *jenv, jobject obj, jlong c_pointer, jint
}
JNIEXPORT jint
-JNICALL Java_GdaJValue_getCInt (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCInt (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jint) g_value_get_int ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCChar (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jbyte b)
+JNICALL Java_GdaJValue_setCChar (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jbyte b)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_CHAR);
@@ -98,13 +100,14 @@ JNICALL Java_GdaJValue_setCChar (JNIEnv *jenv, jobject obj, jlong c_pointer, jin
}
JNIEXPORT jbyte
-JNICALL Java_GdaJValue_getCChar (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCChar (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jbyte) g_value_get_char ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCDouble (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jdouble d)
+JNICALL Java_GdaJValue_setCDouble (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jdouble d)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_DOUBLE);
@@ -112,13 +115,14 @@ JNICALL Java_GdaJValue_setCDouble (JNIEnv *jenv, jobject obj, jlong c_pointer, j
}
JNIEXPORT jdouble
-JNICALL Java_GdaJValue_getCDouble (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCDouble (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jdouble) g_value_get_double ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCFloat (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jfloat f)
+JNICALL Java_GdaJValue_setCFloat (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jfloat f)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_FLOAT);
@@ -126,13 +130,14 @@ JNICALL Java_GdaJValue_setCFloat (JNIEnv *jenv, jobject obj, jlong c_pointer, ji
}
JNIEXPORT jfloat
-JNICALL Java_GdaJValue_getCFloat (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCFloat (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jfloat) g_value_get_float ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCBoolean (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jboolean b)
+JNICALL Java_GdaJValue_setCBoolean (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jboolean b)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_BOOLEAN);
@@ -140,13 +145,14 @@ JNICALL Java_GdaJValue_setCBoolean (JNIEnv *jenv, jobject obj, jlong c_pointer,
}
JNIEXPORT jboolean
-JNICALL Java_GdaJValue_getCBoolean (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCBoolean (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jboolean) g_value_get_boolean ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCDate (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jint year, jint month, jint day)
+JNICALL Java_GdaJValue_setCDate (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer, jint col,
+ jint year, jint month, jint day)
{
GDate *date;
@@ -197,7 +203,8 @@ Java_GdaJValue_getCDate (JNIEnv *jenv, jobject obj, jlong c_pointer)
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCTime (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jint hour, jint min, jint sec)
+JNICALL Java_GdaJValue_setCTime (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jint hour, jint min, jint sec)
{
GdaTime *tim;
GValue *value;
@@ -240,8 +247,9 @@ JNICALL Java_GdaJValue_getCTime (JNIEnv *jenv, jobject obj, jlong c_pointer)
JNIEXPORT void
-JNICALL Java_GdaJValue_setCTimestamp (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jint year, jint month, jint day,
- jint hour, jint min, jint sec)
+JNICALL Java_GdaJValue_setCTimestamp (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jint year, jint month, jint day, jint hour, jint min,
+ jint sec)
{
GdaTimestamp *ts;
GValue *value;
@@ -287,7 +295,8 @@ JNICALL Java_GdaJValue_getCTimestamp (JNIEnv *jenv, jobject obj, jlong c_pointer
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCBinary (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jbyteArray bytes)
+JNICALL Java_GdaJValue_setCBinary (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer, jint col,
+ jbyteArray bytes)
{
jint len;
GdaBinary *bin;
@@ -306,7 +315,7 @@ JNICALL Java_GdaJValue_setCBinary (JNIEnv *jenv, jobject obj, jlong c_pointer, j
}
JNIEXPORT jbyteArray
-JNICALL Java_GdaJValue_getCBinary (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCBinary (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
const GdaBinary *bin;
jbyteArray jbytes;
@@ -335,7 +344,8 @@ JNICALL Java_GdaJValue_getCBinary (JNIEnv *jenv, jobject obj, jlong c_pointer)
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCBlob (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jlong cnc_c_pointer, jobject blobop)
+JNICALL Java_GdaJValue_setCBlob (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer, jint col,
+ jlong cnc_c_pointer, jobject blobop)
{
GdaBlob *blob;
GValue *value;
@@ -349,7 +359,7 @@ JNICALL Java_GdaJValue_setCBlob (JNIEnv *jenv, jobject obj, jlong c_pointer, jin
}
JNIEXPORT jobject
-JNICALL Java_GdaJValue_getCBlob (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCBlob (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
const GdaBlob *blob;
@@ -417,7 +427,7 @@ JNICALL Java_GdaJValue_getCBlob (JNIEnv *jenv, jobject obj, jlong c_pointer)
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCLong (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jlong l)
+JNICALL Java_GdaJValue_setCLong (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer, jint col, jlong l)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_INT64);
@@ -425,13 +435,14 @@ JNICALL Java_GdaJValue_setCLong (JNIEnv *jenv, jobject obj, jlong c_pointer, jin
}
JNIEXPORT jshort
-JNICALL Java_GdaJValue_getCLong (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCLong (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jlong) g_value_get_int64 ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCShort (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jshort s)
+JNICALL Java_GdaJValue_setCShort (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer,
+ jint col, jshort s)
{
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
g_value_init (value, G_TYPE_INT64);
@@ -439,14 +450,14 @@ JNICALL Java_GdaJValue_setCShort (JNIEnv *jenv, jobject obj, jlong c_pointer, ji
}
JNIEXPORT jshort
-JNICALL Java_GdaJValue_getCShort (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCShort (G_GNUC_UNUSED JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
return (jshort) gda_value_get_short ((GValue *) c_pointer);
}
JNIEXPORT void
-JNICALL Java_GdaJValue_setCNumeric (JNIEnv *jenv, jobject obj, jlong c_pointer, jint col, jstring str,
- jint precision, jint scale)
+JNICALL Java_GdaJValue_setCNumeric (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer, jint col,
+ jstring str, jint precision, jint scale)
{
GdaNumeric *num;
GValue *value = gda_row_get_value (GDA_ROW ((gpointer) c_pointer), col);
@@ -476,7 +487,7 @@ JNICALL Java_GdaJValue_setCNumeric (JNIEnv *jenv, jobject obj, jlong c_pointer,
}
JNIEXPORT jobject
-JNICALL Java_GdaJValue_getCNumeric (JNIEnv *jenv, jobject obj, jlong c_pointer)
+JNICALL Java_GdaJValue_getCNumeric (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong c_pointer)
{
const GdaNumeric *num;
num = gda_value_get_numeric ((GValue *) c_pointer);
diff --git a/providers/jdbc/gda-jdbc-blob-op.c b/providers/jdbc/gda-jdbc-blob-op.c
index a221764..877b6f2 100644
--- a/providers/jdbc/gda-jdbc-blob-op.c
+++ b/providers/jdbc/gda-jdbc-blob-op.c
@@ -63,7 +63,8 @@ gda_jdbc_blob_op_get_type (void)
NULL,
sizeof (GdaJdbcBlobOp),
0,
- (GInstanceInitFunc) gda_jdbc_blob_op_init
+ (GInstanceInitFunc) gda_jdbc_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -75,7 +76,7 @@ gda_jdbc_blob_op_get_type (void)
static void
gda_jdbc_blob_op_init (GdaJdbcBlobOp *op,
- GdaJdbcBlobOpClass *klass)
+ G_GNUC_UNUSED GdaJdbcBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_JDBC_BLOB_OP (op));
diff --git a/providers/jdbc/gda-jdbc-meta.c b/providers/jdbc/gda-jdbc-meta.c
index d55ee5c..a085d13 100644
--- a/providers/jdbc/gda-jdbc-meta.c
+++ b/providers/jdbc/gda-jdbc-meta.c
@@ -40,7 +40,7 @@
* Meta initialization
*/
void
-_gda_jdbc_provider_meta_init (GdaServerProvider *provider)
+_gda_jdbc_provider_meta_init (G_GNUC_UNUSED GdaServerProvider *provider)
{
}
@@ -68,7 +68,7 @@ init_meta_obj (GdaConnection *cnc, JNIEnv *jenv, JdbcConnectionData *cdata, GErr
}
gboolean
-_gda_jdbc_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_jdbc_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
JdbcConnectionData *cdata;
@@ -124,25 +124,27 @@ _gda_jdbc_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_jdbc_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_jdbc_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema)
+ G_GNUC_UNUSED const GValue *udt_catalog, G_GNUC_UNUSED const GValue *udt_schema)
{
GdaDataModel *model = NULL;
gboolean retval = TRUE;
@@ -161,34 +163,38 @@ _gda_jdbc_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
gboolean
-_gda_jdbc_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_jdbc_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_jdbc_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
TO_IMPLEMENT;
return TRUE;
@@ -196,88 +202,97 @@ _gda_jdbc_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
gboolean
-_gda_jdbc_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *domain_catalog, const GValue *domain_schema)
+_gda_jdbc_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *domain_catalog, const GValue *domain_schema,
- const GValue *domain_name)
+_gda_jdbc_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema,
+ G_GNUC_UNUSED const GValue *domain_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *specific_name)
+_gda_jdbc_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *specific_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *collation_catalog, const GValue *collation_schema,
- const GValue *collation_name_n)
+_gda_jdbc_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *collation_catalog,
+ G_GNUC_UNUSED const GValue *collation_schema,
+ G_GNUC_UNUSED const GValue *collation_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *chset_catalog, const GValue *chset_schema,
- const GValue *chset_name_n)
+_gda_jdbc_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *chset_catalog,
+ G_GNUC_UNUSED const GValue *chset_schema,
+ G_GNUC_UNUSED const GValue *chset_name_n)
{
TO_IMPLEMENT;
return TRUE;
@@ -291,7 +306,7 @@ _gda_jdbc_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_jdbc_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_jdbc_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *catalog_name, const GValue *schema_name_n)
{
@@ -371,7 +386,7 @@ _gda_jdbc_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_jdbc_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_jdbc_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name_n)
@@ -487,7 +502,7 @@ _gda_jdbc_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_jdbc_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_jdbc_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name)
@@ -569,198 +584,220 @@ _gda_jdbc_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_jdbc_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *view_catalog, const GValue *view_schema,
- const GValue *view_name)
+_gda_jdbc_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *view_catalog,
+ G_GNUC_UNUSED const GValue *view_schema, G_GNUC_UNUSED const GValue *view_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name_n)
+_gda_jdbc_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *constraint_name)
+_gda_jdbc_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name)
+_gda_jdbc_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name)
+_gda_jdbc_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name)
+_gda_jdbc_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *routine_catalog, const GValue *routine_schema,
- const GValue *routine_name_n)
+_gda_jdbc_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *routine_catalog,
+ G_GNUC_UNUSED const GValue *routine_schema,
+ G_GNUC_UNUSED const GValue *routine_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *rout_catalog, const GValue *rout_schema,
- const GValue *rout_name)
+_gda_jdbc_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema, G_GNUC_UNUSED const GValue *rout_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *rout_catalog, const GValue *rout_schema,
- const GValue *rout_name)
+_gda_jdbc_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema, G_GNUC_UNUSED const GValue *rout_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *index_name_n)
+_gda_jdbc_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *index_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_jdbc_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_jdbc_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *index_name)
+_gda_jdbc_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *index_name)
{
TO_IMPLEMENT;
return TRUE;
diff --git a/providers/jdbc/gda-jdbc-provider.c b/providers/jdbc/gda-jdbc-provider.c
index 84f19da..2818b25 100644
--- a/providers/jdbc/gda-jdbc-provider.c
+++ b/providers/jdbc/gda-jdbc-provider.c
@@ -264,7 +264,7 @@ gda_jdbc_provider_class_init (GdaJdbcProviderClass *klass)
extern JavaVM *_jdbc_provider_java_vm;
static void
-gda_jdbc_provider_init (GdaJdbcProvider *jdbc_prv, GdaJdbcProviderClass *klass)
+gda_jdbc_provider_init (GdaJdbcProvider *jdbc_prv, G_GNUC_UNUSED GdaJdbcProviderClass *klass)
{
InternalStatementItem i;
GdaSqlParser *parser;
@@ -298,7 +298,8 @@ gda_jdbc_provider_get_type (void)
NULL, NULL,
sizeof (GdaJdbcProvider),
0,
- (GInstanceInitFunc) gda_jdbc_provider_init
+ (GInstanceInitFunc) gda_jdbc_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -323,7 +324,7 @@ gda_jdbc_provider_get_name (GdaServerProvider *provider)
* Get provider's version, no need to change this
*/
static const gchar *
-gda_jdbc_provider_get_version (GdaServerProvider *provider)
+gda_jdbc_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -342,7 +343,8 @@ gda_jdbc_provider_get_version (GdaServerProvider *provider)
static gboolean
gda_jdbc_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
GdaJdbcProvider *jprov;
g_return_val_if_fail (GDA_IS_JDBC_PROVIDER (provider), FALSE);
@@ -509,7 +511,8 @@ gda_jdbc_provider_get_server_version (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_jdbc_provider_supports_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options)
+ G_GNUC_UNUSED GdaServerOperationType type,
+ G_GNUC_UNUSED GdaSet *options)
{
if (cnc) {
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -530,7 +533,8 @@ gda_jdbc_provider_supports_operation (GdaServerProvider *provider, GdaConnection
*/
static GdaServerOperation *
gda_jdbc_provider_create_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options, GError **error)
+ G_GNUC_UNUSED GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options,
+ G_GNUC_UNUSED GError **error)
{
if (cnc) {
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -548,7 +552,7 @@ gda_jdbc_provider_create_operation (GdaServerProvider *provider, GdaConnection *
*/
static gchar *
gda_jdbc_provider_render_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ G_GNUC_UNUSED GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
if (cnc) {
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -566,8 +570,9 @@ gda_jdbc_provider_render_operation (GdaServerProvider *provider, GdaConnection *
*/
static gboolean
gda_jdbc_provider_perform_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, guint *task_id,
- GdaServerProviderAsyncCallback async_cb, gpointer cb_data, GError **error)
+ G_GNUC_UNUSED GdaServerOperation *op, G_GNUC_UNUSED guint *task_id,
+ GdaServerProviderAsyncCallback async_cb, G_GNUC_UNUSED gpointer cb_data,
+ GError **error)
{
/* If asynchronous connection opening is not supported, then exit now */
if (async_cb) {
@@ -591,8 +596,8 @@ gda_jdbc_provider_perform_operation (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_jdbc_provider_begin_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GdaTransactionIsolation level,
- GError **error)
+ G_GNUC_UNUSED const gchar *name,
+ G_GNUC_UNUSED GdaTransactionIsolation level, GError **error)
{
JdbcConnectionData *cdata;
GValue *jexec_res;
@@ -633,7 +638,7 @@ gda_jdbc_provider_begin_transaction (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_jdbc_provider_commit_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, GError **error)
{
JdbcConnectionData *cdata;
GValue *jexec_res;
@@ -674,7 +679,7 @@ gda_jdbc_provider_commit_transaction (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_jdbc_provider_rollback_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, GError **error)
{
JdbcConnectionData *cdata;
GValue *jexec_res;
@@ -1562,7 +1567,7 @@ gda_jdbc_statement_rewrite (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_jdbc_provider_xa_start (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
JdbcConnectionData *cdata;
@@ -1588,7 +1593,7 @@ gda_jdbc_provider_xa_start (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_jdbc_provider_xa_end (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
JdbcConnectionData *cdata;
@@ -1609,7 +1614,7 @@ gda_jdbc_provider_xa_end (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_jdbc_provider_xa_prepare (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
JdbcConnectionData *cdata;
@@ -1631,7 +1636,7 @@ gda_jdbc_provider_xa_prepare (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_jdbc_provider_xa_commit (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
JdbcConnectionData *cdata;
@@ -1652,7 +1657,7 @@ gda_jdbc_provider_xa_commit (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_jdbc_provider_xa_rollback (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
JdbcConnectionData *cdata;
@@ -1675,7 +1680,7 @@ gda_jdbc_provider_xa_rollback (GdaServerProvider *provider, GdaConnection *cnc,
*/
static GList *
gda_jdbc_provider_xa_recover (GdaServerProvider *provider, GdaConnection *cnc,
- GError **error)
+ G_GNUC_UNUSED GError **error)
{
JdbcConnectionData *cdata;
diff --git a/providers/jdbc/gda-jdbc-pstmt.c b/providers/jdbc/gda-jdbc-pstmt.c
index 0422954..fe23b2c 100644
--- a/providers/jdbc/gda-jdbc-pstmt.c
+++ b/providers/jdbc/gda-jdbc-pstmt.c
@@ -51,7 +51,8 @@ gda_jdbc_pstmt_get_type (void)
NULL,
sizeof (GdaJdbcPStmt),
0,
- (GInstanceInitFunc) gda_jdbc_pstmt_init
+ (GInstanceInitFunc) gda_jdbc_pstmt_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -73,7 +74,7 @@ gda_jdbc_pstmt_class_init (GdaJdbcPStmtClass *klass)
}
static void
-gda_jdbc_pstmt_init (GdaJdbcPStmt *pstmt, GdaJdbcPStmtClass *klass)
+gda_jdbc_pstmt_init (GdaJdbcPStmt *pstmt, G_GNUC_UNUSED GdaJdbcPStmtClass *klass)
{
g_return_if_fail (GDA_IS_PSTMT (pstmt));
diff --git a/providers/jdbc/gda-jdbc-recordset.c b/providers/jdbc/gda-jdbc-recordset.c
index 8db5c33..4f9ec11 100644
--- a/providers/jdbc/gda-jdbc-recordset.c
+++ b/providers/jdbc/gda-jdbc-recordset.c
@@ -60,7 +60,7 @@ static GObjectClass *parent_class = NULL;
*/
static void
gda_jdbc_recordset_init (GdaJdbcRecordset *recset,
- GdaJdbcRecordsetClass *klass)
+ G_GNUC_UNUSED GdaJdbcRecordsetClass *klass)
{
g_return_if_fail (GDA_IS_JDBC_RECORDSET (recset));
recset->priv = g_new0 (GdaJdbcRecordsetPrivate, 1);
@@ -128,7 +128,8 @@ gda_jdbc_recordset_get_type (void)
NULL,
sizeof (GdaJdbcRecordset),
0,
- (GInstanceInitFunc) gda_jdbc_recordset_init
+ (GInstanceInitFunc) gda_jdbc_recordset_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -505,7 +506,7 @@ gda_jdbc_recordset_fetch_random (GdaDataSelect *model, GdaRow **prow, gint rownu
* never keeps a reference to it). Before a new #GdaRow gets created, the previous one, if set, is discarded.
*/
static gboolean
-gda_jdbc_recordset_fetch_next (GdaDataSelect *model, GdaRow **prow, gint rownum, GError **error)
+gda_jdbc_recordset_fetch_next (GdaDataSelect *model, GdaRow **prow, G_GNUC_UNUSED gint rownum, GError **error)
{
GdaJdbcRecordset *imodel = (GdaJdbcRecordset*) model;
JNIEnv *jenv = NULL;
diff --git a/providers/jdbc/gda-list-jdbc-providers.c b/providers/jdbc/gda-list-jdbc-providers.c
index aa56d37..c5b1e5a 100644
--- a/providers/jdbc/gda-list-jdbc-providers.c
+++ b/providers/jdbc/gda-list-jdbc-providers.c
@@ -5,7 +5,7 @@
#define SO_NAME "libgda-jdbc." G_MODULE_SUFFIX
int
-main (int argc, char **argv)
+main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
{
GdaDataModel *providers;
gint i, nrows;
diff --git a/providers/jdbc/libmain.c b/providers/jdbc/libmain.c
index ecdb125..06cb39a 100644
--- a/providers/jdbc/libmain.c
+++ b/providers/jdbc/libmain.c
@@ -80,14 +80,14 @@ static gint sub_nb; /* size of sub_names */
* would be the solution...
*/
EXPORT const gchar *
-g_module_check_init (GModule *module)
+g_module_check_init (G_GNUC_UNUSED GModule *module)
{
//g_module_make_resident (module);
return NULL;
}
EXPORT void
-g_module_unload (GModule *module)
+g_module_unload (G_GNUC_UNUSED GModule *module)
{
if (! __CreateJavaVM) {
g_free (module_path);
@@ -297,7 +297,7 @@ plugin_get_sub_description (const gchar *name)
}
EXPORT gchar *
-plugin_get_sub_dsn_spec (const gchar *name)
+plugin_get_sub_dsn_spec (G_GNUC_UNUSED const gchar *name)
{
gchar *ret, *dir;
@@ -561,7 +561,7 @@ get_database_name_from_driver_name (const gchar *driver_name)
{"com.mysql.jdbc.Driver", "MySQL"}
};
- gint i;
+ gsize i;
for (i = 0; i < sizeof (carray) / sizeof (Corresp); i++) {
if (!strcmp (carray[i].jdbc_name, driver_name))
return carray[i].db_name;
diff --git a/providers/postgres/gda-postgres-blob-op.c b/providers/postgres/gda-postgres-blob-op.c
index b82d2fb..a8c92bf 100644
--- a/providers/postgres/gda-postgres-blob-op.c
+++ b/providers/postgres/gda-postgres-blob-op.c
@@ -62,7 +62,8 @@ gda_postgres_blob_op_get_type (void)
NULL,
sizeof (GdaPostgresBlobOp),
0,
- (GInstanceInitFunc) gda_postgres_blob_op_init
+ (GInstanceInitFunc) gda_postgres_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -74,7 +75,7 @@ gda_postgres_blob_op_get_type (void)
static void
gda_postgres_blob_op_init (GdaPostgresBlobOp *op,
- GdaPostgresBlobOpClass *klass)
+ G_GNUC_UNUSED GdaPostgresBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_POSTGRES_BLOB_OP (op));
diff --git a/providers/postgres/gda-postgres-ddl.c b/providers/postgres/gda-postgres-ddl.c
index 8606a9a..3e29049 100644
--- a/providers/postgres/gda-postgres-ddl.c
+++ b/providers/postgres/gda-postgres-ddl.c
@@ -27,7 +27,7 @@
gchar *
gda_postgres_render_CREATE_DB (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -80,7 +80,7 @@ gda_postgres_render_CREATE_DB (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
gda_postgres_render_DROP_DB (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
gchar *sql = NULL;
@@ -379,7 +379,7 @@ gda_postgres_render_CREATE_TABLE (GdaServerProvider *provider, GdaConnection *cn
gchar *
gda_postgres_render_DROP_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -407,7 +407,7 @@ gda_postgres_render_DROP_TABLE (GdaServerProvider *provider, GdaConnection *cn
gchar *
gda_postgres_render_RENAME_TABLE (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
gchar *sql = NULL;
@@ -433,7 +433,7 @@ gda_postgres_render_RENAME_TABLE (GdaServerProvider *provider, GdaConnection *cn
gchar *
gda_postgres_render_ADD_COLUMN (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -511,7 +511,7 @@ gda_postgres_render_ADD_COLUMN (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
gda_postgres_render_DROP_COLUMN (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -546,7 +546,7 @@ gda_postgres_render_DROP_COLUMN (GdaServerProvider *provider, GdaConnection *cn
gchar *
gda_postgres_render_CREATE_INDEX (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -621,7 +621,7 @@ gda_postgres_render_CREATE_INDEX (GdaServerProvider *provider, GdaConnection *cn
gchar *
gda_postgres_render_DROP_INDEX (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -648,7 +648,7 @@ gda_postgres_render_DROP_INDEX (GdaServerProvider *provider, GdaConnection *cn
gchar *
gda_postgres_render_CREATE_VIEW (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -721,7 +721,7 @@ gda_postgres_render_CREATE_VIEW (GdaServerProvider *provider, GdaConnection *cnc
gchar *
gda_postgres_render_DROP_VIEW (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -753,7 +753,7 @@ gda_postgres_render_DROP_VIEW (GdaServerProvider *provider, GdaConnection *cnc,
gchar *
gda_postgres_render_CREATE_USER (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
@@ -962,7 +962,7 @@ gda_postgres_render_CREATE_USER (GdaServerProvider *provider, GdaConnection *cnc
gchar *
gda_postgres_render_DROP_USER (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED GError **error)
{
GString *string;
const GValue *value;
diff --git a/providers/postgres/gda-postgres-handler-bin.c b/providers/postgres/gda-postgres-handler-bin.c
index ea75caf..550efd5 100644
--- a/providers/postgres/gda-postgres-handler-bin.c
+++ b/providers/postgres/gda-postgres-handler-bin.c
@@ -69,7 +69,8 @@ gda_postgres_handler_bin_get_type (void)
NULL,
sizeof (GdaPostgresHandlerBin),
0,
- (GInstanceInitFunc) gda_postgres_handler_bin_init
+ (GInstanceInitFunc) gda_postgres_handler_bin_init,
+ 0
};
static const GInterfaceInfo data_entry_info = {
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index 1f1c104..7dc85ca 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -291,7 +291,7 @@ gda_postgres_provider_class_init (GdaPostgresProviderClass *klass)
}
static void
-gda_postgres_provider_init (GdaPostgresProvider *postgres_prv, GdaPostgresProviderClass *klass)
+gda_postgres_provider_init (GdaPostgresProvider *postgres_prv, G_GNUC_UNUSED GdaPostgresProviderClass *klass)
{
InternalStatementItem i;
GdaSqlParser *parser;
@@ -323,7 +323,8 @@ gda_postgres_provider_get_type (void)
NULL, NULL,
sizeof (GdaPostgresProvider),
0,
- (GInstanceInitFunc) gda_postgres_provider_init
+ (GInstanceInitFunc) gda_postgres_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -339,7 +340,7 @@ gda_postgres_provider_get_type (void)
* Get provider name request
*/
static const gchar *
-gda_postgres_provider_get_name (GdaServerProvider *provider)
+gda_postgres_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return POSTGRES_PROVIDER_NAME;
}
@@ -348,7 +349,7 @@ gda_postgres_provider_get_name (GdaServerProvider *provider)
* Get provider's version, no need to change this
*/
static const gchar *
-gda_postgres_provider_get_version (GdaServerProvider *provider)
+gda_postgres_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -388,7 +389,8 @@ pq_notice_processor (GdaConnection *cnc, const char *message)
static gboolean
gda_postgres_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
g_return_val_if_fail (GDA_IS_POSTGRES_PROVIDER (provider), FALSE);
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -656,7 +658,7 @@ gda_postgres_provider_get_database (GdaServerProvider *provider, GdaConnection *
*/
static gboolean
gda_postgres_provider_supports_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options)
+ GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options)
{
if (cnc) {
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -696,7 +698,8 @@ gda_postgres_provider_supports_operation (GdaServerProvider *provider, GdaConnec
*/
static GdaServerOperation *
gda_postgres_provider_create_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options, GError **error)
+ GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options,
+ GError **error)
{
gchar *file;
GdaServerOperation *op;
@@ -852,8 +855,9 @@ gda_postgres_provider_render_operation (GdaServerProvider *provider, GdaConnecti
*/
static gboolean
gda_postgres_provider_perform_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, guint *task_id,
- GdaServerProviderAsyncCallback async_cb, gpointer cb_data, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED guint *task_id,
+ GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data, GError **error)
{
GdaServerOperationType optype;
@@ -1051,7 +1055,7 @@ gda_postgres_provider_begin_transaction (GdaServerProvider *provider, GdaConnect
*/
static gboolean
gda_postgres_provider_commit_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, GError **error)
{
PostgresConnectionData *cdata;
@@ -1075,7 +1079,7 @@ gda_postgres_provider_commit_transaction (GdaServerProvider *provider, GdaConnec
static gboolean
gda_postgres_provider_rollback_transaction (GdaServerProvider *provider,
GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, GError **error)
{
PostgresConnectionData *cdata;
@@ -1422,7 +1426,8 @@ gda_postgres_provider_get_default_dbms_type (GdaServerProvider *provider, GdaCon
* by the database. See the PostgreSQL provider implementation for an example.
*/
static GdaSqlParser *
-gda_postgres_provider_create_parser (GdaServerProvider *provider, GdaConnection *cnc)
+gda_postgres_provider_create_parser (G_GNUC_UNUSED GdaServerProvider *provider,
+ G_GNUC_UNUSED GdaConnection *cnc)
{
return (GdaSqlParser*) g_object_new (GDA_TYPE_POSTGRES_PARSER, "tokenizer-flavour",
GDA_SQL_PARSER_FLAVOUR_POSTGRESQL, NULL);
@@ -2184,7 +2189,7 @@ gda_postgres_provider_xa_start (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_postgres_provider_xa_end (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, FALSE);
@@ -2453,7 +2458,7 @@ pg_remove_quotes (gchar *str)
}
static gchar *
-gda_postgresql_identifier_quote (GdaServerProvider *provider, GdaConnection *cnc,
+gda_postgresql_identifier_quote (G_GNUC_UNUSED GdaServerProvider *provider, GdaConnection *cnc,
const gchar *id,
gboolean for_meta_store, gboolean force_quotes)
{
diff --git a/providers/postgres/gda-postgres-pstmt.c b/providers/postgres/gda-postgres-pstmt.c
index 9be5a1b..258d331 100644
--- a/providers/postgres/gda-postgres-pstmt.c
+++ b/providers/postgres/gda-postgres-pstmt.c
@@ -52,7 +52,8 @@ gda_postgres_pstmt_get_type (void)
NULL,
sizeof (GdaPostgresPStmt),
0,
- (GInstanceInitFunc) gda_postgres_pstmt_init
+ (GInstanceInitFunc) gda_postgres_pstmt_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -74,7 +75,7 @@ gda_postgres_pstmt_class_init (GdaPostgresPStmtClass *klass)
}
static void
-gda_postgres_pstmt_init (GdaPostgresPStmt *pstmt, GdaPostgresPStmtClass *klass)
+gda_postgres_pstmt_init (GdaPostgresPStmt *pstmt, G_GNUC_UNUSED GdaPostgresPStmtClass *klass)
{
g_return_if_fail (GDA_IS_PSTMT (pstmt));
diff --git a/providers/postgres/gda-postgres-recordset.c b/providers/postgres/gda-postgres-recordset.c
index 3ef1c61..f5f026c 100644
--- a/providers/postgres/gda-postgres-recordset.c
+++ b/providers/postgres/gda-postgres-recordset.c
@@ -100,7 +100,7 @@ enum
* Object init and finalize
*/
static void
-gda_postgres_recordset_init (GdaPostgresRecordset *recset, GdaPostgresRecordsetClass *klass)
+gda_postgres_recordset_init (GdaPostgresRecordset *recset, G_GNUC_UNUSED GdaPostgresRecordsetClass *klass)
{
g_return_if_fail (GDA_IS_POSTGRES_RECORDSET (recset));
recset->priv = g_new0 (GdaPostgresRecordsetPrivate, 1);
@@ -179,7 +179,7 @@ static void
gda_postgres_recordset_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaPostgresRecordset *model = (GdaPostgresRecordset *) object;
if (model->priv) {
@@ -197,7 +197,7 @@ static void
gda_postgres_recordset_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaPostgresRecordset *model = (GdaPostgresRecordset *) object;
if (model->priv) {
@@ -234,7 +234,8 @@ gda_postgres_recordset_get_type (void)
NULL,
sizeof (GdaPostgresRecordset),
0,
- (GInstanceInitFunc) gda_postgres_recordset_init
+ (GInstanceInitFunc) gda_postgres_recordset_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -599,7 +600,8 @@ make_point (GdaGeometricPoint *point, const gchar *value)
}
static void
-set_value (GdaConnection *cnc, GdaRow *row, GValue *value, GType type, const gchar *thevalue, gint length, GError **error)
+set_value (GdaConnection *cnc, GdaRow *row, GValue *value, GType type, const gchar *thevalue,
+ G_GNUC_UNUSED gint length, GError **error)
{
gda_value_reset_with_type (value, type);
diff --git a/providers/postgres/libmain.c b/providers/postgres/libmain.c
index a84282b..f7c534c 100644
--- a/providers/postgres/libmain.c
+++ b/providers/postgres/libmain.c
@@ -36,14 +36,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/providers/reuseable/mysql/gda-mysql-meta.c b/providers/reuseable/mysql/gda-mysql-meta.c
index 531aef5..6bf9fe8 100644
--- a/providers/reuseable/mysql/gda-mysql-meta.c
+++ b/providers/reuseable/mysql/gda-mysql-meta.c
@@ -284,7 +284,7 @@ _gda_mysql_provider_meta_init (GdaServerProvider *provider)
#define GDA_MYSQL_GET_REUSEABLE_DATA(cdata) (* ((GdaMysqlReuseable**) (cdata)))
gboolean
-_gda_mysql_meta__info (GdaServerProvider *prov,
+_gda_mysql_meta__info (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -317,7 +317,7 @@ _gda_mysql_meta__info (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__btypes (GdaServerProvider *prov,
+_gda_mysql_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -331,10 +331,10 @@ _gda_mysql_meta__btypes (GdaServerProvider *prov,
gchar *synonyms;
} BuiltinDataType;
BuiltinDataType data_types[] = {
- { "AUTO_INCREMENT", "gint" "The AUTO_INCREMENT attribute can be used to generate a unique identity for new rows", "" },
+ { "AUTO_INCREMENT", "gint", "The AUTO_INCREMENT attribute can be used to generate a unique identity for new rows", "" },
{ "BIGINT", "gint64", "A large integer. The signed range is -9223372036854775808 to 9223372036854775807. The unsigned range is 0 to 18446744073709551615.", "" },
{ "BINARY", "GdaBinary", "The BINARY type is similar to the CHAR type, but stores binary byte strings rather than non-binary character strings. M represents the column length in bytes.", "CHAR BYTE" },
- { "BIT", "gint" "A bit-field type. M indicates the number of bits per value, from 1 to 64. The default is 1 if M is omitted.", "" },
+ { "BIT", "gint", "A bit-field type. M indicates the number of bits per value, from 1 to 64. The default is 1 if M is omitted.", "" },
{ "BLOB", "GdaBinary", "A BLOB column with a maximum length of 65,535 (216 - 1) bytes. Each BLOB value is stored using a two-byte length prefix that indicates the number of bytes in the value.", "" },
{ "BLOB DATA TYPE", "GdaBinary", "A BLOB is a binary large object that can hold a variable amount of data. The four BLOB types are TINYBLOB, BLOB, MEDIUMBLOB, and LONGBLOB. These differ only in the maximum length of the values they can hold.", "" },
{ "BOOLEAN", "gboolean", "These types are synonyms for TINYINT(1). A value of zero is considered false. Non-zero values are considered true", "" },
@@ -374,7 +374,7 @@ _gda_mysql_meta__btypes (GdaServerProvider *prov,
if (model == NULL)
retval = FALSE;
else {
- gint i;
+ gsize i;
for (i = 0; i < sizeof(data_types) / sizeof(BuiltinDataType); ++i) {
BuiltinDataType *data_type = &(data_types[i]);
GList *values = NULL;
@@ -423,24 +423,24 @@ _gda_mysql_meta__btypes (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__udt (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
// TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta_udt (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *udt_catalog,
- const GValue *udt_schema)
+_gda_mysql_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema)
{
// TO_IMPLEMENT;
return TRUE;
@@ -448,50 +448,50 @@ _gda_mysql_meta_udt (GdaServerProvider *prov,
gboolean
-_gda_mysql_meta__udt_cols (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
// TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta_udt_cols (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *udt_catalog,
- const GValue *udt_schema,
- const GValue *udt_name)
+_gda_mysql_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema,
+ G_GNUC_UNUSED const GValue *udt_name)
{
// TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta__enums (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta_enums (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *udt_catalog,
- const GValue *udt_schema,
- const GValue *udt_name)
+_gda_mysql_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema,
+ G_GNUC_UNUSED const GValue *udt_name)
{
/* Feature not supported by MySQL. */
return TRUE;
@@ -499,104 +499,104 @@ _gda_mysql_meta_enums (GdaServerProvider *prov,
gboolean
-_gda_mysql_meta__domains (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta_domains (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *domain_catalog,
- const GValue *domain_schema)
+_gda_mysql_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta__constraints_dom (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta_constraints_dom (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *domain_catalog,
- const GValue *domain_schema,
- const GValue *domain_name)
+_gda_mysql_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema,
+ G_GNUC_UNUSED const GValue *domain_name)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta__el_types (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta_el_types (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *specific_name)
+_gda_mysql_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *specific_name)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta__collations (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta_collations (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *collation_catalog,
- const GValue *collation_schema,
- const GValue *collation_name_n)
+_gda_mysql_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *collation_catalog,
+ G_GNUC_UNUSED const GValue *collation_schema,
+ G_GNUC_UNUSED const GValue *collation_name_n)
{
/* Feature not supported by MySQL. */
return TRUE;
}
gboolean
-_gda_mysql_meta__character_sets (GdaServerProvider *prov,
+_gda_mysql_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -629,12 +629,12 @@ _gda_mysql_meta__character_sets (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_character_sets (GdaServerProvider *prov,
+_gda_mysql_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *chset_catalog,
+ G_GNUC_UNUSED const GValue *chset_catalog,
const GValue *chset_schema,
const GValue *chset_name_n)
{
@@ -671,7 +671,7 @@ _gda_mysql_meta_character_sets (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__schemata (GdaServerProvider *prov,
+_gda_mysql_meta__schemata (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -703,12 +703,12 @@ _gda_mysql_meta__schemata (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_schemata (GdaServerProvider *prov,
+_gda_mysql_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *catalog_name,
+ G_GNUC_UNUSED const GValue *catalog_name,
const GValue *schema_name_n)
{
GdaDataModel *model;
@@ -761,7 +761,7 @@ _gda_mysql_meta_schemata (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__tables_views (GdaServerProvider *prov,
+_gda_mysql_meta__tables_views (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -821,12 +821,12 @@ _gda_mysql_meta__tables_views (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_tables_views (GdaServerProvider *prov,
+_gda_mysql_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_catalog,
const GValue *table_schema,
const GValue *table_name_n)
{
@@ -1060,7 +1060,7 @@ map_mysql_type_to_gda (const GValue *value)
}
gboolean
-_gda_mysql_meta__columns (GdaServerProvider *prov,
+_gda_mysql_meta__columns (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1123,12 +1123,12 @@ _gda_mysql_meta__columns (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_columns (GdaServerProvider *prov,
+_gda_mysql_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_catalog,
const GValue *table_schema,
const GValue *table_name)
{
@@ -1197,7 +1197,7 @@ _gda_mysql_meta_columns (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__view_cols (GdaServerProvider *prov,
+_gda_mysql_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1237,12 +1237,12 @@ _gda_mysql_meta__view_cols (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_view_cols (GdaServerProvider *prov,
+_gda_mysql_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *view_catalog,
+ G_GNUC_UNUSED const GValue *view_catalog,
const GValue *view_schema,
const GValue *view_name)
{
@@ -1277,7 +1277,7 @@ _gda_mysql_meta_view_cols (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__constraints_tab (GdaServerProvider *prov,
+_gda_mysql_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1309,12 +1309,12 @@ _gda_mysql_meta__constraints_tab (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_constraints_tab (GdaServerProvider *prov,
+_gda_mysql_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_catalog,
const GValue *table_schema,
const GValue *table_name,
const GValue *constraint_name_n)
@@ -1374,7 +1374,7 @@ _gda_mysql_meta_constraints_tab (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__constraints_ref (GdaServerProvider *prov,
+_gda_mysql_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1414,12 +1414,12 @@ _gda_mysql_meta__constraints_ref (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_constraints_ref (GdaServerProvider *prov,
+_gda_mysql_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_catalog,
const GValue *table_schema,
const GValue *table_name,
const GValue *constraint_name)
@@ -1470,7 +1470,7 @@ _gda_mysql_meta_constraints_ref (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__key_columns (GdaServerProvider *prov,
+_gda_mysql_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1502,12 +1502,12 @@ _gda_mysql_meta__key_columns (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_key_columns (GdaServerProvider *prov,
+_gda_mysql_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_catalog,
const GValue *table_schema,
const GValue *table_name,
const GValue *constraint_name)
@@ -1557,33 +1557,33 @@ _gda_mysql_meta_key_columns (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__check_columns (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta_check_columns (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *table_catalog,
- const GValue *table_schema,
- const GValue *table_name,
- const GValue *constraint_name)
+_gda_mysql_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta__triggers (GdaServerProvider *prov,
+_gda_mysql_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1623,12 +1623,12 @@ _gda_mysql_meta__triggers (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_triggers (GdaServerProvider *prov,
+_gda_mysql_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_catalog,
const GValue *table_schema,
const GValue *table_name)
{
@@ -1671,7 +1671,7 @@ _gda_mysql_meta_triggers (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__routines (GdaServerProvider *prov,
+_gda_mysql_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
@@ -1703,12 +1703,12 @@ _gda_mysql_meta__routines (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta_routines (GdaServerProvider *prov,
+_gda_mysql_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov,
GdaConnection *cnc,
GdaMetaStore *store,
GdaMetaContext *context,
GError **error,
- const GValue *routine_catalog,
+ G_GNUC_UNUSED const GValue *routine_catalog,
const GValue *routine_schema,
const GValue *routine_name_n)
{
@@ -1759,57 +1759,57 @@ _gda_mysql_meta_routines (GdaServerProvider *prov,
}
gboolean
-_gda_mysql_meta__routine_col (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta_routine_col (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *rout_catalog,
- const GValue *rout_schema,
- const GValue *rout_name)
+_gda_mysql_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema,
+ G_GNUC_UNUSED const GValue *rout_name)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta__routine_par (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error)
+_gda_mysql_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta_routine_par (GdaServerProvider *prov,
- GdaConnection *cnc,
- GdaMetaStore *store,
- GdaMetaContext *context,
- GError **error,
- const GValue *rout_catalog,
- const GValue *rout_schema,
- const GValue *rout_name)
+_gda_mysql_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov,
+ G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema,
+ G_GNUC_UNUSED const GValue *rout_name)
{
//TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_mysql_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_mysql_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1846,10 +1846,10 @@ _gda_mysql_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_mysql_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_mysql_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *index_name_n)
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema,
+ const GValue *table_name, const GValue *index_name_n)
{
GdaDataModel *model;
gboolean retval;
@@ -1900,7 +1900,7 @@ _gda_mysql_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_mysql_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_mysql_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1937,9 +1937,9 @@ _gda_mysql_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_mysql_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_mysql_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *index_name)
{
GdaDataModel *model;
diff --git a/providers/reuseable/mysql/gda-mysql-parser.c b/providers/reuseable/mysql/gda-mysql-parser.c
index 1fbc9bd..5b72871 100644
--- a/providers/reuseable/mysql/gda-mysql-parser.c
+++ b/providers/reuseable/mysql/gda-mysql-parser.c
@@ -47,7 +47,8 @@ gda_mysql_parser_get_type (void)
NULL,
sizeof (GdaMysqlParser),
0,
- (GInstanceInitFunc) gda_mysql_parser_init
+ (GInstanceInitFunc) gda_mysql_parser_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -79,6 +80,6 @@ gda_mysql_parser_class_init (GdaMysqlParserClass * klass)
}
static void
-gda_mysql_parser_init (GdaMysqlParser *parser)
+gda_mysql_parser_init (G_GNUC_UNUSED GdaMysqlParser *parser)
{
}
diff --git a/providers/reuseable/mysql/gda-mysql-reuseable.c b/providers/reuseable/mysql/gda-mysql-reuseable.c
index eb69aaf..4b9be8b 100644
--- a/providers/reuseable/mysql/gda-mysql-reuseable.c
+++ b/providers/reuseable/mysql/gda-mysql-reuseable.c
@@ -289,7 +289,8 @@ mysql_name_to_g_type (const gchar *name, const gchar *conv_func_name)
}
GType
-_gda_mysql_reuseable_get_g_type (GdaConnection *cnc, GdaProviderReuseable *rdata, const gchar *db_type)
+_gda_mysql_reuseable_get_g_type (G_GNUC_UNUSED GdaConnection *cnc, G_GNUC_UNUSED GdaProviderReuseable *rdata,
+ const gchar *db_type)
{
g_return_val_if_fail (db_type, GDA_TYPE_NULL);
@@ -318,7 +319,7 @@ _gda_mysql_reuseable_get_reserved_keywords_func (GdaProviderReuseable *rdata)
}
GdaSqlParser *
-_gda_mysql_reuseable_create_parser (GdaProviderReuseable *rdata)
+_gda_mysql_reuseable_create_parser (G_GNUC_UNUSED GdaProviderReuseable *rdata)
{
return GDA_SQL_PARSER (g_object_new (GDA_TYPE_MYSQL_PARSER, NULL));
}
diff --git a/providers/reuseable/postgres/gda-postgres-meta.c b/providers/reuseable/postgres/gda-postgres-meta.c
index 3387a85..aad3be3 100644
--- a/providers/reuseable/postgres/gda-postgres-meta.c
+++ b/providers/reuseable/postgres/gda-postgres-meta.c
@@ -315,7 +315,7 @@ _gda_postgres_provider_meta_init (GdaServerProvider *provider)
#define GDA_POSTGRES_GET_REUSEABLE_DATA(cdata) (* ((GdaPostgresReuseable**) (cdata)))
gboolean
-_gda_postgres_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -345,7 +345,7 @@ _gda_postgres_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model, *proxy;
@@ -405,7 +405,7 @@ _gda_postgres_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -433,7 +433,7 @@ _gda_postgres_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema)
{
@@ -466,7 +466,7 @@ _gda_postgres_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -495,7 +495,7 @@ _gda_postgres_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
{
@@ -530,8 +530,9 @@ _gda_postgres_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_postgres_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
GdaPostgresReuseable *rdata;
@@ -545,9 +546,10 @@ _gda_postgres_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_postgres_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
GdaPostgresReuseable *rdata;
@@ -561,7 +563,7 @@ _gda_postgres_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -589,7 +591,7 @@ _gda_postgres_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *domain_catalog, const GValue *domain_schema)
{
@@ -623,7 +625,7 @@ _gda_postgres_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -651,7 +653,7 @@ _gda_postgres_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc
}
gboolean
-_gda_postgres_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *domain_catalog, const GValue *domain_schema,
const GValue *domain_name)
@@ -688,7 +690,7 @@ _gda_postgres_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -721,7 +723,7 @@ _gda_postgres_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *specific_name)
{
@@ -789,43 +791,48 @@ _gda_postgres_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_postgres_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* nothing to do */
return TRUE;
}
gboolean
-_gda_postgres_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *collation_catalog, const GValue *collation_schema,
- const GValue *collation_name_n)
+_gda_postgres_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const
+ G_GNUC_UNUSED GValue *collation_catalog,
+ G_GNUC_UNUSED const GValue *collation_schema,
+ G_GNUC_UNUSED const GValue *collation_name_n)
{
/* nothing to do */
return TRUE;
}
gboolean
-_gda_postgres_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_postgres_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
/* nothing to do */
return TRUE;
}
gboolean
-_gda_postgres_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *chset_catalog, const GValue *chset_schema,
- const GValue *chset_name_n)
+_gda_postgres_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *chset_catalog,
+ G_GNUC_UNUSED const GValue *chset_schema,
+ G_GNUC_UNUSED const GValue *chset_name_n)
{
/* nothing to do */
return TRUE;
}
gboolean
-_gda_postgres_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -853,7 +860,7 @@ _gda_postgres_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *catalog_name, const GValue *schema_name_n)
{
@@ -902,7 +909,7 @@ _gda_postgres_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *tables_model, *views_model;
@@ -959,7 +966,7 @@ _gda_postgres_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name_n)
{
@@ -1039,7 +1046,7 @@ _gda_postgres_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
return retval;
}
-gboolean _gda_postgres_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
+gboolean _gda_postgres_meta__columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model, *proxy;
@@ -1133,7 +1140,7 @@ gboolean _gda_postgres_meta__columns (GdaServerProvider *prov, GdaConnection *cn
}
gboolean
-_gda_postgres_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name)
{
@@ -1241,7 +1248,7 @@ _gda_postgres_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1274,7 +1281,7 @@ _gda_postgres_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *view_catalog, const GValue *view_schema,
const GValue *view_name)
@@ -1311,7 +1318,7 @@ _gda_postgres_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1339,7 +1346,7 @@ _gda_postgres_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc
}
gboolean
-_gda_postgres_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name_n)
@@ -1402,7 +1409,7 @@ _gda_postgres_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1430,7 +1437,7 @@ _gda_postgres_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc
}
gboolean
-_gda_postgres_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name)
@@ -1476,7 +1483,7 @@ _gda_postgres_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1504,7 +1511,7 @@ _gda_postgres_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name)
@@ -1550,7 +1557,7 @@ _gda_postgres_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1578,7 +1585,7 @@ _gda_postgres_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name)
@@ -1624,7 +1631,7 @@ _gda_postgres_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1657,7 +1664,7 @@ _gda_postgres_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name)
@@ -1699,7 +1706,7 @@ _gda_postgres_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1732,7 +1739,7 @@ _gda_postgres_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *routine_catalog, const GValue *routine_schema,
const GValue *routine_name_n)
@@ -1781,7 +1788,7 @@ _gda_postgres_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model, *proxy;
@@ -1844,7 +1851,7 @@ _gda_postgres_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *rout_catalog, const GValue *rout_schema,
const GValue *rout_name)
@@ -1917,7 +1924,7 @@ _gda_postgres_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1950,7 +1957,7 @@ _gda_postgres_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *rout_catalog, const GValue *rout_schema,
const GValue *rout_name)
@@ -1992,7 +1999,7 @@ _gda_postgres_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -2034,7 +2041,7 @@ _gda_postgres_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *index_name_n)
@@ -2097,8 +2104,8 @@ _gda_postgres_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
static GdaDataModel *
-concatenate_index_details (GdaServerProvider *prov, GdaConnection *cnc, GdaMetaStore *store,
- GdaDataModel *index_oid_model, GError **error)
+concatenate_index_details (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, GdaDataModel *index_oid_model, GError **error)
{
GdaDataModel *concat = NULL;
gint i, nrows;
@@ -2179,7 +2186,7 @@ concatenate_index_details (GdaServerProvider *prov, GdaConnection *cnc, GdaMetaS
}
gboolean
-_gda_postgres_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model, *concat;
@@ -2218,7 +2225,7 @@ _gda_postgres_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_postgres_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_postgres_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *index_name)
diff --git a/providers/reuseable/postgres/gda-postgres-parser.c b/providers/reuseable/postgres/gda-postgres-parser.c
index 6179309..f6229ed 100644
--- a/providers/reuseable/postgres/gda-postgres-parser.c
+++ b/providers/reuseable/postgres/gda-postgres-parser.c
@@ -47,7 +47,8 @@ gda_postgres_parser_get_type (void)
NULL,
sizeof (GdaPostgresParser),
0,
- (GInstanceInitFunc) gda_postgres_parser_init
+ (GInstanceInitFunc) gda_postgres_parser_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -79,6 +80,6 @@ gda_postgres_parser_class_init (GdaPostgresParserClass * klass)
}
static void
-gda_postgres_parser_init (GdaPostgresParser *parser)
+gda_postgres_parser_init (G_GNUC_UNUSED GdaPostgresParser *parser)
{
}
diff --git a/providers/reuseable/postgres/gda-postgres-reuseable.c b/providers/reuseable/postgres/gda-postgres-reuseable.c
index 1fa1aa0..4d6c57c 100644
--- a/providers/reuseable/postgres/gda-postgres-reuseable.c
+++ b/providers/reuseable/postgres/gda-postgres-reuseable.c
@@ -507,7 +507,7 @@ _gda_postgres_reuseable_get_reserved_keywords_func (GdaProviderReuseable *rdata)
}
GdaSqlParser *
-_gda_postgres_reuseable_create_parser (GdaProviderReuseable *rdata)
+_gda_postgres_reuseable_create_parser (G_GNUC_UNUSED GdaProviderReuseable *rdata)
{
return GDA_SQL_PARSER (g_object_new (GDA_TYPE_POSTGRES_PARSER, NULL));
}
diff --git a/providers/skel-implementation/capi/gda-capi-blob-op.c b/providers/skel-implementation/capi/gda-capi-blob-op.c
index 843ce27..7f2d012 100644
--- a/providers/skel-implementation/capi/gda-capi-blob-op.c
+++ b/providers/skel-implementation/capi/gda-capi-blob-op.c
@@ -61,7 +61,8 @@ gda_capi_blob_op_get_type (void)
NULL,
sizeof (GdaCapiBlobOp),
0,
- (GInstanceInitFunc) gda_capi_blob_op_init
+ (GInstanceInitFunc) gda_capi_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -73,7 +74,7 @@ gda_capi_blob_op_get_type (void)
static void
gda_capi_blob_op_init (GdaCapiBlobOp *op,
- GdaCapiBlobOpClass *klass)
+ G_GNUC_UNUSED GdaCapiBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_CAPI_BLOB_OP (op));
@@ -176,7 +177,7 @@ gda_capi_blob_op_read (GdaBlobOp *op, GdaBlob *blob, glong offset, glong size)
* Blob write request
*/
static glong
-gda_capi_blob_op_write (GdaBlobOp *op, GdaBlob *blob, glong offset)
+gda_capi_blob_op_write (GdaBlobOp *op, GdaBlob *blob, G_GNUC_UNUSED glong offset)
{
GdaCapiBlobOp *bop;
GdaBinary *bin;
diff --git a/providers/skel-implementation/capi/gda-capi-meta.c b/providers/skel-implementation/capi/gda-capi-meta.c
index b39c937..328f162 100644
--- a/providers/skel-implementation/capi/gda-capi-meta.c
+++ b/providers/skel-implementation/capi/gda-capi-meta.c
@@ -95,7 +95,7 @@ _gda_capi_provider_meta_init (GdaServerProvider *provider)
}
gboolean
-_gda_capi_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_capi_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model = NULL;
@@ -117,23 +117,24 @@ _gda_capi_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_capi_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context, G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_capi_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema)
{
@@ -162,34 +163,38 @@ _gda_capi_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
gboolean
-_gda_capi_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_capi_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
+_gda_capi_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *udt_catalog,
+ G_GNUC_UNUSED const GValue *udt_schema, G_GNUC_UNUSED const GValue *udt_name)
{
TO_IMPLEMENT;
return TRUE;
@@ -197,339 +202,374 @@ _gda_capi_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
gboolean
-_gda_capi_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *domain_catalog, const GValue *domain_schema)
+_gda_capi_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *domain_catalog, const GValue *domain_schema,
- const GValue *domain_name)
+_gda_capi_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *domain_catalog,
+ G_GNUC_UNUSED const GValue *domain_schema,
+ G_GNUC_UNUSED const GValue *domain_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *specific_name)
+_gda_capi_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *specific_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *collation_catalog, const GValue *collation_schema,
- const GValue *collation_name_n)
+_gda_capi_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *collation_catalog,
+ G_GNUC_UNUSED const GValue *collation_schema,
+ G_GNUC_UNUSED const GValue *collation_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *chset_catalog, const GValue *chset_schema,
- const GValue *chset_name_n)
+_gda_capi_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *chset_catalog,
+ G_GNUC_UNUSED const GValue *chset_schema,
+ G_GNUC_UNUSED const GValue *chset_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__schemata (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *catalog_name, const GValue *schema_name_n)
+_gda_capi_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *catalog_name,
+ G_GNUC_UNUSED const GValue *schema_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__tables_views (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name_n)
+_gda_capi_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name)
+_gda_capi_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *view_catalog, const GValue *view_schema,
- const GValue *view_name)
+_gda_capi_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *view_catalog,
+ G_GNUC_UNUSED const GValue *view_schema, G_GNUC_UNUSED const GValue *view_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name_n)
+_gda_capi_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *constraint_name)
+_gda_capi_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name)
+_gda_capi_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *constraint_name)
+_gda_capi_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema,
+ G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *constraint_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name)
+_gda_capi_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *routine_catalog, const GValue *routine_schema,
- const GValue *routine_name_n)
+_gda_capi_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *routine_catalog,
+ G_GNUC_UNUSED const GValue *routine_schema,
+ G_GNUC_UNUSED const GValue *routine_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *rout_catalog, const GValue *rout_schema,
- const GValue *rout_name)
+_gda_capi_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema, G_GNUC_UNUSED const GValue *rout_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context, G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *rout_catalog, const GValue *rout_schema,
- const GValue *rout_name)
+_gda_capi_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *rout_catalog,
+ G_GNUC_UNUSED const GValue *rout_schema, G_GNUC_UNUSED const GValue *rout_name)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
- const GValue *index_name_n)
+_gda_capi_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *index_name_n)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error)
+_gda_capi_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return TRUE;
}
gboolean
-_gda_capi_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
- GdaMetaStore *store, GdaMetaContext *context, GError **error,
- const GValue *table_catalog, const GValue *table_schema,
- const GValue *table_name, const GValue *index_name)
+_gda_capi_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED GdaMetaStore *store, G_GNUC_UNUSED GdaMetaContext *context,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED const GValue *table_catalog,
+ G_GNUC_UNUSED const GValue *table_schema, G_GNUC_UNUSED const GValue *table_name,
+ G_GNUC_UNUSED const GValue *index_name)
{
TO_IMPLEMENT;
return TRUE;
diff --git a/providers/skel-implementation/capi/gda-capi-parser.c b/providers/skel-implementation/capi/gda-capi-parser.c
index c445bab..4c8ee83 100644
--- a/providers/skel-implementation/capi/gda-capi-parser.c
+++ b/providers/skel-implementation/capi/gda-capi-parser.c
@@ -47,7 +47,8 @@ gda_capi_parser_get_type (void)
NULL,
sizeof (GdaCapiParser),
0,
- (GInstanceInitFunc) gda_capi_parser_init
+ (GInstanceInitFunc) gda_capi_parser_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -79,6 +80,6 @@ gda_capi_parser_class_init (GdaCapiParserClass * klass)
}
static void
-gda_capi_parser_init (GdaCapiParser *parser)
+gda_capi_parser_init (G_GNUC_UNUSED GdaCapiParser *parser)
{
}
diff --git a/providers/skel-implementation/capi/gda-capi-provider.c b/providers/skel-implementation/capi/gda-capi-provider.c
index b030cd7..00ec576 100644
--- a/providers/skel-implementation/capi/gda-capi-provider.c
+++ b/providers/skel-implementation/capi/gda-capi-provider.c
@@ -259,7 +259,7 @@ gda_capi_provider_class_init (GdaCapiProviderClass *klass)
}
static void
-gda_capi_provider_init (GdaCapiProvider *capi_prv, GdaCapiProviderClass *klass)
+gda_capi_provider_init (GdaCapiProvider *capi_prv, G_GNUC_UNUSED GdaCapiProviderClass *klass)
{
InternalStatementItem i;
GdaSqlParser *parser;
@@ -293,7 +293,8 @@ gda_capi_provider_get_type (void)
NULL, NULL,
sizeof (GdaCapiProvider),
0,
- (GInstanceInitFunc) gda_capi_provider_init
+ (GInstanceInitFunc) gda_capi_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -309,7 +310,7 @@ gda_capi_provider_get_type (void)
* Get provider name request
*/
static const gchar *
-gda_capi_provider_get_name (GdaServerProvider *provider)
+gda_capi_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return CAPI_PROVIDER_NAME;
}
@@ -318,7 +319,7 @@ gda_capi_provider_get_name (GdaServerProvider *provider)
* Get provider's version, no need to change this
*/
static const gchar *
-gda_capi_provider_get_version (GdaServerProvider *provider)
+gda_capi_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -336,8 +337,9 @@ gda_capi_provider_get_version (GdaServerProvider *provider)
*/
static gboolean
gda_capi_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
- GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ GdaQuarkList *params, G_GNUC_UNUSED GdaQuarkList *auth,
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
g_return_val_if_fail (GDA_IS_CAPI_PROVIDER (provider), FALSE);
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -459,7 +461,7 @@ gda_capi_provider_get_database (GdaServerProvider *provider, GdaConnection *cnc)
*/
static gboolean
gda_capi_provider_supports_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options)
+ GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options)
{
if (cnc) {
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -496,7 +498,8 @@ gda_capi_provider_supports_operation (GdaServerProvider *provider, GdaConnection
*/
static GdaServerOperation *
gda_capi_provider_create_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options, GError **error)
+ GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options,
+ GError **error)
{
gchar *file;
GdaServerOperation *op;
@@ -596,8 +599,9 @@ gda_capi_provider_render_operation (GdaServerProvider *provider, GdaConnection *
*/
static gboolean
gda_capi_provider_perform_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, guint *task_id,
- GdaServerProviderAsyncCallback async_cb, gpointer cb_data, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED guint *task_id,
+ GdaServerProviderAsyncCallback async_cb, G_GNUC_UNUSED gpointer cb_data,
+ GError **error)
{
GdaServerOperationType optype;
@@ -627,8 +631,9 @@ gda_capi_provider_perform_operation (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_capi_provider_begin_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GdaTransactionIsolation level,
- GError **error)
+ G_GNUC_UNUSED const gchar *name,
+ G_GNUC_UNUSED GdaTransactionIsolation level,
+ G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -649,7 +654,7 @@ gda_capi_provider_begin_transaction (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_capi_provider_commit_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -670,7 +675,7 @@ gda_capi_provider_commit_transaction (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_capi_provider_rollback_transaction (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -691,7 +696,7 @@ gda_capi_provider_rollback_transaction (GdaServerProvider *provider, GdaConnecti
*/
static gboolean
gda_capi_provider_add_savepoint (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -712,7 +717,7 @@ gda_capi_provider_add_savepoint (GdaServerProvider *provider, GdaConnection *cnc
*/
static gboolean
gda_capi_provider_rollback_savepoint (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -733,7 +738,7 @@ gda_capi_provider_rollback_savepoint (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_capi_provider_delete_savepoint (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -879,7 +884,7 @@ gda_capi_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConnect
* by the database. See the PostgreSQL provider implementation for an example.
*/
static GdaSqlParser *
-gda_capi_provider_create_parser (GdaServerProvider *provider, GdaConnection *cnc)
+gda_capi_provider_create_parser (G_GNUC_UNUSED GdaServerProvider *provider, G_GNUC_UNUSED GdaConnection *cnc)
{
TO_IMPLEMENT;
return NULL;
@@ -1163,7 +1168,7 @@ gda_capi_provider_statement_execute (GdaServerProvider *provider, GdaConnection
/* actual binding using the C API, for parameter at position @i */
- const GValue *value = gda_holder_get_value (h);
+ /* const GValue *value = gda_holder_get_value (h); */
TO_IMPLEMENT;
}
@@ -1259,7 +1264,7 @@ gda_capi_statement_rewrite (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_capi_provider_xa_start (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -1281,7 +1286,7 @@ gda_capi_provider_xa_start (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_capi_provider_xa_end (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -1302,7 +1307,7 @@ gda_capi_provider_xa_end (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_capi_provider_xa_prepare (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -1324,7 +1329,7 @@ gda_capi_provider_xa_prepare (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_capi_provider_xa_commit (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -1345,7 +1350,7 @@ gda_capi_provider_xa_commit (GdaServerProvider *provider, GdaConnection *cnc,
*/
static gboolean
gda_capi_provider_xa_rollback (GdaServerProvider *provider, GdaConnection *cnc,
- const GdaXaTransactionId *xid, GError **error)
+ const GdaXaTransactionId *xid, G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
@@ -1368,7 +1373,7 @@ gda_capi_provider_xa_rollback (GdaServerProvider *provider, GdaConnection *cnc,
*/
static GList *
gda_capi_provider_xa_recover (GdaServerProvider *provider, GdaConnection *cnc,
- GError **error)
+ G_GNUC_UNUSED GError **error)
{
CapiConnectionData *cdata;
diff --git a/providers/skel-implementation/capi/gda-capi-pstmt.c b/providers/skel-implementation/capi/gda-capi-pstmt.c
index 9d20644..a5cea4e 100644
--- a/providers/skel-implementation/capi/gda-capi-pstmt.c
+++ b/providers/skel-implementation/capi/gda-capi-pstmt.c
@@ -51,7 +51,8 @@ gda_capi_pstmt_get_type (void)
NULL,
sizeof (GdaCapiPStmt),
0,
- (GInstanceInitFunc) gda_capi_pstmt_init
+ (GInstanceInitFunc) gda_capi_pstmt_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -73,7 +74,7 @@ gda_capi_pstmt_class_init (GdaCapiPStmtClass *klass)
}
static void
-gda_capi_pstmt_init (GdaCapiPStmt *pstmt, GdaCapiPStmtClass *klass)
+gda_capi_pstmt_init (GdaCapiPStmt *pstmt, G_GNUC_UNUSED GdaCapiPStmtClass *klass)
{
g_return_if_fail (GDA_IS_PSTMT (pstmt));
diff --git a/providers/skel-implementation/capi/gda-capi-recordset.c b/providers/skel-implementation/capi/gda-capi-recordset.c
index 4a02b81..a33c43d 100644
--- a/providers/skel-implementation/capi/gda-capi-recordset.c
+++ b/providers/skel-implementation/capi/gda-capi-recordset.c
@@ -55,7 +55,7 @@ static GObjectClass *parent_class = NULL;
*/
static void
gda_capi_recordset_init (GdaCapiRecordset *recset,
- GdaCapiRecordsetClass *klass)
+ G_GNUC_UNUSED GdaCapiRecordsetClass *klass)
{
g_return_if_fail (GDA_IS_CAPI_RECORDSET (recset));
recset->priv = g_new0 (GdaCapiRecordsetPrivate, 1);
@@ -122,7 +122,8 @@ gda_capi_recordset_get_type (void)
NULL,
sizeof (GdaCapiRecordset),
0,
- (GInstanceInitFunc) gda_capi_recordset_init
+ (GInstanceInitFunc) gda_capi_recordset_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -253,7 +254,8 @@ gda_capi_recordset_fetch_nb_rows (GdaDataSelect *model)
* as it won't be used anymore to fetch rows.
*/
static gboolean
-gda_capi_recordset_fetch_random (GdaDataSelect *model, GdaRow **prow, gint rownum, GError **error)
+gda_capi_recordset_fetch_random (GdaDataSelect *model, G_GNUC_UNUSED GdaRow **prow, G_GNUC_UNUSED gint rownum,
+ G_GNUC_UNUSED GError **error)
{
GdaCapiRecordset *imodel;
@@ -267,6 +269,7 @@ gda_capi_recordset_fetch_random (GdaDataSelect *model, GdaRow **prow, gint rownu
/*
* Create and "give" filled #GdaRow object for all the rows in the model
*/
+#if 0
static gboolean
gda_capi_recordset_store_all (GdaDataSelect *model, GError **error)
{
@@ -283,6 +286,7 @@ gda_capi_recordset_store_all (GdaDataSelect *model, GError **error)
}
return TRUE;
}
+#endif
/*
* Create a new filled #GdaRow object for the next cursor row, and put it into *prow.
@@ -297,9 +301,10 @@ gda_capi_recordset_store_all (GdaDataSelect *model, GError **error)
* can use gda_data_select_take_row().
*/
static gboolean
-gda_capi_recordset_fetch_next (GdaDataSelect *model, GdaRow **prow, gint rownum, GError **error)
+gda_capi_recordset_fetch_next (G_GNUC_UNUSED GdaDataSelect *model, G_GNUC_UNUSED GdaRow **prow,
+ G_GNUC_UNUSED gint rownum, G_GNUC_UNUSED GError **error)
{
- GdaCapiRecordset *imodel = (GdaCapiRecordset*) model;
+ /* GdaCapiRecordset *imodel = (GdaCapiRecordset*) model; */
TO_IMPLEMENT;
@@ -319,9 +324,10 @@ gda_capi_recordset_fetch_next (GdaDataSelect *model, GdaRow **prow, gint rownum,
* can use gda_data_select_take_row().
*/
static gboolean
-gda_capi_recordset_fetch_prev (GdaDataSelect *model, GdaRow **prow, gint rownum, GError **error)
+gda_capi_recordset_fetch_prev (G_GNUC_UNUSED GdaDataSelect *model, G_GNUC_UNUSED GdaRow **prow,
+ G_GNUC_UNUSED gint rownum, G_GNUC_UNUSED GError **error)
{
- GdaCapiRecordset *imodel = (GdaCapiRecordset*) model;
+ /* GdaCapiRecordset *imodel = (GdaCapiRecordset*) model; */
TO_IMPLEMENT;
@@ -341,9 +347,10 @@ gda_capi_recordset_fetch_prev (GdaDataSelect *model, GdaRow **prow, gint rownum,
* can use gda_data_select_take_row().
*/
static gboolean
-gda_capi_recordset_fetch_at (GdaDataSelect *model, GdaRow **prow, gint rownum, GError **error)
+gda_capi_recordset_fetch_at (G_GNUC_UNUSED GdaDataSelect *model, G_GNUC_UNUSED GdaRow **prow,
+ G_GNUC_UNUSED gint rownum, G_GNUC_UNUSED GError **error)
{
- GdaCapiRecordset *imodel = (GdaCapiRecordset*) model;
+ /* GdaCapiRecordset *imodel = (GdaCapiRecordset*) model; */
TO_IMPLEMENT;
diff --git a/providers/skel-implementation/capi/libmain.c b/providers/skel-implementation/capi/libmain.c
index cefa1e1..9f55a54 100644
--- a/providers/skel-implementation/capi/libmain.c
+++ b/providers/skel-implementation/capi/libmain.c
@@ -36,14 +36,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/providers/skel-implementation/models/gda-models-provider.c b/providers/skel-implementation/models/gda-models-provider.c
index d2e2803..f77e70f 100644
--- a/providers/skel-implementation/models/gda-models-provider.c
+++ b/providers/skel-implementation/models/gda-models-provider.c
@@ -69,7 +69,8 @@ gda_models_provider_class_init (GdaModelsProviderClass *klass)
}
static void
-gda_models_provider_init (GdaModelsProvider *pg_prv, GdaModelsProviderClass *klass)
+gda_models_provider_init (G_GNUC_UNUSED GdaModelsProvider *pg_prv,
+ G_GNUC_UNUSED GdaModelsProviderClass *klass)
{
/* initialization of provider instance is to add here */
TO_IMPLEMENT;
@@ -101,7 +102,8 @@ gda_models_provider_get_type (void)
NULL, NULL,
sizeof (GdaModelsProvider),
0,
- (GInstanceInitFunc) gda_models_provider_init
+ (GInstanceInitFunc) gda_models_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -116,7 +118,7 @@ gda_models_provider_get_type (void)
* Get provider name request
*/
static const gchar *
-gda_models_provider_get_name (GdaServerProvider *provider)
+gda_models_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return MODELS_PROVIDER_NAME;
}
@@ -125,7 +127,7 @@ gda_models_provider_get_name (GdaServerProvider *provider)
* Get version request
*/
static const gchar *
-gda_models_provider_get_version (GdaServerProvider *provider)
+gda_models_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -145,8 +147,9 @@ gda_models_provider_get_version (GdaServerProvider *provider)
*/
static gboolean
gda_models_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
- GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ GdaQuarkList *params, G_GNUC_UNUSED GdaQuarkList *auth,
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
g_return_val_if_fail (GDA_IS_MODELS_PROVIDER (provider), FALSE);
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
diff --git a/providers/skel-implementation/models/libmain.c b/providers/skel-implementation/models/libmain.c
index a9beaca..64edf1a 100644
--- a/providers/skel-implementation/models/libmain.c
+++ b/providers/skel-implementation/models/libmain.c
@@ -37,14 +37,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/providers/sqlcipher/libmain.c b/providers/sqlcipher/libmain.c
index 3105c96..3c42557 100644
--- a/providers/sqlcipher/libmain.c
+++ b/providers/sqlcipher/libmain.c
@@ -37,14 +37,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/providers/sqlcipher/sqlcipher.patch b/providers/sqlcipher/sqlcipher.patch
index 77d2090..1bc56f3 100644
--- a/providers/sqlcipher/sqlcipher.patch
+++ b/providers/sqlcipher/sqlcipher.patch
@@ -1,6 +1,6 @@
---- sqlite3.c.sqlite 2010-09-13 21:54:33.000000000 +0200
-+++ sqlite3.c 2010-09-13 21:51:52.000000000 +0200
-@@ -10994,6 +10994,1320 @@
+--- sqlite3.c.sqlite 2010-10-05 08:59:19.000000000 +0200
++++ sqlite3.c 2010-10-05 08:58:35.000000000 +0200
+@@ -10994,6 +10994,1343 @@
#endif /* _SQLITEINT_H_ */
/************** End of sqliteInt.h *******************************************/
@@ -1080,7 +1080,7 @@
+ */
+void* sqlite3Codec(void *iCtx, void *data, Pgno pgno, int mode) {
+ codec_ctx *ctx = (codec_ctx *) iCtx;
-+ int pg_sz = sqlite3BtreeGetPageSize(ctx->pBt);
++ int pg_sz = SQLITE_DEFAULT_PAGE_SIZE;
+ int offset = 0;
+ unsigned char *pData = (unsigned char *) data;
+
@@ -1155,7 +1155,7 @@
+ /* pre-allocate a page buffer of PageSize bytes. This will
+ be used as a persistent buffer for encryption and decryption
+ operations to avoid overhead of multiple memory allocations*/
-+ ctx->buffer = sqlite3Malloc(sqlite3BtreeGetPageSize(ctx->pBt));
++ ctx->buffer = sqlite3Malloc(SQLITE_DEFAULT_PAGE_SIZE);
+ if(ctx->buffer == NULL) return SQLITE_NOMEM;
+
+ /* allocate space for salt data. Then read the first 16 bytes
@@ -1166,6 +1166,7 @@
+ ctx->kdf_salt = sqlite3Malloc(ctx->kdf_salt_sz);
+ if(ctx->kdf_salt == NULL) return SQLITE_NOMEM;
+
++
+ fd = sqlite3Pager_get_fd(pPager);
+ if(fd == NULL || sqlite3OsRead(fd, ctx->kdf_salt, FILE_HEADER_SZ, 0) != SQLITE_OK) {
+ /* if unable to read the bytes, generate random salt */
@@ -1178,8 +1179,27 @@
+ codec_set_kdf_iter(db, nDb, PBKDF2_ITER, 0);
+ codec_set_pass_key(db, nDb, zKey, nKey, 0);
+ cipher_ctx_copy(ctx->write_ctx, ctx->read_ctx);
++
++ sqlite3_mutex_enter(db->mutex);
+
-+ sqlite3BtreeSetPageSize(ctx->pBt, sqlite3BtreeGetPageSize(ctx->pBt), EVP_MAX_IV_LENGTH, 0);
++ /* Always overwrite page size and set to the default because the first page of the database
++ in encrypted and thus sqlite can't effectively determine the pagesize. this causes an issue in
++ cases where bytes 16 & 17 of the page header are a power of 2 as reported by John Lehman
++
++ Note: before forcing the page size we need to force pageSizeFixed to 0, else
++ sqliteBtreeSetPageSize will block the change
++ */
++ pDb->pBt->pBt->pageSizeFixed = 0;
++ sqlite3BtreeSetPageSize(ctx->pBt, SQLITE_DEFAULT_PAGE_SIZE, EVP_MAX_IV_LENGTH, 0);
++
++ /* if fd is null, then this is an in-memory database and
++ we dont' want to overwrite the AutoVacuum settings
++ if not null, then set to the default */
++ if(fd != NULL) {
++ sqlite3BtreeSetAutoVacuum(ctx->pBt, SQLITE_DEFAULT_AUTOVACUUM);
++ }
++
++ sqlite3_mutex_leave(db->mutex);
+ }
+ return SQLITE_OK;
+}
@@ -1244,10 +1264,12 @@
+ ctx->read_ctx->key_sz = ctx->read_ctx->iv_sz = ctx->read_ctx->pass_sz = 0;
+ }
+
++ sqlite3_mutex_enter(db->mutex);
++
+ if(ctx->read_ctx->iv_sz != ctx->write_ctx->iv_sz) {
+ char *error;
+ CODEC_TRACE(("sqlite3_rekey: updating page size for iv_sz change from %d to %d\n", ctx->read_ctx->iv_sz, ctx->write_ctx->iv_sz));
-+ db->nextPagesize = sqlite3BtreeGetPageSize(pDb->pBt);
++ db->nextPagesize = SQLITE_DEFAULT_PAGE_SIZE;
+ pDb->pBt->pBt->pageSizeFixed = 0; /* required for sqlite3BtreeSetPageSize to modify pagesize setting */
+ sqlite3BtreeSetPageSize(pDb->pBt, db->nextPagesize, EVP_MAX_IV_LENGTH, 0);
+ sqlite3RunVacuum(&error, db);
@@ -1280,7 +1302,7 @@
+ /* if commit was successful commit and copy the rekey data to current key, else rollback to release locks */
+ if(rc == SQLITE_OK) {
+ CODEC_TRACE(("sqlite3_rekey: committing\n"));
-+ db->nextPagesize = sqlite3BtreeGetPageSize(pDb->pBt);
++ db->nextPagesize = SQLITE_DEFAULT_PAGE_SIZE;
+ rc = sqlite3BtreeCommit(pDb->pBt);
+ cipher_ctx_copy(ctx->read_ctx, ctx->write_ctx);
+ } else {
@@ -1289,6 +1311,7 @@
+ }
+
+ ctx->mode_rekey = 0;
++ sqlite3_mutex_leave(db->mutex);
+ }
+ return SQLITE_OK;
+ }
@@ -1321,7 +1344,7 @@
/************** Begin file global.c ******************************************/
/*
** 2008 June 13
-@@ -40807,11 +42121,40 @@
+@@ -40807,11 +42144,40 @@
CODEC2(pPg->pPager, pPg->pData, pPg->pgno, 6, return 0, aData);
return aData;
}
@@ -1365,7 +1388,7 @@
/************** End of pager.c ***********************************************/
/************** Begin file wal.c *********************************************/
-@@ -43340,854 +44683,208 @@
+@@ -43340,854 +44706,208 @@
#if defined(SQLITE_HAS_CODEC)
if( (pData = sqlite3PagerCodec(pLast))==0 ) return SQLITE_NOMEM;
#else
@@ -2395,7 +2418,7 @@
#ifndef SQLITE_OMIT_SHARED_CACHE
#if SQLITE_THREADSAFE
-@@ -85120,60 +85817,6 @@
+@@ -85120,60 +85840,6 @@
#ifndef SQLITE_OMIT_SCHEMA_PRAGMAS
/*
@@ -2456,7 +2479,7 @@
** PRAGMA table_info(<table>)
**
** Return a single row for each column of the named table. The columns of
-@@ -85795,6 +86438,24 @@
+@@ -85795,6 +86461,24 @@
sqlite3_rekey(db, zKey, i/2);
}
}else
diff --git a/providers/sqlite/Makefile.am b/providers/sqlite/Makefile.am
index f6df96a..d346457 100644
--- a/providers/sqlite/Makefile.am
+++ b/providers/sqlite/Makefile.am
@@ -16,7 +16,7 @@ libgda_sqlite_la_SOURCES = \
libgda_sqlite_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED) $(LIBTOOL_PROV_EXPORT_OPTIONS)
libgda_sqlite_la_LIBADD = \
- $(top_builddir)/libgda/libgda-4.0.la \
+ $(top_builddir)/libgda/libgda-5.0.la \
$(LIBGDA_LIBS)
xmldir = $(datadir)/libgda-5.0
diff --git a/providers/sqlite/libmain.c b/providers/sqlite/libmain.c
index cf72417..6398d6d 100644
--- a/providers/sqlite/libmain.c
+++ b/providers/sqlite/libmain.c
@@ -38,14 +38,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/providers/web/gda-web-blob-op.c b/providers/web/gda-web-blob-op.c
index 89f0002..58fc7c9 100644
--- a/providers/web/gda-web-blob-op.c
+++ b/providers/web/gda-web-blob-op.c
@@ -61,7 +61,8 @@ gda_web_blob_op_get_type (void)
NULL,
sizeof (GdaWebBlobOp),
0,
- (GInstanceInitFunc) gda_web_blob_op_init
+ (GInstanceInitFunc) gda_web_blob_op_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -73,7 +74,7 @@ gda_web_blob_op_get_type (void)
static void
gda_web_blob_op_init (GdaWebBlobOp *op,
- GdaWebBlobOpClass *klass)
+ G_GNUC_UNUSED GdaWebBlobOpClass *klass)
{
g_return_if_fail (GDA_IS_WEB_BLOB_OP (op));
@@ -176,7 +177,7 @@ gda_web_blob_op_read (GdaBlobOp *op, GdaBlob *blob, glong offset, glong size)
* Blob write request
*/
static glong
-gda_web_blob_op_write (GdaBlobOp *op, GdaBlob *blob, glong offset)
+gda_web_blob_op_write (GdaBlobOp *op, GdaBlob *blob, G_GNUC_UNUSED glong offset)
{
GdaWebBlobOp *bop;
GdaBinary *bin;
diff --git a/providers/web/gda-web-meta.c b/providers/web/gda-web-meta.c
index c978f19..2245cbe 100644
--- a/providers/web/gda-web-meta.c
+++ b/providers/web/gda-web-meta.c
@@ -39,7 +39,7 @@
* Meta initialization
*/
void
-_gda_web_provider_meta_init (GdaServerProvider *provider)
+_gda_web_provider_meta_init (G_GNUC_UNUSED GdaServerProvider *provider)
{
}
@@ -115,7 +115,7 @@ run_meta_command (GdaConnection *cnc, WebConnectionData *cdata, const gchar *typ
}
gboolean
-_gda_web_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__info (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -146,7 +146,7 @@ _gda_web_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__btypes (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -177,7 +177,7 @@ _gda_web_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -200,7 +200,7 @@ _gda_web_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_udt (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema)
{
@@ -226,7 +226,7 @@ _gda_web_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
gboolean
-_gda_web_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -249,7 +249,7 @@ _gda_web_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_udt_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
{
@@ -275,7 +275,7 @@ _gda_web_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__enums (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -298,7 +298,7 @@ _gda_web_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_enums (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name)
{
@@ -325,7 +325,7 @@ _gda_web_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
gboolean
-_gda_web_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__domains (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -348,7 +348,7 @@ _gda_web_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_domains (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *domain_catalog, const GValue *domain_schema)
{
@@ -373,7 +373,7 @@ _gda_web_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -396,7 +396,7 @@ _gda_web_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_constraints_dom (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *domain_catalog, const GValue *domain_schema,
const GValue *domain_name)
@@ -423,7 +423,7 @@ _gda_web_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__el_types (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -446,7 +446,7 @@ _gda_web_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_el_types (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *specific_name)
{
@@ -471,7 +471,7 @@ _gda_web_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__collations (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -494,7 +494,7 @@ _gda_web_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_collations (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *collation_catalog, const GValue *collation_schema,
const GValue *collation_name_n)
@@ -522,7 +522,7 @@ _gda_web_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__character_sets (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -545,7 +545,7 @@ _gda_web_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_character_sets (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *chset_catalog, const GValue *chset_schema,
const GValue *chset_name_n)
@@ -572,7 +572,7 @@ _gda_web_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -603,7 +603,7 @@ _gda_web_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_schemata (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *catalog_name, const GValue *schema_name_n)
{
@@ -641,7 +641,7 @@ _gda_web_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *tables_model, *views_model;
@@ -688,7 +688,7 @@ _gda_web_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_tables_views (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name_n)
@@ -756,7 +756,7 @@ _gda_web_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -787,7 +787,7 @@ _gda_web_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name)
@@ -824,7 +824,7 @@ _gda_web_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__view_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -847,7 +847,7 @@ _gda_web_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_view_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *view_catalog, const GValue *view_schema,
const GValue *view_name)
@@ -874,7 +874,7 @@ _gda_web_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -905,7 +905,7 @@ _gda_web_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_constraints_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name_n)
@@ -950,7 +950,7 @@ _gda_web_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -981,7 +981,7 @@ _gda_web_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_constraints_ref (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *constraint_name)
@@ -1021,7 +1021,7 @@ _gda_web_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1052,7 +1052,7 @@ _gda_web_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_key_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name)
@@ -1092,7 +1092,7 @@ _gda_web_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__check_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1123,7 +1123,7 @@ _gda_web_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_check_columns (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *constraint_name)
@@ -1163,7 +1163,7 @@ _gda_web_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__triggers (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
GdaDataModel *model;
@@ -1194,7 +1194,7 @@ _gda_web_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_triggers (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name)
@@ -1232,7 +1232,7 @@ _gda_web_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -1255,7 +1255,7 @@ _gda_web_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_routines (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *routine_catalog, const GValue *routine_schema,
const GValue *routine_name_n)
@@ -1282,7 +1282,7 @@ _gda_web_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__routine_col (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -1305,7 +1305,7 @@ _gda_web_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_routine_col (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *rout_catalog, const GValue *rout_schema,
const GValue *rout_name)
@@ -1332,7 +1332,7 @@ _gda_web_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__routine_par (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -1355,7 +1355,7 @@ _gda_web_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_routine_par (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *rout_catalog, const GValue *rout_schema,
const GValue *rout_name)
@@ -1382,7 +1382,7 @@ _gda_web_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -1405,7 +1405,7 @@ _gda_web_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_indexes_tab (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
const GValue *index_name_n)
@@ -1432,7 +1432,7 @@ _gda_web_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta__index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error)
{
WebConnectionData *cdata;
@@ -1455,7 +1455,7 @@ _gda_web_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
}
gboolean
-_gda_web_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
+_gda_web_meta_index_cols (G_GNUC_UNUSED GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaStore *store, GdaMetaContext *context, GError **error,
const GValue *table_catalog, const GValue *table_schema,
const GValue *table_name, const GValue *index_name)
diff --git a/providers/web/gda-web-provider.c b/providers/web/gda-web-provider.c
index aa9b1f5..5313b01 100644
--- a/providers/web/gda-web-provider.c
+++ b/providers/web/gda-web-provider.c
@@ -228,7 +228,7 @@ gda_web_provider_class_init (GdaWebProviderClass *klass)
}
static void
-gda_web_provider_init (GdaWebProvider *web_prv, GdaWebProviderClass *klass)
+gda_web_provider_init (G_GNUC_UNUSED GdaWebProvider *web_prv, G_GNUC_UNUSED GdaWebProviderClass *klass)
{
}
@@ -247,7 +247,8 @@ gda_web_provider_get_type (void)
NULL, NULL,
sizeof (GdaWebProvider),
0,
- (GInstanceInitFunc) gda_web_provider_init
+ (GInstanceInitFunc) gda_web_provider_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
@@ -263,7 +264,7 @@ gda_web_provider_get_type (void)
* Get provider name request
*/
static const gchar *
-gda_web_provider_get_name (GdaServerProvider *provider)
+gda_web_provider_get_name (G_GNUC_UNUSED GdaServerProvider *provider)
{
return WEB_PROVIDER_NAME;
}
@@ -272,7 +273,7 @@ gda_web_provider_get_name (GdaServerProvider *provider)
* Get provider's version, no need to change this
*/
static const gchar *
-gda_web_provider_get_version (GdaServerProvider *provider)
+gda_web_provider_get_version (G_GNUC_UNUSED GdaServerProvider *provider)
{
return PACKAGE_VERSION;
}
@@ -331,7 +332,8 @@ do_server_setup (GdaConnection *cnc, WebConnectionData *cdata)
static gboolean
gda_web_provider_open_connection (GdaServerProvider *provider, GdaConnection *cnc,
GdaQuarkList *params, GdaQuarkList *auth,
- guint *task_id, GdaServerProviderAsyncCallback async_cb, gpointer cb_data)
+ G_GNUC_UNUSED guint *task_id, GdaServerProviderAsyncCallback async_cb,
+ G_GNUC_UNUSED gpointer cb_data)
{
g_return_val_if_fail (GDA_IS_WEB_PROVIDER (provider), FALSE);
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -578,7 +580,7 @@ gda_web_provider_get_server_version (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_web_provider_supports_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options)
+ GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options)
{
if (cnc) {
g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
@@ -613,7 +615,8 @@ gda_web_provider_supports_operation (GdaServerProvider *provider, GdaConnection
*/
static GdaServerOperation *
gda_web_provider_create_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperationType type, GdaSet *options, GError **error)
+ G_GNUC_UNUSED GdaServerOperationType type, G_GNUC_UNUSED GdaSet *options,
+ GError **error)
{
WebConnectionData *cdata = NULL;
@@ -638,7 +641,7 @@ gda_web_provider_create_operation (GdaServerProvider *provider, GdaConnection *c
*/
static gchar *
gda_web_provider_render_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, GError **error)
+ G_GNUC_UNUSED GdaServerOperation *op, GError **error)
{
WebConnectionData *cdata = NULL;
@@ -663,8 +666,9 @@ gda_web_provider_render_operation (GdaServerProvider *provider, GdaConnection *c
*/
static gboolean
gda_web_provider_perform_operation (GdaServerProvider *provider, GdaConnection *cnc,
- GdaServerOperation *op, guint *task_id,
- GdaServerProviderAsyncCallback async_cb, gpointer cb_data, GError **error)
+ GdaServerOperation *op, G_GNUC_UNUSED guint *task_id,
+ GdaServerProviderAsyncCallback async_cb, G_GNUC_UNUSED gpointer cb_data,
+ GError **error)
{
GdaServerOperationType optype;
@@ -1002,7 +1006,7 @@ gda_web_provider_rollback_savepoint (GdaServerProvider *provider, GdaConnection
*/
static gboolean
gda_web_provider_delete_savepoint (GdaServerProvider *provider, GdaConnection *cnc,
- const gchar *name, GError **error)
+ G_GNUC_UNUSED const gchar *name, G_GNUC_UNUSED GError **error)
{
WebConnectionData *cdata;
@@ -1054,7 +1058,7 @@ gda_web_provider_supports_feature (GdaServerProvider *provider, GdaConnection *c
*/
static GdaDataHandler *
gda_web_provider_get_data_handler (GdaServerProvider *provider, GdaConnection *cnc,
- GType type, const gchar *dbms_type)
+ G_GNUC_UNUSED GType type, G_GNUC_UNUSED const gchar *dbms_type)
{
WebConnectionData *cdata = NULL;
@@ -1077,7 +1081,7 @@ gda_web_provider_get_data_handler (GdaServerProvider *provider, GdaConnection *c
* This method returns the "preferred" DBMS type for GType
*/
static const gchar*
-gda_web_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConnection *cnc, GType type)
+gda_web_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConnection *cnc, G_GNUC_UNUSED GType type)
{
WebConnectionData *cdata = NULL;
@@ -1101,7 +1105,7 @@ gda_web_provider_get_default_dbms_type (GdaServerProvider *provider, GdaConnecti
* by the database. See the PostgreSQL provider implementation for an example.
*/
static GdaSqlParser *
-gda_web_provider_create_parser (GdaServerProvider *provider, GdaConnection *cnc)
+gda_web_provider_create_parser (G_GNUC_UNUSED GdaServerProvider *provider, GdaConnection *cnc)
{
WebConnectionData *cdata = NULL;
diff --git a/providers/web/gda-web-pstmt.c b/providers/web/gda-web-pstmt.c
index dfe412c..c208ef3 100644
--- a/providers/web/gda-web-pstmt.c
+++ b/providers/web/gda-web-pstmt.c
@@ -52,7 +52,8 @@ gda_web_pstmt_get_type (void)
NULL,
sizeof (GdaWebPStmt),
0,
- (GInstanceInitFunc) gda_web_pstmt_init
+ (GInstanceInitFunc) gda_web_pstmt_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -74,7 +75,7 @@ gda_web_pstmt_class_init (GdaWebPStmtClass *klass)
}
static void
-gda_web_pstmt_init (GdaWebPStmt *pstmt, GdaWebPStmtClass *klass)
+gda_web_pstmt_init (GdaWebPStmt *pstmt, G_GNUC_UNUSED GdaWebPStmtClass *klass)
{
g_return_if_fail (GDA_IS_PSTMT (pstmt));
diff --git a/providers/web/gda-web-recordset.c b/providers/web/gda-web-recordset.c
index fa52a69..ecac236 100644
--- a/providers/web/gda-web-recordset.c
+++ b/providers/web/gda-web-recordset.c
@@ -62,7 +62,7 @@ static GObjectClass *parent_class = NULL;
*/
static void
gda_web_recordset_init (GdaWebRecordset *recset,
- GdaWebRecordsetClass *klass)
+ G_GNUC_UNUSED GdaWebRecordsetClass *klass)
{
g_return_if_fail (GDA_IS_WEB_RECORDSET (recset));
recset->priv = g_new0 (GdaWebRecordsetPrivate, 1);
@@ -137,7 +137,8 @@ gda_web_recordset_get_type (void)
NULL,
sizeof (GdaWebRecordset),
0,
- (GInstanceInitFunc) gda_web_recordset_init
+ (GInstanceInitFunc) gda_web_recordset_init,
+ 0
};
g_static_mutex_lock (®istering);
if (type == 0)
diff --git a/providers/web/libmain.c b/providers/web/libmain.c
index f17bfde..5707a89 100644
--- a/providers/web/libmain.c
+++ b/providers/web/libmain.c
@@ -36,14 +36,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/testing/gda-provider-status.c b/testing/gda-provider-status.c
index 270ff00..02f9ae8 100644
--- a/testing/gda-provider-status.c
+++ b/testing/gda-provider-status.c
@@ -33,7 +33,7 @@ gchar *outfile = NULL;
static GOptionEntry entries[] = {
{ "no-password-ask", 'p', 0, G_OPTION_ARG_NONE, &ask_pass, "Don't ast for a password when it is empty", NULL },
{ "output-file", 'o', 0, G_OPTION_ARG_STRING, &outfile, "Output file", "output file"},
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
HtmlConfig *config;
@@ -336,7 +336,7 @@ report_provider_status (GdaServerProvider *prov, GdaConnection *cnc)
xmlNodePtr table, tr, td, span;
GdaSqlParser *parser;
GString *string;
- gint i;
+ gsize i;
GdaProviderInfo *pinfo;
pinfo = gda_config_get_provider_info (gda_server_provider_get_name (prov));
diff --git a/testing/gda-test-blob.c b/testing/gda-test-blob.c
index ca6bda6..f72f35e 100644
--- a/testing/gda-test-blob.c
+++ b/testing/gda-test-blob.c
@@ -16,7 +16,7 @@ static GOptionEntry entries[] = {
{ "dsn", 's', 0, G_OPTION_ARG_STRING, &dsn, "Data source", NULL},
{ "user", 'U', 0, G_OPTION_ARG_STRING, &user, "Username", "username" },
{ "password", 'P', 0, G_OPTION_ARG_STRING, &pass, "Password", "password" },
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
static gboolean clear_blobs (GdaConnection *cnc, GError **error);
diff --git a/testing/gda-test-connection.c b/testing/gda-test-connection.c
index 6466956..cce0372 100644
--- a/testing/gda-test-connection.c
+++ b/testing/gda-test-connection.c
@@ -14,7 +14,7 @@ static GOptionEntry entries[] = {
{ "dsn", 's', 0, G_OPTION_ARG_STRING, &dsn, "Data source", NULL},
{ "user", 'U', 0, G_OPTION_ARG_STRING, &user, "Username", "username" },
{ "password", 'P', 0, G_OPTION_ARG_STRING, &pass, "Password", "password" },
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
diff --git a/testing/gdaui-test-data-entries.c b/testing/gdaui-test-data-entries.c
index e6f582e..2079dba 100644
--- a/testing/gdaui-test-data-entries.c
+++ b/testing/gdaui-test-data-entries.c
@@ -30,17 +30,17 @@ typedef struct {
extern GHashTable *gdaui_plugins_hash;
TestConfig mainconf;
-static gboolean delete_event( GtkWidget *widget,
- GdkEvent *event,
- gpointer data )
+static gboolean delete_event( G_GNUC_UNUSED GtkWidget *widget,
+ G_GNUC_UNUSED GdkEvent *event,
+ G_GNUC_UNUSED gpointer data )
{
g_print ("Leaving test...\n");
return FALSE;
}
-static void destroy( GtkWidget *widget,
- gpointer data )
+static void destroy( G_GNUC_UNUSED GtkWidget *widget,
+ G_GNUC_UNUSED gpointer data )
{
gtk_main_quit ();
}
@@ -50,12 +50,6 @@ static void fill_tested_models (void);
static GtkWidget *build_test_for_plugin_struct (GdauiPlugin *plugin);
static void build_test_widget (TestWidgetData *tdata);
-static guint
-gtype_hash (gconstpointer key)
-{
- return (guint) key;
-}
-
static gboolean
gtype_equal (gconstpointer a, gconstpointer b)
{
@@ -67,7 +61,7 @@ get_handler (GType for_type)
{
static GHashTable *hash = NULL;
if (!hash) {
- hash = g_hash_table_new_full (gtype_hash, gtype_equal,
+ hash = g_hash_table_new_full (g_direct_hash, gtype_equal,
NULL, (GDestroyNotify) g_object_unref);
g_hash_table_insert (hash, (gpointer) G_TYPE_UINT64, gda_handler_numerical_new ());
@@ -100,7 +94,7 @@ static void plugin_hash_foreach_func (const gchar *plugin_name, GdauiPlugin *plu
gchar *test_type;
static GOptionEntry entries[] = {
{ "test-type", 't', 0, G_OPTION_ARG_STRING, &test_type, "Test condition", "{basic,form,grid}"},
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
int
@@ -309,7 +303,8 @@ build_menu (GtkWidget *mainwin, GtkWidget *top_nb)
}
static void
-reset_tests_widgets_hash_foreach_func (GtkWidget *vbox, TestWidgetData *tdata, gpointer data)
+reset_tests_widgets_hash_foreach_func (G_GNUC_UNUSED GtkWidget *vbox, TestWidgetData *tdata,
+ G_GNUC_UNUSED gpointer data)
{
if (tdata->test_widget) {
gtk_widget_destroy (tdata->test_widget);
@@ -472,7 +467,7 @@ static void
create_plugin_nb (GtkWidget *table, GdauiPlugin *plugin)
{
GtkWidget *wid, *nb, *label;
- gint i;
+ gsize i;
GType type;
GdaDataHandler *dh;
@@ -486,7 +481,7 @@ create_plugin_nb (GtkWidget *table, GdauiPlugin *plugin)
g_object_set_data (G_OBJECT (table), "nb", nb);
g_object_set_data (G_OBJECT (table), "plugin", plugin);
- if (plugin->nb_g_types > 0)
+ if (plugin->nb_g_types > 0) {
for (i = 0; i < plugin->nb_g_types; i++) {
type = plugin->valid_g_types[i];
dh = get_handler (type);
@@ -509,9 +504,11 @@ create_plugin_nb (GtkWidget *table, GdauiPlugin *plugin)
G_CALLBACK (vbox_destroyed_cb), NULL);
}
}
- else
- for (i = 0; i < mainconf.nb_tested_gtypes; i++) {
- type = mainconf.tested_gtypes [i];
+ }
+ else {
+ gint j;
+ for (j = 0; j < mainconf.nb_tested_gtypes; j++) {
+ type = mainconf.tested_gtypes [j];
dh = get_handler (type);
if (dh) {
TestWidgetData *tdata;
@@ -532,10 +529,11 @@ create_plugin_nb (GtkWidget *table, GdauiPlugin *plugin)
G_CALLBACK (vbox_destroyed_cb), NULL);
}
}
+ }
}
static void
-vbox_destroyed_cb (GtkWidget *widget, gpointer data)
+vbox_destroyed_cb (GtkWidget *widget, G_GNUC_UNUSED gpointer data)
{
g_hash_table_remove (mainconf.tests_hash, widget);
}
@@ -545,7 +543,8 @@ static GtkWidget *build_form_test_for_gtype (GdaDataHandler *dh, GType type, con
static GtkWidget *build_grid_test_for_gtype (GdaDataHandler *dh, GType type, const gchar *plugin_name);
static void
-plugin_nb_page_changed_cb (GtkNotebook *nb, GtkWidget *page, gint pageno, GtkWidget *table)
+plugin_nb_page_changed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint pageno,
+ G_GNUC_UNUSED GtkWidget *table)
{
GtkWidget *vbox;
TestWidgetData *tdata;
@@ -625,7 +624,8 @@ build_test_widget (TestWidgetData *tdata)
}
static void
-options_form_holder_changed_cb (GdauiBasicForm *form, GdaHolder *param, gboolean user_modif, GtkWidget *table)
+options_form_holder_changed_cb (G_GNUC_UNUSED GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param,
+ G_GNUC_UNUSED gboolean user_modif, GtkWidget *table)
{
GtkWidget *nb;
GdauiPlugin *plugin;
@@ -844,7 +844,7 @@ editable_toggled_cb (GtkToggleButton *button, GtkWidget *entry)
}
void
-entry_contents_modified (GtkWidget *entry, gpointer data)
+entry_contents_modified (GtkWidget *entry, G_GNUC_UNUSED gpointer data)
{
guint attrs;
GtkLabel *label;
@@ -929,7 +929,7 @@ default_clicked_cb (GtkButton *button, GtkWidget *entry)
}
static GtkWidget *
-build_form_test_for_gtype (GdaDataHandler *dh, GType type, const gchar *plugin_name)
+build_form_test_for_gtype (G_GNUC_UNUSED GdaDataHandler *dh, GType type, const gchar *plugin_name)
{
GdaDataModel *model;
GtkWidget *wid;
@@ -962,7 +962,7 @@ build_form_test_for_gtype (GdaDataHandler *dh, GType type, const gchar *plugin_n
}
static GtkWidget *
-build_grid_test_for_gtype (GdaDataHandler *dh, GType type, const gchar *plugin_name)
+build_grid_test_for_gtype (G_GNUC_UNUSED GdaDataHandler *dh, GType type, const gchar *plugin_name)
{
GdaDataModel *model;
GtkWidget *wid;
diff --git a/testing/gdaui-test-errors.c b/testing/gdaui-test-errors.c
index e1ccf5e..25d3a6f 100644
--- a/testing/gdaui-test-errors.c
+++ b/testing/gdaui-test-errors.c
@@ -1,7 +1,7 @@
#include <libgda-ui/libgda-ui.h>
#include "../tests/data-model-errors.h"
-static void destroy (GtkWidget *widget, gpointer data)
+static void destroy (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED gpointer data)
{
gtk_main_quit ();
}
diff --git a/testing/gdaui-test-widget-entry.c b/testing/gdaui-test-widget-entry.c
index fabf4e8..1f69db4 100644
--- a/testing/gdaui-test-widget-entry.c
+++ b/testing/gdaui-test-widget-entry.c
@@ -13,8 +13,7 @@ print_unicode (const gchar *ptr)
{
gunichar wc;
wc = g_utf8_get_char_validated (ptr, -1);
- g_assert (wc >= 0);
- g_print ("%s <=> %u, IS_print: %d\n", ptr, wc, g_unichar_isprint (wc));
+ g_print ("%s <=> %" G_GUINT32_FORMAT ", IS_print: %d\n", ptr, wc, g_unichar_isprint (wc));
}
static void
@@ -34,10 +33,11 @@ entry_changed_cb (GdauiEntry *entry, const gchar *id)
}
static void
-prop_length_set_cb (GtkButton *buntton, GdauiEntry *entry)
+prop_length_set_cb (G_GNUC_UNUSED GtkButton *button, GdauiEntry *entry)
{
gchar *tmp;
- gint max, i;
+ gint max;
+ gsize i;
tmp = gdaui_entry_get_text (entry);
max = atoi (tmp);
g_free (tmp);
@@ -49,10 +49,10 @@ prop_length_set_cb (GtkButton *buntton, GdauiEntry *entry)
}
static void
-prop_text_set_cb (GtkButton *buntton, GdauiEntry *entry)
+prop_text_set_cb (G_GNUC_UNUSED GtkButton *button, GdauiEntry *entry)
{
gchar *tmp;
- gint i;
+ gsize i;
tmp = gdaui_entry_get_text (entry);
g_print ("Setting entries' text to [%s]\n", tmp);
for (i = 0; i < NB_ENTRIES; i++)
@@ -62,9 +62,9 @@ prop_text_set_cb (GtkButton *buntton, GdauiEntry *entry)
}
static void
-prop_text_null_cb (GtkButton *buntton, gpointer data)
+prop_text_null_cb (G_GNUC_UNUSED GtkButton *button, G_GNUC_UNUSED gpointer data)
{
- gint i;
+ gsize i;
g_print ("Setting entries' text to NULL\n");
for (i = 0; i < NB_ENTRIES; i++)
diff --git a/testing/html.c b/testing/html.c
index 61fa582..5371c0e 100644
--- a/testing/html.c
+++ b/testing/html.c
@@ -220,7 +220,7 @@ html_add_link_to_node (HtmlConfig *config, const gchar *nodepath, const gchar *t
}
void
-html_add_to_toc (HtmlConfig *config, HtmlFile *file, const gchar *text, const gchar *link_to)
+html_add_to_toc (G_GNUC_UNUSED HtmlConfig *config, HtmlFile *file, const gchar *text, const gchar *link_to)
{
xmlNodePtr li;
@@ -258,19 +258,19 @@ html_mark_path_error (HtmlConfig *config, const gchar *nodepath)
}
void
-html_mark_node_error (HtmlConfig *config, xmlNodePtr node)
+html_mark_node_error (G_GNUC_UNUSED HtmlConfig *config, xmlNodePtr node)
{
xmlSetProp(node, BAD_CAST "class", BAD_CAST "error");
}
void
-html_mark_node_warning (HtmlConfig *config, xmlNodePtr node)
+html_mark_node_warning (G_GNUC_UNUSED HtmlConfig *config, xmlNodePtr node)
{
xmlSetProp(node, BAD_CAST "class", BAD_CAST "warning");
}
void
-html_mark_node_notice (HtmlConfig *config, xmlNodePtr node)
+html_mark_node_notice (G_GNUC_UNUSED HtmlConfig *config, xmlNodePtr node)
{
xmlSetProp(node, BAD_CAST "class", BAD_CAST "notice");
}
diff --git a/tests/data-model-errors.c b/tests/data-model-errors.c
index f02427c..395caa5 100644
--- a/tests/data-model-errors.c
+++ b/tests/data-model-errors.c
@@ -101,9 +101,9 @@ data_model_errors_data_model_init (GdaDataModelIface *iface)
static void
data_model_errors_init (DataModelErrors *model,
- DataModelErrorsClass *klass)
+ G_GNUC_UNUSED DataModelErrorsClass *klass)
{
- gint i;
+ gsize i;
g_return_if_fail (IS_DATA_MODEL_ERRORS (model));
model->priv = g_new0 (DataModelErrorsPrivate, 1);
@@ -115,7 +115,7 @@ data_model_errors_init (DataModelErrors *model,
gchar *str;
col = gda_column_new ();
gda_column_set_g_type (col, G_TYPE_STRING);
- str = g_strdup_printf ("col%d", i);
+ str = g_strdup_printf ("col%" G_GSIZE_FORMAT, i);
gda_column_set_name (col, str);
gda_column_set_description (col, str);
g_object_set (G_OBJECT (col), "id", str, NULL);
@@ -226,7 +226,8 @@ data_model_errors_get_type (void)
NULL,
sizeof (DataModelErrors),
0,
- (GInstanceInitFunc) data_model_errors_init
+ (GInstanceInitFunc) data_model_errors_init,
+ 0
};
static const GInterfaceInfo data_model_info = {
(GInterfaceInitFunc) data_model_errors_data_model_init,
@@ -363,7 +364,7 @@ data_model_errors_get_value_at (GdaDataModel *model, gint col, gint row, GError
}
static GdaValueAttribute
-data_model_errors_get_attributes_at (GdaDataModel *model, gint col, gint row)
+data_model_errors_get_attributes_at (GdaDataModel *model, gint col, G_GNUC_UNUSED gint row)
{
DataModelErrors *imodel;
GdaValueAttribute flags = 0;
@@ -417,7 +418,7 @@ data_model_errors_set_value_at (GdaDataModel *model, gint col, gint row, const G
static gint
-data_model_errors_append_values (GdaDataModel *model, const GList *values, GError **error)
+data_model_errors_append_values (GdaDataModel *model, G_GNUC_UNUSED const GList *values, GError **error)
{
DataModelErrors *imodel;
diff --git a/tests/gda-ddl-creator.c b/tests/gda-ddl-creator.c
index b48a75a..30d6ba8 100644
--- a/tests/gda-ddl-creator.c
+++ b/tests/gda-ddl-creator.c
@@ -115,7 +115,8 @@ gda_ddl_creator_get_type (void) {
NULL,
sizeof (GdaDDLCreator),
0,
- (GInstanceInitFunc) gda_ddl_creator_init
+ (GInstanceInitFunc) gda_ddl_creator_init,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -266,7 +267,7 @@ static void
gda_ddl_creator_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDDLCreator *creator;
@@ -319,7 +320,7 @@ static void
gda_ddl_creator_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
GdaDDLCreator *creator;
creator = GDA_DDL_CREATOR (object);
@@ -632,7 +633,7 @@ create_server_operation_for_table (GdaDDLCreator *ddlc, GdaServerProvider *prov,
}
static GdaServerOperation *
-create_server_operation_for_view (GdaDDLCreator *ddlc, GdaServerProvider *prov, GdaConnection *cnc,
+create_server_operation_for_view (G_GNUC_UNUSED GdaDDLCreator *ddlc, GdaServerProvider *prov, GdaConnection *cnc,
GdaMetaDbObject *dbobj, GError **error)
{
GdaServerOperation *op;
diff --git a/tests/providers/.gitignore b/tests/providers/.gitignore
index 508f3e7..68ce3a8 100644
--- a/tests/providers/.gitignore
+++ b/tests/providers/.gitignore
@@ -2,13 +2,6 @@ check_sqlite
check_postgres
check_firebird
check_mdb
-check_freetds
-check_odbc
-check_msql
-check_sybase
check_bdb
-check_xbase
check_mysql
-check_ibmdb2
-check_oracle
-check_ldap
\ No newline at end of file
+check_oracle
\ No newline at end of file
diff --git a/tests/providers/Makefile.am b/tests/providers/Makefile.am
index 2765315..37c3fbe 100644
--- a/tests/providers/Makefile.am
+++ b/tests/providers/Makefile.am
@@ -14,11 +14,6 @@ check_PROGRAMS += check_bdb
TESTS += check_bdb
endif
-if IBMDB2
-check_PROGRAMS += check_ibmdb2
-TESTS += check_ibmdb2
-endif
-
if FIREBIRD
check_PROGRAMS += check_firebird
TESTS += check_firebird
@@ -34,16 +29,6 @@ check_PROGRAMS += check_mysql
TESTS += check_mysql
endif
-if MSQL
-check_PROGRAMS += check_msql
-TESTS += check_msql
-endif
-
-if ODBC
-check_PROGRAMS += check_odbc
-TESTS += check_odbc
-endif
-
if ORACLE
check_PROGRAMS += check_oracle
TESTS += check_oracle
@@ -54,26 +39,6 @@ check_PROGRAMS += check_postgres
TESTS += check_postgres
endif
-if SYBASE
-check_PROGRAMS += check_sybase
-TESTS += check_sybase
-endif
-
-if FREETDS
-check_PROGRAMS += check_freetds
-TESTS += check_freetds
-endif
-
-if XBASE
-check_PROGRAMS += check_xbase
-TESTS += check_xbase
-endif
-
-if LDAP
-check_PROGRAMS += check_ldap
-TESTS += check_ldap
-endif
-
common_sources = \
prov-test-common.h \
prov-test-common.c \
@@ -94,13 +59,6 @@ check_bdb_LDADD = \
$(top_builddir)/tests/libgda-test-5.0.la \
$(LIBGDA_LIBS)
-check_ibmdb2_SOURCES = $(common_sources) check_ibmdb2.c
-check_ibmdb2_CFLAGS =
-check_ibmdb2_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(top_builddir)/tests/libgda-test-5.0.la \
- $(LIBGDA_LIBS)
-
check_firebird_SOURCES = $(common_sources) check_firebird.c
check_firebird_CFLAGS =
check_firebird_LDADD = \
@@ -122,20 +80,6 @@ check_mysql_LDADD = \
$(top_builddir)/tests/libgda-test-5.0.la \
$(LIBGDA_LIBS)
-check_msql_SOURCES = $(common_sources) check_msql.c
-check_msql_CFLAGS =
-check_msql_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(top_builddir)/tests/libgda-test-5.0.la \
- $(LIBGDA_LIBS)
-
-check_odbc_SOURCES = $(common_sources) check_odbc.c
-check_odbc_CFLAGS =
-check_odbc_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(top_builddir)/tests/libgda-test-5.0.la \
- $(LIBGDA_LIBS)
-
check_oracle_SOURCES = $(common_sources) check_oracle.c
check_oracle_CFLAGS =
check_oracle_LDADD = \
@@ -150,33 +94,6 @@ check_postgres_LDADD = \
$(top_builddir)/tests/libgda-test-5.0.la \
$(LIBGDA_LIBS)
-check_sybase_SOURCES = $(common_sources) check_sybase.c
-check_sybase_CFLAGS =
-check_sybase_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(LIBGDA_LIBS)
-
-check_freetds_SOURCES = $(common_sources) check_freetds.c
-check_freetds_CFLAGS =
-check_freetds_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(top_builddir)/tests/libgda-test-5.0.la \
- $(LIBGDA_LIBS)
-
-check_xbase_SOURCES = $(common_sources) check_xbase.c
-check_xbase_CFLAGS =
-check_xbase_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(top_builddir)/tests/libgda-test-5.0.la \
- $(LIBGDA_LIBS)
-
-check_ldap_SOURCES = $(common_sources) check_ldap.c
-check_ldap_CFLAGS =
-check_ldap_LDADD = \
- $(top_builddir)/libgda/libgda-5.0.la \
- $(top_builddir)/tests/libgda-test-5.0.la \
- $(LIBGDA_LIBS)
-
EXTRA_DIST = \
README \
gda_check_db.mdb \
diff --git a/tests/test-cnc-utils.c b/tests/test-cnc-utils.c
index 97f6365..3e2c6d3 100644
--- a/tests/test-cnc-utils.c
+++ b/tests/test-cnc-utils.c
@@ -316,7 +316,8 @@ test_cnc_clean_connection (GdaConnection *cnc, GError **error)
}
gboolean
-test_cnc_setup_db_contents (GdaConnection *cnc, const gchar *data_file, GError **error)
+test_cnc_setup_db_contents (G_GNUC_UNUSED GdaConnection *cnc, G_GNUC_UNUSED const gchar *data_file,
+ G_GNUC_UNUSED GError **error)
{
TO_IMPLEMENT;
return FALSE;
diff --git a/tools/browser/auth-dialog.c b/tools/browser/auth-dialog.c
index c4742b3..7447001 100644
--- a/tools/browser/auth-dialog.c
+++ b/tools/browser/auth-dialog.c
@@ -98,7 +98,8 @@ auth_dialog_get_type (void)
NULL,
sizeof (AuthDialog),
0,
- (GInstanceInitFunc) auth_dialog_init
+ (GInstanceInitFunc) auth_dialog_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -174,7 +175,7 @@ update_ad_auth (AuthData *ad)
* Update the auth part
*/
static void
-dsn_changed_cb (GdaConfig *config, GdaDsnInfo *info, AuthDialog *dialog)
+dsn_changed_cb (G_GNUC_UNUSED GdaConfig *config, GdaDsnInfo *info, AuthDialog *dialog)
{
GSList *list;
if (!info || !info->name) /* should not happen */
diff --git a/tools/browser/browser-connection.c b/tools/browser/browser-connection.c
index 6ed0495..6bdb554 100644
--- a/tools/browser/browser-connection.c
+++ b/tools/browser/browser-connection.c
@@ -170,7 +170,8 @@ browser_connection_get_type (void)
NULL,
sizeof (BrowserConnection),
0,
- (GInstanceInitFunc) browser_connection_init
+ (GInstanceInitFunc) browser_connection_init,
+ 0
};
@@ -279,8 +280,9 @@ browser_connection_init (BrowserConnection *bcnc)
}
static void
-transaction_status_changed_cb (GdaThreadWrapper *wrapper, gpointer instance, const gchar *signame,
- gint n_param_values, const GValue *param_values, gpointer gda_reserved,
+transaction_status_changed_cb (G_GNUC_UNUSED GdaThreadWrapper *wrapper, G_GNUC_UNUSED gpointer instance,
+ G_GNUC_UNUSED const gchar *signame, G_GNUC_UNUSED gint n_param_values,
+ G_GNUC_UNUSED const GValue *param_values, G_GNUC_UNUSED gpointer gda_reserved,
BrowserConnection *bcnc)
{
g_signal_emit (bcnc, browser_connection_signals [TRANSACTION_STATUS_CHANGED], 0);
@@ -328,12 +330,12 @@ wrapper_meta_struct_sync (BrowserConnection *bcnc, GError **error)
}
static void
-meta_changed_cb (GdaThreadWrapper *wrapper,
- GdaMetaStore *store,
- const gchar *signame,
- gint n_param_values,
- const GValue *param_values,
- gpointer gda_reserved,
+meta_changed_cb (G_GNUC_UNUSED GdaThreadWrapper *wrapper,
+ G_GNUC_UNUSED GdaMetaStore *store,
+ G_GNUC_UNUSED const gchar *signame,
+ G_GNUC_UNUSED gint n_param_values,
+ G_GNUC_UNUSED const GValue *param_values,
+ G_GNUC_UNUSED gpointer gda_reserved,
BrowserConnection *bcnc)
{
guint job_id;
@@ -362,7 +364,7 @@ static void
browser_connection_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserConnection *bcnc;
@@ -460,7 +462,7 @@ static void
browser_connection_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserConnection *bcnc;
@@ -494,7 +496,7 @@ clear_dsn_info (BrowserConnection *bcnc)
}
static void
-fav_changed_cb (BrowserFavorites *bfav, BrowserConnection *bcnc)
+fav_changed_cb (G_GNUC_UNUSED BrowserFavorites *bfav, BrowserConnection *bcnc)
{
g_signal_emit (bcnc, browser_connection_signals [FAV_CHANGED], 0);
}
diff --git a/tools/browser/browser-connections-list.c b/tools/browser/browser-connections-list.c
index 2ed77c9..0162c98 100644
--- a/tools/browser/browser-connections-list.c
+++ b/tools/browser/browser-connections-list.c
@@ -70,7 +70,8 @@ browser_connections_list_get_type (void)
NULL,
sizeof (BrowserConnectionsList),
0,
- (GInstanceInitFunc) browser_connections_list_init
+ (GInstanceInitFunc) browser_connections_list_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -131,17 +132,17 @@ enum
};
static gboolean
-delete_event (GtkWidget *widget, GdkEvent *event, gpointer data)
+delete_event (GtkWidget *widget, G_GNUC_UNUSED GdkEvent *event, G_GNUC_UNUSED gpointer data)
{
gtk_widget_hide (widget);
return TRUE;
}
-static void cell_name_data_func (GtkTreeViewColumn *tree_column,
+static void cell_name_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
GtkTreeIter *iter,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
BrowserConnection *bcnc;
gchar *str, *cncstr = NULL;
@@ -269,7 +270,7 @@ selection_changed_cb (GtkTreeSelection *select, BrowserConnectionsList *clist)
}
static void
-connection_close_cb (GtkButton *button, BrowserConnectionsList *clist)
+connection_close_cb (G_GNUC_UNUSED GtkButton *button, BrowserConnectionsList *clist)
{
GtkTreeSelection *select;
GtkTreeModel *model;
@@ -285,7 +286,7 @@ connection_close_cb (GtkButton *button, BrowserConnectionsList *clist)
}
static void
-connection_new_cb (GtkButton *button, BrowserConnectionsList *clist)
+connection_new_cb (G_GNUC_UNUSED GtkButton *button, G_GNUC_UNUSED BrowserConnectionsList *clist)
{
LoginDialog *dialog;
GdaConnection *cnc;
@@ -482,7 +483,7 @@ browser_connections_list_show (BrowserConnection *current)
}
static void
-connection_added_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserConnectionsList *clist)
+connection_added_cb (G_GNUC_UNUSED BrowserCore *bcore, BrowserConnection *bcnc, BrowserConnectionsList *clist)
{
GtkListStore *store;
GtkTreeIter iter;
@@ -494,7 +495,7 @@ connection_added_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserConnect
}
static void
-connection_removed_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserConnectionsList *clist)
+connection_removed_cb (G_GNUC_UNUSED BrowserCore *bcore, BrowserConnection *bcnc, BrowserConnectionsList *clist)
{
GtkTreeModel *model;
GtkTreeIter iter;
diff --git a/tools/browser/browser-core.c b/tools/browser/browser-core.c
index 109ed28..3f7aabe 100644
--- a/tools/browser/browser-core.c
+++ b/tools/browser/browser-core.c
@@ -69,7 +69,8 @@ browser_core_get_type (void)
NULL,
sizeof (BrowserCore),
0,
- (GInstanceInitFunc) browser_core_init
+ (GInstanceInitFunc) browser_core_init,
+ 0
};
diff --git a/tools/browser/browser-favorites.c b/tools/browser/browser-favorites.c
index a5fd898..ac3bc4b 100644
--- a/tools/browser/browser-favorites.c
+++ b/tools/browser/browser-favorites.c
@@ -65,7 +65,8 @@ browser_favorites_get_type (void)
NULL,
sizeof (BrowserFavorites),
0,
- (GInstanceInitFunc) browser_favorites_init
+ (GInstanceInitFunc) browser_favorites_init,
+ 0
};
@@ -1025,7 +1026,7 @@ browser_favorites_delete (BrowserFavorites *bfav, guint session_id,
gda_lockable_unlock (GDA_LOCKABLE (bfav->priv->store_cnc));
if (retval)
g_signal_emit (bfav, browser_favorites_signals [FAV_CHANGED],
- g_quark_from_string (favorite_type_to_string (efav.type >= 0 ? efav.type : fav->type)));
+ g_quark_from_string (favorite_type_to_string (efav.type)));
browser_favorites_reset_attributes (&efav);
if (params)
g_object_unref (G_OBJECT (params));
diff --git a/tools/browser/browser-page.c b/tools/browser/browser-page.c
index 5e580ce..fdcdc39 100644
--- a/tools/browser/browser-page.c
+++ b/tools/browser/browser-page.c
@@ -41,7 +41,8 @@ browser_page_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -55,7 +56,7 @@ browser_page_get_type (void)
}
static void
-browser_page_class_init (gpointer g_class)
+browser_page_class_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
diff --git a/tools/browser/browser-perspective.c b/tools/browser/browser-perspective.c
index 34d9363..97dd40b 100644
--- a/tools/browser/browser-perspective.c
+++ b/tools/browser/browser-perspective.c
@@ -41,7 +41,8 @@ browser_perspective_get_type (void)
NULL,
0,
0,
- (GInstanceInitFunc) NULL
+ (GInstanceInitFunc) NULL,
+ 0
};
g_static_rec_mutex_lock (&init_mutex);
@@ -55,7 +56,7 @@ browser_perspective_get_type (void)
}
static void
-browser_perspective_class_init (gpointer g_class)
+browser_perspective_class_init (G_GNUC_UNUSED gpointer g_class)
{
static gboolean initialized = FALSE;
diff --git a/tools/browser/browser-variable.c b/tools/browser/browser-variable.c
index ddaab6d..cbfff79 100644
--- a/tools/browser/browser-variable.c
+++ b/tools/browser/browser-variable.c
@@ -51,7 +51,8 @@ browser_variable_get_type (void)
NULL,
sizeof (BrowserVariable),
0,
- (GInstanceInitFunc) browser_variable_init
+ (GInstanceInitFunc) browser_variable_init,
+ 0
};
diff --git a/tools/browser/browser-virtual-connection.c b/tools/browser/browser-virtual-connection.c
index eb8bd29..8236df8 100644
--- a/tools/browser/browser-virtual-connection.c
+++ b/tools/browser/browser-virtual-connection.c
@@ -69,7 +69,8 @@ browser_virtual_connection_get_type (void)
NULL,
sizeof (BrowserVirtualConnection),
0,
- (GInstanceInitFunc) browser_virtual_connection_init
+ (GInstanceInitFunc) browser_virtual_connection_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -81,8 +82,8 @@ browser_virtual_connection_get_type (void)
}
static void
-source_cnc_busy_cb (BrowserConnection *bcnc, gboolean is_busy, const gchar *reason,
- BrowserConnection *virtual)
+source_cnc_busy_cb (G_GNUC_UNUSED BrowserConnection *bcnc, gboolean is_busy,
+ G_GNUC_UNUSED const gchar *reason, BrowserConnection *virtual)
{
g_signal_emit_by_name (virtual, "busy", is_busy,
is_busy ? _("Bound connection is used") : NULL);
@@ -182,7 +183,7 @@ static void
browser_virtual_connection_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserVirtualConnection *bcnc;
@@ -212,7 +213,7 @@ static void
browser_virtual_connection_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserVirtualConnection *bcnc;
diff --git a/tools/browser/browser-window.c b/tools/browser/browser-window.c
index 1017461..fc1f4c4 100644
--- a/tools/browser/browser-window.c
+++ b/tools/browser/browser-window.c
@@ -131,7 +131,8 @@ browser_window_get_type (void)
NULL,
sizeof (BrowserWindow),
0,
- (GInstanceInitFunc) browser_window_init
+ (GInstanceInitFunc) browser_window_init,
+ 0
};
@@ -240,7 +241,7 @@ browser_window_dispose (GObject *object)
static gboolean
-delete_event (GtkWidget *widget, GdkEvent *event, BrowserWindow *bwin)
+delete_event (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED GdkEvent *event, BrowserWindow *bwin)
{
browser_core_close_window (bwin);
return TRUE;
@@ -716,7 +717,7 @@ connection_busy_cb (BrowserConnection *bcnc, gboolean is_busy, gchar *reason, Br
/* update @bwin->priv->cnc_agroup and @bwin->priv->ui_manager */
static void
-connection_added_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserWindow *bwin)
+connection_added_cb (G_GNUC_UNUSED BrowserCore *bcore, BrowserConnection *bcnc, BrowserWindow *bwin)
{
GtkAction *action;
const gchar *cncname;
@@ -750,7 +751,7 @@ connection_added_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserWindow
/* update @bwin->priv->cnc_agroup and @bwin->priv->ui_manager */
static void
-connection_removed_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserWindow *bwin)
+connection_removed_cb (G_GNUC_UNUSED BrowserCore *bcore, BrowserConnection *bcnc, BrowserWindow *bwin)
{
GtkAction *action;
gchar *path;
@@ -774,7 +775,7 @@ connection_removed_cb (BrowserCore *bcore, BrowserConnection *bcnc, BrowserWindo
}
static void
-connection_close_cb (GtkAction *action, BrowserWindow *bwin)
+connection_close_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
/* confirmation dialog */
GtkWidget *dialog;
@@ -812,7 +813,7 @@ connection_close_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-quit_cb (GtkAction *action, BrowserWindow *bwin)
+quit_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
/* confirmation dialog */
GtkWidget *dialog;
@@ -877,7 +878,7 @@ transaction_status_changed_cb (BrowserConnection *bcnc, BrowserWindow *bwin)
}
static void
-transaction_begin_cb (GtkAction *action, BrowserWindow *bwin)
+transaction_begin_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
if (!bwin->priv->updating_transaction_status) {
GError *error = NULL;
@@ -891,7 +892,7 @@ transaction_begin_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-transaction_commit_cb (GtkAction *action, BrowserWindow *bwin)
+transaction_commit_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
if (!bwin->priv->updating_transaction_status) {
GError *error = NULL;
@@ -905,7 +906,7 @@ transaction_commit_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-transaction_rollback_cb (GtkAction *action, BrowserWindow *bwin)
+transaction_rollback_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
if (!bwin->priv->updating_transaction_status) {
GError *error = NULL;
@@ -920,7 +921,7 @@ transaction_rollback_cb (GtkAction *action, BrowserWindow *bwin)
static void
-window_close_cb (GtkAction *action, BrowserWindow *bwin)
+window_close_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
delete_event (NULL, NULL, bwin);
}
@@ -946,7 +947,7 @@ toolbar_hide_timeout_cb (BrowserWindow *bwin)
#define BWIN_WINDOW_FULLSCREEN_POPUP_TIMER 1
static gboolean
-fullscreen_motion_notify_cb (GtkWidget *widget, GdkEventMotion *event, gpointer user_data)
+fullscreen_motion_notify_cb (GtkWidget *widget, GdkEventMotion *event, G_GNUC_UNUSED gpointer user_data)
{
BrowserWindow *bwin = BROWSER_WINDOW (widget);
#if GTK_CHECK_VERSION(2,14,0)
@@ -975,14 +976,15 @@ fullscreen_motion_notify_cb (GtkWidget *widget, GdkEventMotion *event, gpointer
}
gboolean
-toolbar_enter_notify_cb (GtkWidget *widget, GdkEventCrossing *event, BrowserWindow *bwin)
+toolbar_enter_notify_cb (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED GdkEventCrossing *event,
+ BrowserWindow *bwin)
{
bwin->priv->cursor_in_toolbar = TRUE;
return FALSE;
}
gboolean
-toolbar_leave_notify_cb (GtkWidget *widget, GdkEventCrossing *event, BrowserWindow *bwin)
+toolbar_leave_notify_cb (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED GdkEventCrossing *event, BrowserWindow *bwin)
{
bwin->priv->cursor_in_toolbar = FALSE;
return FALSE;
@@ -1091,7 +1093,7 @@ window_state_event (GtkWidget *widget, GdkEventWindowState *event)
}
static void
-window_new_cb (GtkAction *action, BrowserWindow *bwin)
+window_new_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
BrowserWindow *nbwin;
BrowserConnection *bcnc;
@@ -1102,7 +1104,7 @@ window_new_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-window_new_with_cnc_cb (GtkAction *action, BrowserWindow *bwin)
+window_new_with_cnc_cb (GtkAction *action, G_GNUC_UNUSED BrowserWindow *bwin)
{
BrowserWindow *nbwin;
BrowserConnection *bcnc;
@@ -1115,13 +1117,13 @@ window_new_with_cnc_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-connection_open_cb (GtkAction *action, BrowserWindow *bwin)
+connection_open_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED BrowserWindow *bwin)
{
browser_connection_open (NULL);
}
static void
-connection_properties_cb (GtkAction *action, BrowserWindow *bwin)
+connection_properties_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
if (BROWSER_IS_VIRTUAL_CONNECTION (bwin->priv->bcnc)) {
GtkWidget *win;
@@ -1157,7 +1159,7 @@ connection_properties_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-connection_bind_cb (GtkAction *action, BrowserWindow *bwin)
+connection_bind_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
GtkWidget *win;
gint res;
@@ -1191,19 +1193,19 @@ connection_bind_cb (GtkAction *action, BrowserWindow *bwin)
}
static void
-connection_list_cb (GtkAction *action, BrowserWindow *bwin)
+connection_list_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
browser_connections_list_show (bwin->priv->bcnc);
}
static void
-connection_meta_update_cb (GtkAction *action, BrowserWindow *bwin)
+connection_meta_update_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
browser_connection_update_meta_data (bwin->priv->bcnc);
}
static void
-about_cb (GtkAction *action, BrowserWindow *bwin)
+about_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
GdkPixbuf *icon;
GtkWidget *dialog;
@@ -1241,7 +1243,7 @@ about_cb (GtkAction *action, BrowserWindow *bwin)
#ifdef HAVE_GDU
void
-manual_cb (GtkAction *action, BrowserWindow *bwin)
+manual_cb (G_GNUC_UNUSED GtkAction *action, BrowserWindow *bwin)
{
browser_show_help (GTK_WINDOW (bwin), NULL);
}
@@ -1403,7 +1405,7 @@ browser_window_show_notice_printf (BrowserWindow *bwin, GtkMessageType type, con
#if GTK_CHECK_VERSION (2,18,0)
static void
-info_bar_response_cb (GtkInfoBar *ibar, gint response, BrowserWindow *bwin)
+info_bar_response_cb (GtkInfoBar *ibar, G_GNUC_UNUSED gint response, BrowserWindow *bwin)
{
bwin->priv->notif_widgets = g_slist_remove (bwin->priv->notif_widgets, ibar);
gtk_widget_destroy ((GtkWidget*) ibar);
@@ -1413,7 +1415,7 @@ info_bar_response_cb (GtkInfoBar *ibar, gint response, BrowserWindow *bwin)
/* hash table to remain which context notices have to be hidden: key=context, value=GINT_TO_POINTER (1) */
static GHashTable *hidden_contexts = NULL;
static void
-hidden_contexts_foreach_save (const gchar *context, gint value, xmlNodePtr root)
+hidden_contexts_foreach_save (const gchar *context, G_GNUC_UNUSED gint value, xmlNodePtr root)
{
xmlNodePtr node;
node = xmlNewChild (root, NULL, BAD_CAST "hide-notice", BAD_CAST context);
diff --git a/tools/browser/canvas-example.c b/tools/browser/canvas-example.c
index fbef9f4..d71cea0 100644
--- a/tools/browser/canvas-example.c
+++ b/tools/browser/canvas-example.c
@@ -11,7 +11,7 @@ static void label_drag_data_received (GtkWidget *label, GdkDragContext *context,
guint info, guint time);
static int
-scroll_event_cb (GtkWidget *wid, GdkEvent *event, gpointer data)
+scroll_event_cb (G_GNUC_UNUSED GtkWidget *wid, GdkEvent *event, G_GNUC_UNUSED gpointer data)
{
gboolean done = TRUE;
@@ -123,15 +123,15 @@ main (int argc, char *argv[])
}
static void
-auto_layout_cb (GtkWidget *button, BrowserCanvas *canvas)
+auto_layout_cb (G_GNUC_UNUSED GtkWidget *button, BrowserCanvas *canvas)
{
browser_canvas_perform_auto_layout (BROWSER_CANVAS (canvas), TRUE, BROWSER_CANVAS_LAYOUT_RADIAL);
}
static void
-label_drag_data_received (GtkWidget *label, GdkDragContext *context,
- gint x, gint y, GtkSelectionData *data,
- guint info, guint time)
+label_drag_data_received (G_GNUC_UNUSED GtkWidget *label, GdkDragContext *context,
+ G_GNUC_UNUSED gint x, G_GNUC_UNUSED gint y, GtkSelectionData *data,
+ G_GNUC_UNUSED guint info, guint time)
{
if ((gtk_selection_data_get_length (data) >= 0) && (gtk_selection_data_get_format (data) == 8)) {
g_print ("Received \"%s\" in drop zone\n",
@@ -144,7 +144,7 @@ label_drag_data_received (GtkWidget *label, GdkDragContext *context,
}
static gboolean
-on_delete_event (GtkWidget *window, GdkEvent *event, gpointer unused_data)
+on_delete_event (G_GNUC_UNUSED GtkWidget *window, G_GNUC_UNUSED GdkEvent *event, G_GNUC_UNUSED gpointer data)
{
exit (0);
}
diff --git a/tools/browser/canvas/browser-canvas-column.c b/tools/browser/canvas/browser-canvas-column.c
index 2a9d209..c479205 100644
--- a/tools/browser/canvas/browser-canvas-column.c
+++ b/tools/browser/canvas/browser-canvas-column.c
@@ -73,7 +73,8 @@ browser_canvas_column_get_type (void)
NULL,
sizeof (BrowserCanvasColumn),
0,
- (GInstanceInitFunc) browser_canvas_column_init
+ (GInstanceInitFunc) browser_canvas_column_init,
+ 0
};
type = g_type_register_static (TYPE_BROWSER_CANVAS_TEXT, "BrowserCanvasColumn", &info, 0);
@@ -143,7 +144,7 @@ static void
browser_canvas_column_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasColumn *cf = NULL;
GdaMetaTableColumn* column = NULL;
@@ -187,7 +188,7 @@ static void
browser_canvas_column_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasColumn *cf;
@@ -293,8 +294,9 @@ browser_canvas_column_get_parent_item (BrowserCanvasColumn *column)
}
static void
-browser_canvas_column_drag_data_get (BrowserCanvasItem *citem, GdkDragContext *drag_context,
- GtkSelectionData *data, guint info, guint time)
+browser_canvas_column_drag_data_get (BrowserCanvasItem *citem, G_GNUC_UNUSED GdkDragContext *drag_context,
+ GtkSelectionData *data, G_GNUC_UNUSED guint info,
+ G_GNUC_UNUSED guint time)
{
BrowserCanvasColumn *column;
BrowserCanvasTable *ctable;
diff --git a/tools/browser/canvas/browser-canvas-db-relations.c b/tools/browser/canvas/browser-canvas-db-relations.c
index 333d4c2..20d708f 100644
--- a/tools/browser/canvas/browser-canvas-db-relations.c
+++ b/tools/browser/canvas/browser-canvas-db-relations.c
@@ -84,7 +84,8 @@ browser_canvas_db_relations_get_type (void)
NULL,
sizeof (BrowserCanvasDbRelations),
0,
- (GInstanceInitFunc) browser_canvas_db_relations_init
+ (GInstanceInitFunc) browser_canvas_db_relations_init,
+ 0
};
type = g_type_register_static (TYPE_BROWSER_CANVAS, "BrowserCanvasDbRelations", &info, 0);
@@ -155,7 +156,7 @@ static void
browser_canvas_db_relations_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasDbRelations *canvas;
@@ -185,7 +186,7 @@ static void
browser_canvas_db_relations_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasDbRelations *canvas;
@@ -200,7 +201,7 @@ browser_canvas_db_relations_get_property (GObject *object,
}
static void
-cloud_object_selected_cb (ObjectsCloud *ocloud, ObjectsCloudObjType sel_type,
+cloud_object_selected_cb (G_GNUC_UNUSED ObjectsCloud *ocloud, G_GNUC_UNUSED ObjectsCloudObjType sel_type,
const gchar *sel_contents, BrowserCanvasDbRelations *dbrel)
{
GdaMetaTable *mtable;
@@ -313,7 +314,7 @@ canvas_entity_popup_func (BrowserCanvasTable *ce)
}
static void
-popup_func_delete_cb (GtkMenuItem *mitem, BrowserCanvasTable *ce)
+popup_func_delete_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvasTable *ce)
{
GdaMetaTable *mtable;
BrowserCanvasDbRelations *dbrel;
@@ -351,7 +352,7 @@ popup_func_delete_cb (GtkMenuItem *mitem, BrowserCanvasTable *ce)
}
static void
-popup_func_add_depend_cb (GtkMenuItem *mitem, BrowserCanvasTable *ce)
+popup_func_add_depend_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvasTable *ce)
{
BrowserCanvasDbRelations *dbrel;
GdaMetaDbObject *dbo;
@@ -387,7 +388,7 @@ popup_func_add_depend_cb (GtkMenuItem *mitem, BrowserCanvasTable *ce)
}
static void
-popup_func_add_ref_cb (GtkMenuItem *mitem, BrowserCanvasTable *ce)
+popup_func_add_ref_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvasTable *ce)
{
BrowserCanvasDbRelations *dbrel;
GdaMetaDbObject *dbo;
@@ -511,14 +512,14 @@ build_context_menu (BrowserCanvas *canvas)
}
static gboolean
-add_dialog_delete_event (GtkWidget *dialog, GdkEvent *event, gpointer data)
+add_dialog_delete_event (GtkWidget *dialog, G_GNUC_UNUSED GdkEvent *event, G_GNUC_UNUSED gpointer data)
{
gtk_widget_hide (dialog);
return TRUE;
}
static void
-popup_add_table_cb (GtkMenuItem *mitem, BrowserCanvasDbRelations *dbrels)
+popup_add_table_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvasDbRelations *dbrels)
{
if (! dbrels->priv->add_dialog) {
GtkWidget *vbox, *cloud, *find, *dcontents;
diff --git a/tools/browser/canvas/browser-canvas-fkey.c b/tools/browser/canvas/browser-canvas-fkey.c
index aaaf4ad..cd3621f 100644
--- a/tools/browser/canvas/browser-canvas-fkey.c
+++ b/tools/browser/canvas/browser-canvas-fkey.c
@@ -84,7 +84,8 @@ browser_canvas_fkey_get_type (void)
NULL,
sizeof (BrowserCanvasFkey),
0,
- (GInstanceInitFunc) browser_canvas_fkey_init
+ (GInstanceInitFunc) browser_canvas_fkey_init,
+ 0
};
type = g_type_register_static (TYPE_BROWSER_CANVAS_ITEM, "BrowserCanvasFkey", &info, 0);
@@ -133,13 +134,13 @@ browser_canvas_fkey_init (BrowserCanvasFkey *cc)
}
static void
-fk_table_item_weak_ref_lost (BrowserCanvasFkey *cc, BrowserCanvasTable *old_table_item)
+fk_table_item_weak_ref_lost (BrowserCanvasFkey *cc, G_GNUC_UNUSED BrowserCanvasTable *old_table_item)
{
cc->priv->fk_table_item = NULL;
}
static void
-ref_pk_table_item_weak_ref_lost (BrowserCanvasFkey *cc, BrowserCanvasTable *old_table_item)
+ref_pk_table_item_weak_ref_lost (BrowserCanvasFkey *cc, G_GNUC_UNUSED BrowserCanvasTable *old_table_item)
{
cc->priv->ref_pk_table_item = NULL;
}
@@ -198,7 +199,7 @@ static void
browser_canvas_fkey_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasFkey *cc;
@@ -222,7 +223,7 @@ static void
browser_canvas_fkey_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasFkey *cc;
@@ -381,8 +382,8 @@ update_items (BrowserCanvasFkey *cc)
* item is for a single FK constraint
*/
static gboolean
-single_item_enter_notify_event_cb (GooCanvasItem *ci, GooCanvasItem *target_item,
- GdkEventCrossing *event, BrowserCanvasFkey *cc)
+single_item_enter_notify_event_cb (G_GNUC_UNUSED GooCanvasItem *ci, G_GNUC_UNUSED GooCanvasItem *target_item,
+ G_GNUC_UNUSED GdkEventCrossing *event, BrowserCanvasFkey *cc)
{
gint i;
@@ -409,8 +410,8 @@ single_item_enter_notify_event_cb (GooCanvasItem *ci, GooCanvasItem *target_item
}
static gboolean
-single_item_leave_notify_event_cb (GooCanvasItem *ci, GooCanvasItem *target_item,
- GdkEventCrossing *event, BrowserCanvasFkey *cc)
+single_item_leave_notify_event_cb (G_GNUC_UNUSED GooCanvasItem *ci, G_GNUC_UNUSED GooCanvasItem *target_item,
+ G_GNUC_UNUSED GdkEventCrossing *event, BrowserCanvasFkey *cc)
{
gint i;
@@ -437,8 +438,8 @@ single_item_leave_notify_event_cb (GooCanvasItem *ci, GooCanvasItem *target_item
}
static gboolean
-single_item_button_press_event_cb (GooCanvasItem *ci, GooCanvasItem *target_item,
- GdkEventButton *event, BrowserCanvasFkey *cc)
+single_item_button_press_event_cb (G_GNUC_UNUSED GooCanvasItem *ci, G_GNUC_UNUSED GooCanvasItem *target_item,
+ G_GNUC_UNUSED GdkEventButton *event, G_GNUC_UNUSED BrowserCanvasFkey *cc)
{
return FALSE;
/*
@@ -459,7 +460,7 @@ single_item_button_press_event_cb (GooCanvasItem *ci, GooCanvasItem *target_item
}
static void
-table_item_moved_cb (GooCanvasItem *table, BrowserCanvasFkey *cc)
+table_item_moved_cb (G_GNUC_UNUSED GooCanvasItem *table, BrowserCanvasFkey *cc)
{
update_items (cc);
}
diff --git a/tools/browser/canvas/browser-canvas-item.c b/tools/browser/canvas/browser-canvas-item.c
index e51418d..9152931 100644
--- a/tools/browser/canvas/browser-canvas-item.c
+++ b/tools/browser/canvas/browser-canvas-item.c
@@ -83,7 +83,8 @@ browser_canvas_item_get_type (void)
NULL,
sizeof (BrowserCanvasItem),
0,
- (GInstanceInitFunc) browser_canvas_item_init
+ (GInstanceInitFunc) browser_canvas_item_init,
+ 0
};
type = g_type_register_static (GOO_TYPE_CANVAS_GROUP, "BrowserCanvasItem", &info, 0);
}
@@ -193,7 +194,7 @@ static void
browser_canvas_item_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasItem *citem = NULL;
const gchar *str = NULL;
@@ -290,8 +291,8 @@ browser_canvas_item_get_edge_nodes (BrowserCanvasItem *item,
}
static gboolean
-leave_notify_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
- GdkEventCrossing *event, gpointer data)
+leave_notify_event (BrowserCanvasItem *citem, G_GNUC_UNUSED GooCanvasItem *target_item,
+ G_GNUC_UNUSED GdkEventCrossing *event, G_GNUC_UNUSED gpointer data)
{
gtk_widget_set_has_tooltip (GTK_WIDGET (goo_canvas_item_get_canvas (GOO_CANVAS_ITEM (citem))),
FALSE);
@@ -299,8 +300,8 @@ leave_notify_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
}
static gboolean
-button_press_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
- GdkEventButton *event, gpointer data)
+button_press_event (BrowserCanvasItem *citem, G_GNUC_UNUSED GooCanvasItem *target_item,
+ GdkEventButton *event, G_GNUC_UNUSED gpointer data)
{
gboolean done = FALSE;
@@ -353,8 +354,8 @@ button_press_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
}
static gboolean
-button_release_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
- GdkEventButton *event, gpointer data)
+button_release_event (BrowserCanvasItem *citem, G_GNUC_UNUSED GooCanvasItem *target_item,
+ GdkEventButton *event, G_GNUC_UNUSED gpointer data)
{
if (citem->priv->allow_move) {
citem->priv->moving = FALSE;
@@ -373,8 +374,8 @@ button_release_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
}
static gboolean
-motion_notify_event (BrowserCanvasItem *citem, GooCanvasItem *target_item,
- GdkEventMotion *event, gpointer data)
+motion_notify_event (BrowserCanvasItem *citem, G_GNUC_UNUSED GooCanvasItem *target_item,
+ GdkEventMotion *event, G_GNUC_UNUSED gpointer data)
{
gboolean retval = FALSE;
diff --git a/tools/browser/canvas/browser-canvas-print.c b/tools/browser/canvas/browser-canvas-print.c
index 17ad7fa..13e5ad7 100644
--- a/tools/browser/canvas/browser-canvas-print.c
+++ b/tools/browser/canvas/browser-canvas-print.c
@@ -100,20 +100,21 @@ browser_canvas_print (BrowserCanvas *canvas)
}
static void
-print_begin (GtkPrintOperation *operation, GtkPrintContext *context, PrintPageData *pdata)
+print_begin (GtkPrintOperation *operation, G_GNUC_UNUSED GtkPrintContext *context, PrintPageData *pdata)
{
gtk_print_operation_set_n_pages (operation, pdata->h_npages * pdata->v_npages);
gtk_print_operation_set_default_page_setup (operation, pdata->page_setup);
}
static void
-print_end (GtkPrintOperation *operation, GtkPrintContext *context, PrintPageData *pdata)
+print_end (G_GNUC_UNUSED GtkPrintOperation *operation, G_GNUC_UNUSED GtkPrintContext *context,
+ G_GNUC_UNUSED PrintPageData *pdata)
{
}
static void
-print_draw_page (GtkPrintOperation *operation, GtkPrintContext *context, gint page_nr, PrintPageData *pdata)
+print_draw_page (G_GNUC_UNUSED GtkPrintOperation *operation, GtkPrintContext *context, gint page_nr, PrintPageData *pdata)
{
cairo_t *cr;
GooCanvasBounds bounds, canvas_bounds;
@@ -218,7 +219,7 @@ static void print_zoom_value_changed_cb (GtkSpinButton *entry, PrintCustomData *
static void print_page_numbers_toggled_cb (GtkToggleButton *toggle, PrintCustomData *cdata);
static GObject *
-print_create_custom_widget_cb (GtkPrintOperation *operation, PrintPageData *pdata)
+print_create_custom_widget_cb (G_GNUC_UNUSED GtkPrintOperation *operation, PrintPageData *pdata)
{
GtkWidget *vbox, *bbox, *button, *label, *hbox, *table, *entry;
PrintCustomData *cdata;
diff --git a/tools/browser/canvas/browser-canvas-table.c b/tools/browser/canvas/browser-canvas-table.c
index 9ace70c..633d18c 100644
--- a/tools/browser/canvas/browser-canvas-table.c
+++ b/tools/browser/canvas/browser-canvas-table.c
@@ -87,7 +87,8 @@ browser_canvas_table_get_type (void)
NULL,
sizeof (BrowserCanvasTable),
0,
- (GInstanceInitFunc) browser_canvas_table_init
+ (GInstanceInitFunc) browser_canvas_table_init,
+ 0
};
type = g_type_register_static (TYPE_BROWSER_CANVAS_ITEM, "BrowserCanvasTable", &info, 0);
@@ -199,7 +200,7 @@ static void
browser_canvas_table_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasTable *ce = NULL;
@@ -236,7 +237,7 @@ static void
browser_canvas_table_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasTable *ce = NULL;
@@ -403,8 +404,9 @@ create_items (BrowserCanvasTable *ce)
}
static gboolean
-button_press_event_cb (BrowserCanvasTable *ce, GooCanvasItem *target_item, GdkEventButton *event,
- gpointer unused_data)
+button_press_event_cb (BrowserCanvasTable *ce, G_GNUC_UNUSED GooCanvasItem *target_item,
+ GdkEventButton *event,
+ G_GNUC_UNUSED gpointer data)
{
if ((event->button == 3) && ce->priv->popup_menu_func) {
GtkWidget *menu;
@@ -515,8 +517,9 @@ browser_canvas_table_new (GooCanvasItem *parent, GdaMetaStruct *mstruct, GdaMeta
}
static void
-browser_canvas_table_drag_data_get (BrowserCanvasItem *citem, GdkDragContext *drag_context,
- GtkSelectionData *data, guint info, guint time)
+browser_canvas_table_drag_data_get (BrowserCanvasItem *citem, G_GNUC_UNUSED GdkDragContext *drag_context,
+ GtkSelectionData *data, G_GNUC_UNUSED guint info,
+ G_GNUC_UNUSED guint time)
{
BrowserCanvasTable *ctable;
diff --git a/tools/browser/canvas/browser-canvas-text.c b/tools/browser/canvas/browser-canvas-text.c
index 2217338..de14714 100644
--- a/tools/browser/canvas/browser-canvas-text.c
+++ b/tools/browser/canvas/browser-canvas-text.c
@@ -88,7 +88,8 @@ browser_canvas_text_get_type (void)
NULL,
sizeof (BrowserCanvasText),
0,
- (GInstanceInitFunc) browser_canvas_text_init
+ (GInstanceInitFunc) browser_canvas_text_init,
+ 0
};
type = g_type_register_static (TYPE_BROWSER_CANVAS_ITEM, "BrowserCanvasText", &info, 0);
@@ -225,7 +226,7 @@ static void
browser_canvas_text_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasText *ct = NULL;
const gchar *cstr = NULL;
@@ -296,8 +297,8 @@ browser_canvas_text_set_property (GObject *object,
static void
browser_canvas_text_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvasText *ct;
@@ -370,23 +371,25 @@ create_items (BrowserCanvasText *ct)
}
static gboolean
-enter_notify_cb (GooCanvasItem *item, GooCanvasItem *target_item, GdkEventCrossing *event, BrowserCanvasText *ct)
+enter_notify_cb (G_GNUC_UNUSED GooCanvasItem *item, G_GNUC_UNUSED GooCanvasItem *target_item,
+ G_GNUC_UNUSED GdkEventCrossing *event, BrowserCanvasText *ct)
{
browser_canvas_text_set_highlight (ct, TRUE);
return FALSE;
}
static gboolean
-leave_notify_cb (GooCanvasItem *item, GooCanvasItem *target_item, GdkEventCrossing *event, BrowserCanvasText *ct)
+leave_notify_cb (G_GNUC_UNUSED GooCanvasItem *item, G_GNUC_UNUSED GooCanvasItem *target_item,
+ G_GNUC_UNUSED GdkEventCrossing *event, BrowserCanvasText *ct)
{
browser_canvas_text_set_highlight (ct, FALSE);
return FALSE;
}
static guint
-compute_step_value (current, end)
+compute_step_value (guint current, guint end)
{
-#define STEP 15
+ const guint STEP = 15;
if (current < end)
return current + MIN (STEP, (end - current));
else if (current > end)
diff --git a/tools/browser/canvas/browser-canvas.c b/tools/browser/canvas/browser-canvas.c
index e396c80..418a636 100644
--- a/tools/browser/canvas/browser-canvas.c
+++ b/tools/browser/canvas/browser-canvas.c
@@ -87,7 +87,8 @@ browser_canvas_get_type (void)
NULL,
sizeof (BrowserCanvas),
0,
- (GInstanceInitFunc) browser_canvas_init
+ (GInstanceInitFunc) browser_canvas_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_SCROLLED_WINDOW, "BrowserCanvas", &info, 0);
@@ -186,7 +187,8 @@ idle_add_canvas_cb (BrowserCanvas *canvas)
}
static void
-drag_begin_cb (BrowserCanvas *canvas, GdkDragContext *drag_context, GooCanvas *gcanvas)
+drag_begin_cb (BrowserCanvas *canvas, G_GNUC_UNUSED GdkDragContext *drag_context,
+ G_GNUC_UNUSED GooCanvas *gcanvas)
{
BrowserCanvasItem *citem;
@@ -202,7 +204,7 @@ drag_begin_cb (BrowserCanvas *canvas, GdkDragContext *drag_context, GooCanvas *g
static void
drag_data_get_cb (BrowserCanvas *canvas, GdkDragContext *drag_context,
GtkSelectionData *data, guint info,
- guint time, GooCanvas *gcanvas)
+ guint time, G_GNUC_UNUSED GooCanvas *gcanvas)
{
BrowserCanvasItem *citem;
@@ -215,9 +217,9 @@ drag_data_get_cb (BrowserCanvas *canvas, GdkDragContext *drag_context,
}
static void
-drag_data_received_cb (BrowserCanvas *canvas, GdkDragContext *context,
- gint x, gint y, GtkSelectionData *data,
- guint info, guint time, GooCanvas *gcanvas)
+drag_data_received_cb (G_GNUC_UNUSED BrowserCanvas *canvas, GdkDragContext *context,
+ gint x, gint y, G_GNUC_UNUSED GtkSelectionData *data,
+ G_GNUC_UNUSED guint info, guint time, GooCanvas *gcanvas)
{
GooCanvasItem *item;
item = goo_canvas_get_item_at (gcanvas, x, y, TRUE);
@@ -231,7 +233,7 @@ drag_data_received_cb (BrowserCanvas *canvas, GdkDragContext *context,
}
static gboolean
-canvas_scroll_event_cb (GooCanvas *gcanvas, GdkEvent *event, BrowserCanvas *canvas)
+canvas_scroll_event_cb (G_GNUC_UNUSED GooCanvas *gcanvas, GdkEvent *event, BrowserCanvas *canvas)
{
gboolean done = TRUE;
GdkEventScroll *ev = (GdkEventScroll *) event;
@@ -262,7 +264,7 @@ canvas_scroll_event_cb (GooCanvas *gcanvas, GdkEvent *event, BrowserCanvas *canv
static GdkCursor *hand_cursor = NULL;
static gboolean
-motion_notify_event_cb (BrowserCanvas *canvas, GdkEvent *event, GooCanvas *gcanvas)
+motion_notify_event_cb (BrowserCanvas *canvas, GdkEvent *event, G_GNUC_UNUSED GooCanvas *gcanvas)
{
gboolean done = TRUE;
@@ -437,37 +439,37 @@ canvas_event_cb (BrowserCanvas *canvas, GdkEvent *event, GooCanvas *gcanvas)
}
static void
-popup_layout_default_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_layout_default_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
browser_canvas_perform_auto_layout (canvas, TRUE, BROWSER_CANVAS_LAYOUT_DEFAULT);
}
static void
-popup_layout_radial_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_layout_radial_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
browser_canvas_perform_auto_layout (canvas, TRUE, BROWSER_CANVAS_LAYOUT_RADIAL);
}
static void
-popup_zoom_in_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_zoom_in_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
browser_canvas_set_zoom_factor (canvas, browser_canvas_get_zoom_factor (canvas) + .05);
}
static void
-popup_zoom_out_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_zoom_out_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
browser_canvas_set_zoom_factor (canvas, browser_canvas_get_zoom_factor (canvas) - .05);
}
static void
-popup_zoom_fit_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_zoom_fit_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
browser_canvas_fit_zoom_factor (canvas);
}
static void
-popup_export_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_export_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
GtkWidget *dlg;
gint result;
@@ -586,7 +588,7 @@ popup_export_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
}
static void
-popup_print_cb (GtkMenuItem *mitem, BrowserCanvas *canvas)
+popup_print_cb (G_GNUC_UNUSED GtkMenuItem *mitem, BrowserCanvas *canvas)
{
browser_canvas_print (canvas);
}
@@ -671,8 +673,8 @@ browser_canvas_finalize (GObject *object)
static void
browser_canvas_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvas *canvas;
@@ -685,8 +687,8 @@ browser_canvas_set_property (GObject *object,
static void
browser_canvas_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
BrowserCanvas *canvas;
@@ -1029,7 +1031,7 @@ browser_canvas_perform_auto_layout (BrowserCanvas *canvas, gboolean animate, Bro
#ifdef HAVE_GRAPHVIZ
static gdouble
-compute_animation_inc (float start, float stop, float current)
+compute_animation_inc (float start, float stop, G_GNUC_UNUSED float current)
{
gdouble inc;
#ifndef PI
@@ -1199,7 +1201,7 @@ browser_canvas_item_toggle_select (BrowserCanvas *canvas, BrowserCanvasItem *ite
}
void
-browser_canvas_translate_item (BrowserCanvas *canvas, BrowserCanvasItem *item,
+browser_canvas_translate_item (G_GNUC_UNUSED BrowserCanvas *canvas, BrowserCanvasItem *item,
gdouble dx, gdouble dy)
{
browser_canvas_item_translate (item, dx, dy);
diff --git a/tools/browser/common/gdaui-data-import.c b/tools/browser/common/gdaui-data-import.c
index f96d3fa..7d219d9 100644
--- a/tools/browser/common/gdaui-data-import.c
+++ b/tools/browser/common/gdaui-data-import.c
@@ -82,7 +82,8 @@ gdaui_data_import_get_type (void)
NULL,
sizeof (GdauiDataImport),
0,
- (GInstanceInitFunc) gdaui_data_import_init
+ (GInstanceInitFunc) gdaui_data_import_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VPANED, "GdauiDataImport", &info, 0);
diff --git a/tools/browser/common/gdaui-entry-import.c b/tools/browser/common/gdaui-entry-import.c
index aec131a..02ca41c 100644
--- a/tools/browser/common/gdaui-entry-import.c
+++ b/tools/browser/common/gdaui-entry-import.c
@@ -66,7 +66,8 @@ gdaui_entry_import_get_type (void)
NULL,
sizeof (GdauiEntryImport),
0,
- (GInstanceInitFunc) gdaui_entry_import_init
+ (GInstanceInitFunc) gdaui_entry_import_init,
+ 0
};
type = g_type_register_static (GDAUI_TYPE_ENTRY_WRAPPER, "GdauiEntryImport", &info, 0);
@@ -281,7 +282,7 @@ real_get_value (GdauiEntryWrapper *mgwrap)
}
static void
-connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activate_cb)
+connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, G_GNUC_UNUSED GCallback activate_cb)
{
GdauiEntryImport *mgtxt;
@@ -293,7 +294,7 @@ connect_signals(GdauiEntryWrapper *mgwrap, GCallback modify_cb, GCallback activa
}
static gboolean
-can_expand (GdauiEntryWrapper *mgwrap, gboolean horiz)
+can_expand (G_GNUC_UNUSED GdauiEntryWrapper *mgwrap, G_GNUC_UNUSED gboolean horiz)
{
return FALSE;
}
diff --git a/tools/browser/common/objects-cloud.c b/tools/browser/common/objects-cloud.c
index c353084..6827838 100644
--- a/tools/browser/common/objects-cloud.c
+++ b/tools/browser/common/objects-cloud.c
@@ -84,7 +84,7 @@ objects_cloud_class_init (ObjectsCloudClass *klass)
static void
-objects_cloud_init (ObjectsCloud *cloud, ObjectsCloudClass *klass)
+objects_cloud_init (ObjectsCloud *cloud, G_GNUC_UNUSED ObjectsCloudClass *klass)
{
cloud->priv = g_new0 (ObjectsCloudPrivate, 1);
cloud->priv->show_schemas = FALSE;
@@ -126,7 +126,8 @@ objects_cloud_get_type (void)
NULL,
sizeof (ObjectsCloud),
0,
- (GInstanceInitFunc) objects_cloud_init
+ (GInstanceInitFunc) objects_cloud_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "ObjectsCloud",
&info, 0);
@@ -522,7 +523,7 @@ set_cursor_if_appropriate (GtkTextView *text_view, gint x, gint y, ObjectsCloud
* (e.g. when a window covering it got iconified).
*/
static gboolean
-visibility_notify_event (GtkWidget *text_view, GdkEventVisibility *event, ObjectsCloud *cloud)
+visibility_notify_event (GtkWidget *text_view, G_GNUC_UNUSED GdkEventVisibility *event, ObjectsCloud *cloud)
{
gint wx, wy, bx, by;
@@ -560,7 +561,7 @@ motion_notify_event (GtkWidget *text_view, GdkEventMotion *event, ObjectsCloud *
* by the data attached to it.
*/
static void
-follow_if_link (GtkWidget *text_view, GtkTextIter *iter, ObjectsCloud *cloud)
+follow_if_link (G_GNUC_UNUSED GtkWidget *text_view, GtkTextIter *iter, ObjectsCloud *cloud)
{
GSList *tags = NULL, *tagp = NULL;
diff --git a/tools/browser/common/ui-formgrid.c b/tools/browser/common/ui-formgrid.c
index edc3adb..4f4ee7e 100644
--- a/tools/browser/common/ui-formgrid.c
+++ b/tools/browser/common/ui-formgrid.c
@@ -75,7 +75,8 @@ ui_formgrid_get_type (void)
NULL,
sizeof (UiFormGrid),
0,
- (GInstanceInitFunc) ui_formgrid_init
+ (GInstanceInitFunc) ui_formgrid_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "UiFormGrid", &info, 0);
@@ -329,7 +330,7 @@ ui_formgrid_handle_user_prefs (UiFormGrid *formgrid, BrowserConnection *bcnc, Gd
static void
ui_formgrid_set_property (GObject *object,
guint param_id,
- const GValue *value,
+ G_GNUC_UNUSED const GValue *value,
GParamSpec *pspec)
{
UiFormGrid *formgrid;
diff --git a/tools/browser/connection-binding-properties.c b/tools/browser/connection-binding-properties.c
index 53a4d34..3e21a09 100644
--- a/tools/browser/connection-binding-properties.c
+++ b/tools/browser/connection-binding-properties.c
@@ -63,7 +63,8 @@ connection_binding_properties_get_type (void)
NULL,
sizeof (ConnectionBindingProperties),
0,
- (GInstanceInitFunc) connection_binding_properties_init
+ (GInstanceInitFunc) connection_binding_properties_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -315,7 +316,7 @@ add_part_mitem_cb (GtkMenuItem *mitem, ConnectionBindingProperties *cprop)
}
static void
-add_part_clicked_cb (GtkWidget *button, ConnectionBindingProperties *cprop)
+add_part_clicked_cb (G_GNUC_UNUSED GtkWidget *button, ConnectionBindingProperties *cprop)
{
if (! cprop->priv->menu) {
GtkWidget *menu, *entry;
@@ -381,7 +382,8 @@ part_for_model_holder_changed_cb (GdaSet *set, GdaHolder *holder, BrowserVirtual
}
static GdauiDataEntry *
-plugin_entry_import_create_func (GdaDataHandler *handler, GType type, const gchar *options)
+plugin_entry_import_create_func (G_GNUC_UNUSED GdaDataHandler *handler, GType type,
+ G_GNUC_UNUSED const gchar *options)
{
return GDAUI_DATA_ENTRY (gdaui_entry_import_new (type));
}
@@ -439,8 +441,8 @@ create_part_for_model (ConnectionBindingProperties *cprop, BrowserVirtualConnect
}
static GError *
-part_for_cnc_validate_holder_change_cb (GdaSet *set, GdaHolder *holder, GValue *new_value,
- BrowserVirtualConnectionCnc *cnc)
+part_for_cnc_validate_holder_change_cb (G_GNUC_UNUSED GdaSet *set, GdaHolder *holder, GValue *new_value,
+ G_GNUC_UNUSED BrowserVirtualConnectionCnc *cnc)
{
const gchar *hid;
diff --git a/tools/browser/data-manager/data-console.c b/tools/browser/data-manager/data-console.c
index 57a090d..5678309 100644
--- a/tools/browser/data-manager/data-console.c
+++ b/tools/browser/data-manager/data-console.c
@@ -169,7 +169,7 @@ data_console_page_init (BrowserPageIface *iface)
}
static void
-data_console_init (DataConsole *dconsole, DataConsoleClass *klass)
+data_console_init (DataConsole *dconsole, G_GNUC_UNUSED DataConsoleClass *klass)
{
dconsole->priv = g_new0 (DataConsolePrivate, 1);
dconsole->priv->layout_type = LAYOUT_HORIZ;
@@ -225,7 +225,8 @@ data_console_get_type (void)
NULL,
sizeof (DataConsole),
0,
- (GInstanceInitFunc) data_console_init
+ (GInstanceInitFunc) data_console_init,
+ 0
};
static GInterfaceInfo page_console = {
@@ -614,14 +615,14 @@ save_clicked_cb (GtkWidget *button, DataConsole *dconsole)
}
static void
-execute_clicked_cb (GtkButton *button, DataConsole *dconsole)
+execute_clicked_cb (G_GNUC_UNUSED GtkButton *button, DataConsole *dconsole)
{
data_console_execute (dconsole);
}
#ifdef HAVE_GDU
static void
-help_clicked_cb (GtkButton *button, DataConsole *dconsole)
+help_clicked_cb (G_GNUC_UNUSED GtkButton *button, DataConsole *dconsole)
{
browser_show_help ((GtkWindow*) gtk_widget_get_toplevel ((GtkWidget*) dconsole),
"data-manager-perspective");
@@ -659,7 +660,7 @@ spec_editor_toggled_cb (GtkToggleButton *button, DataConsole *dconsole)
}
static void
-param_activated_cb (GdauiBasicForm *form, DataConsole *dconsole)
+param_activated_cb (G_GNUC_UNUSED GdauiBasicForm *form, DataConsole *dconsole)
{
DataWidget *dwid = NULL;
if (dconsole->priv->data)
@@ -669,7 +670,8 @@ param_activated_cb (GdauiBasicForm *form, DataConsole *dconsole)
}
static void
-data_source_source_changed_cb (DataSourceManager *mgr, DataSource *source, DataConsole *dconsole)
+data_source_source_changed_cb (DataSourceManager *mgr, G_GNUC_UNUSED DataSource *source,
+ DataConsole *dconsole)
{
data_source_mgr_changed_cb (mgr, dconsole);
}
@@ -703,7 +705,7 @@ data_source_mgr_changed_cb (DataSourceManager *mgr, DataConsole *dconsole)
}
static void
-editor_clear_clicked_cb (GtkButton *button, DataConsole *dconsole)
+editor_clear_clicked_cb (G_GNUC_UNUSED GtkButton *button, DataConsole *dconsole)
{
xml_spec_editor_set_xml_text (XML_SPEC_EDITOR (dconsole->priv->xml_sped), DEFAULT_XML);
gtk_widget_grab_focus (dconsole->priv->xml_sped);
@@ -744,7 +746,7 @@ dbo_sort (GdaMetaDbObject *dbo1, GdaMetaDbObject *dbo2)
}
static void
-add_source_clicked_cb (GtkButton *button, DataConsole *dconsole)
+add_source_clicked_cb (G_GNUC_UNUSED GtkButton *button, DataConsole *dconsole)
{
GdaMetaStruct *mstruct;
mstruct = browser_connection_get_meta_struct (dconsole->priv->bcnc);
@@ -835,7 +837,7 @@ add_source_clicked_cb (GtkButton *button, DataConsole *dconsole)
* UI actions
*/
static void
-compose_mode_toggled_cb (GtkToggleAction *action, DataConsole *dconsole)
+compose_mode_toggled_cb (G_GNUC_UNUSED GtkToggleAction *action, DataConsole *dconsole)
{
gint pagenb;
@@ -927,7 +929,7 @@ data_console_page_get_actions_group (BrowserPage *page)
}
static const gchar *
-data_console_page_get_actions_ui (BrowserPage *page)
+data_console_page_get_actions_ui (G_GNUC_UNUSED BrowserPage *page)
{
return ui_actions_console;
}
diff --git a/tools/browser/data-manager/data-favorite-selector.c b/tools/browser/data-manager/data-favorite-selector.c
index 2c96e88..229eab4 100644
--- a/tools/browser/data-manager/data-favorite-selector.c
+++ b/tools/browser/data-manager/data-favorite-selector.c
@@ -115,7 +115,7 @@ data_favorite_selector_class_init (DataFavoriteSelectorClass *klass)
static void
-data_favorite_selector_init (DataFavoriteSelector *tsel, DataFavoriteSelectorClass *klass)
+data_favorite_selector_init (DataFavoriteSelector *tsel, G_GNUC_UNUSED DataFavoriteSelectorClass *klass)
{
tsel->priv = g_new0 (DataFavoriteSelectorPrivate, 1);
tsel->priv->idle_update_favorites = 0;
@@ -169,7 +169,8 @@ data_favorite_selector_get_type (void)
NULL,
sizeof (DataFavoriteSelector),
0,
- (GInstanceInitFunc) data_favorite_selector_init
+ (GInstanceInitFunc) data_favorite_selector_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "DataFavoriteSelector",
&info, 0);
@@ -211,8 +212,8 @@ key_press_event_cb (GtkTreeView *treeview, GdkEventKey *event, DataFavoriteSelec
static void
-selection_changed_cb (GtkTreeView *treeview, GtkTreePath *path,
- GtkTreeViewColumn *column, DataFavoriteSelector *tsel)
+selection_changed_cb (GtkTreeView *treeview, G_GNUC_UNUSED GtkTreePath *path,
+ G_GNUC_UNUSED GtkTreeViewColumn *column, DataFavoriteSelector *tsel)
{
GtkTreeModel *model;
GtkTreeSelection *select;
@@ -267,7 +268,7 @@ prop_save_timeout (DataFavoriteSelector *tsel)
}
static void
-property_changed_cb (GtkWidget *multiple, DataFavoriteSelector *tsel)
+property_changed_cb (G_GNUC_UNUSED GtkWidget *multiple, DataFavoriteSelector *tsel)
{
if (tsel->priv->prop_save_timeout)
g_source_remove (tsel->priv->prop_save_timeout);
@@ -384,7 +385,7 @@ properties_activated_cb (GtkMenuItem *mitem, DataFavoriteSelector *tsel)
}
static void
-do_popup_menu (GtkWidget *widget, GdkEventButton *event, DataFavoriteSelector *tsel)
+do_popup_menu (G_GNUC_UNUSED GtkWidget *widget, GdkEventButton *event, DataFavoriteSelector *tsel)
{
int button, event_time;
@@ -558,8 +559,8 @@ data_favorite_selector_new (BrowserConnection *bcnc)
}
static void
-cell_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+cell_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+ GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED gpointer data)
{
gchar *name;
gchar *tmp;
@@ -588,8 +589,8 @@ idle_update_favorites (DataFavoriteSelector *tsel)
}
static gboolean
-tree_store_drag_drop_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionData *selection_data,
- DataFavoriteSelector *tsel)
+tree_store_drag_drop_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ GtkSelectionData *selection_data, DataFavoriteSelector *tsel)
{
BrowserFavorites *bfav;
BrowserFavoritesAttributes fav;
@@ -629,7 +630,8 @@ tree_store_drag_drop_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionD
}
static gboolean
-tree_store_drag_can_drag_cb (GdauiTreeStore *store, const gchar *path, DataFavoriteSelector *tsel)
+tree_store_drag_can_drag_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ DataFavoriteSelector *tsel)
{
GdaTreeNode *node;
node = gda_tree_get_node (tsel->priv->tree, path, FALSE);
@@ -643,8 +645,8 @@ tree_store_drag_can_drag_cb (GdauiTreeStore *store, const gchar *path, DataFavor
}
static gboolean
-tree_store_drag_get_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionData *selection_data,
- DataFavoriteSelector *tsel)
+tree_store_drag_get_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ GtkSelectionData *selection_data, DataFavoriteSelector *tsel)
{
GdaTreeNode *node;
node = gda_tree_get_node (tsel->priv->tree, path, FALSE);
@@ -663,7 +665,7 @@ tree_store_drag_get_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionDa
}
static void
-favorites_changed_cb (BrowserFavorites *bfav, DataFavoriteSelector *tsel)
+favorites_changed_cb (G_GNUC_UNUSED BrowserFavorites *bfav, DataFavoriteSelector *tsel)
{
if (! gda_tree_update_all (tsel->priv->tree, NULL)) {
if (tsel->priv->idle_update_favorites == 0)
diff --git a/tools/browser/data-manager/data-manager-perspective.c b/tools/browser/data-manager/data-manager-perspective.c
index a6ef899..22c6739 100644
--- a/tools/browser/data-manager/data-manager-perspective.c
+++ b/tools/browser/data-manager/data-manager-perspective.c
@@ -72,7 +72,8 @@ data_manager_perspective_get_type (void)
NULL,
sizeof (DataManagerPerspective),
0,
- (GInstanceInitFunc) data_manager_perspective_init
+ (GInstanceInitFunc) data_manager_perspective_init,
+ 0
};
static GInterfaceInfo perspective_info = {
@@ -244,7 +245,7 @@ add_new_data_console (BrowserPerspective *bpers, gint fav_id)
}
static void
-fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
+fav_selection_changed_cb (G_GNUC_UNUSED GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
const gchar *selection, DataManagerPerspective *perspective)
{
/* find or create page for this favorite */
@@ -295,7 +296,7 @@ fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType f
}
static void
-nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num,
DataManagerPerspective *perspective)
{
GtkWidget *page_contents;
@@ -315,7 +316,7 @@ nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
}
static void
-nb_page_removed_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
+nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, G_GNUC_UNUSED gint page_num,
DataManagerPerspective *perspective)
{
if (gtk_notebook_get_n_pages (nb) == 0) {
@@ -327,14 +328,14 @@ nb_page_removed_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
}
static void
-nb_page_added_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
- DataManagerPerspective *perspective)
+nb_page_added_cb (G_GNUC_UNUSED GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page,
+ G_GNUC_UNUSED gint page_num, DataManagerPerspective *perspective)
{
adapt_notebook_for_fullscreen (perspective);
}
static void
-close_button_clicked_cb (GtkWidget *wid, GtkWidget *page_widget)
+close_button_clicked_cb (G_GNUC_UNUSED GtkWidget *wid, GtkWidget *page_widget)
{
gtk_widget_destroy (page_widget);
}
@@ -351,7 +352,7 @@ adapt_notebook_for_fullscreen (DataManagerPerspective *perspective)
}
static void
-fullscreen_changed_cb (BrowserWindow *bwin, gboolean fullscreen, DataManagerPerspective *perspective)
+fullscreen_changed_cb (G_GNUC_UNUSED BrowserWindow *bwin, gboolean fullscreen, DataManagerPerspective *perspective)
{
perspective->priv->fullscreen = fullscreen;
adapt_notebook_for_fullscreen (perspective);
@@ -385,7 +386,7 @@ data_manager_perspective_dispose (GObject *object)
}
static void
-manager_new_cb (GtkAction *action, BrowserPerspective *bpers)
+manager_new_cb (G_GNUC_UNUSED GtkAction *action, BrowserPerspective *bpers)
{
add_new_data_console (bpers, -1);
}
@@ -448,7 +449,7 @@ data_manager_perspective_get_actions_group (BrowserPerspective *bpers)
}
static const gchar *
-data_manager_perspective_get_actions_ui (BrowserPerspective *bpers)
+data_manager_perspective_get_actions_ui (G_GNUC_UNUSED BrowserPerspective *bpers)
{
return ui_actions_info;
}
diff --git a/tools/browser/data-manager/data-source-editor.c b/tools/browser/data-manager/data-source-editor.c
index cf51da4..85b8136 100644
--- a/tools/browser/data-manager/data-source-editor.c
+++ b/tools/browser/data-manager/data-source-editor.c
@@ -64,7 +64,8 @@ data_source_editor_get_type (void)
NULL,
sizeof (DataSourceEditor),
0,
- (GInstanceInitFunc) data_source_editor_init
+ (GInstanceInitFunc) data_source_editor_init,
+ 0
};
@@ -261,7 +262,7 @@ update_dependencies_display (DataSourceEditor *editor)
"section", NULL);
gtk_text_buffer_insert (tbuffer, &start, "\n", -1);
if (export) {
- gint i;
+ gsize i;
for (i = 0; i < export->len ; i++) {
gchar *tmp;
tmp = g_array_index (export, gchar *, i);
@@ -349,7 +350,7 @@ data_source_editor_display_source (DataSourceEditor *editor, DataSource *source)
}
static void
-attribute_changed_cb (GdaSet *set, GdaHolder *holder, DataSourceEditor *editor)
+attribute_changed_cb (G_GNUC_UNUSED GdaSet *set, GdaHolder *holder, DataSourceEditor *editor)
{
const gchar *id, *str = NULL;
const GValue *cvalue;
diff --git a/tools/browser/data-manager/data-source-manager.c b/tools/browser/data-manager/data-source-manager.c
index c5ba40e..ad15da4 100644
--- a/tools/browser/data-manager/data-source-manager.c
+++ b/tools/browser/data-manager/data-source-manager.c
@@ -75,7 +75,8 @@ data_source_manager_get_type (void)
NULL,
sizeof (DataSourceManager),
0,
- (GInstanceInitFunc) data_source_manager_init
+ (GInstanceInitFunc) data_source_manager_init,
+ 0
};
@@ -493,7 +494,7 @@ data_source_manager_get_params (DataSourceManager *mgr)
* Returns: an array of arrays of pointer to the #DataSource objects
*/
GArray *
-data_source_manager_get_sources_array (DataSourceManager *mgr, GError **error)
+data_source_manager_get_sources_array (DataSourceManager *mgr, G_GNUC_UNUSED GError **error)
{
g_return_val_if_fail (IS_DATA_SOURCE_MANAGER (mgr), NULL);
@@ -529,11 +530,11 @@ data_source_manager_get_sources_array (DataSourceManager *mgr, GError **error)
}
if (array) {
- gint i;
+ gssize i;
gboolean dep_found = FALSE;
for (i = array->len - 1; i >= 0 ; i--) {
GArray *subarray = g_array_index (array, GArray*, i);
- gint j;
+ gsize j;
for (j = 0; j < subarray->len; j++) {
DataSource *source2 = g_array_index (subarray, DataSource*, j);
if (source_depends_on (source, source2)) {
@@ -546,7 +547,7 @@ data_source_manager_get_sources_array (DataSourceManager *mgr, GError **error)
g_array_append_val (subarray, source);
}
else {
- gint k;
+ gsize k;
GArray *subarray = g_array_index (array, GArray*, i+1);
for (k = 0; k < subarray->len; k++) {
DataSource *source3 = g_array_index (subarray,
@@ -604,12 +605,12 @@ data_source_manager_get_sources_array (DataSourceManager *mgr, GError **error)
void
data_source_manager_destroy_sources_array (GArray *array)
{
- gint i;
+ gsize i;
g_return_if_fail (array);
for (i = 0; i < array->len; i++) {
GArray *subarray;
subarray = g_array_index (array, GArray *, i);
- gint j;
+ gsize j;
for (j = 0; j < subarray->len; j++) {
DataSource *source;
source = g_array_index (subarray, DataSource *, j);
diff --git a/tools/browser/data-manager/data-source.c b/tools/browser/data-manager/data-source.c
index 4f33de6..3ff38d7 100644
--- a/tools/browser/data-manager/data-source.c
+++ b/tools/browser/data-manager/data-source.c
@@ -172,7 +172,8 @@ data_source_get_type (void)
NULL,
sizeof (DataSource),
0,
- (GInstanceInitFunc) data_source_init
+ (GInstanceInitFunc) data_source_init,
+ 0
};
@@ -233,13 +234,13 @@ data_source_init (DataSource *source)
}
static void
-params_changed_cb (GdaSet *params, GdaHolder *holder, DataSource *source)
+params_changed_cb (G_GNUC_UNUSED GdaSet *params, G_GNUC_UNUSED GdaHolder *holder, DataSource *source)
{
source->priv->need_rerun = TRUE;
}
static void
-ext_params_changed_cb (GdaSet *params, GdaHolder *holder, DataSource *source)
+ext_params_changed_cb (G_GNUC_UNUSED GdaSet *params, G_GNUC_UNUSED GdaHolder *holder, DataSource *source)
{
#ifdef DEBUG_SOURCE
g_print (" => data source [%s] should rerun\n",
@@ -519,7 +520,7 @@ init_from_table_node (DataSource *source, xmlNodePtr node, GError **error)
if (id)
xmlFree (id);
if (cols_array) {
- gint i;
+ gsize i;
for (i = 0; i < cols_array->len; i++) {
xmlChar *colname;
colname = g_array_index (cols_array, xmlChar*, i);
diff --git a/tools/browser/data-manager/data-widget.c b/tools/browser/data-manager/data-widget.c
index a0ffffc..d9620cb 100644
--- a/tools/browser/data-manager/data-widget.c
+++ b/tools/browser/data-manager/data-widget.c
@@ -93,7 +93,7 @@ data_widget_class_init (DataWidgetClass *klass)
static void
-data_widget_init (DataWidget *dwid, DataWidgetClass *klass)
+data_widget_init (DataWidget *dwid, G_GNUC_UNUSED DataWidgetClass *klass)
{
g_return_if_fail (IS_DATA_WIDGET (dwid));
@@ -145,7 +145,8 @@ data_widget_get_type (void)
NULL,
sizeof (DataWidget),
0,
- (GInstanceInitFunc) data_widget_init
+ (GInstanceInitFunc) data_widget_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "DataWidget", &info, 0);
}
@@ -311,7 +312,7 @@ pack_in_paned_list (GSList *paned_list, gint length, gint pos, GtkWidget *wid)
}
static void
-remove_data_source_mitem_activated_cb (GtkMenuItem *mitem, DataPart *part)
+remove_data_source_mitem_activated_cb (G_GNUC_UNUSED GtkMenuItem *mitem, DataPart *part)
{
data_source_manager_remove_source (part->dwid->priv->mgr, part->source);
}
@@ -373,7 +374,7 @@ data_source_props_activated_cb (GtkCheckMenuItem *mitem, DataPart *part)
static gchar *compute_fk_dependency (GdaMetaTableForeignKey *fkey, GSList *selfields, gboolean reverse,
DataPart *part, xmlNodePtr *out_sourcespec);
static void
-data_source_menu_clicked_cb (GtkButton *button, DataPart *part)
+data_source_menu_clicked_cb (G_GNUC_UNUSED GtkButton *button, DataPart *part)
{
if (! part->menu) {
GtkWidget *menu, *mitem;
@@ -634,7 +635,7 @@ update_layout (DataWidget *dwid)
}
else {
GSList *paned_list;
- gint i;
+ gsize i;
paned_list = make_paned_list (subarray->len, FALSE);
gtk_box_pack_start (GTK_BOX (new_contents),
GTK_WIDGET (paned_list->data), TRUE, TRUE, 0);
@@ -657,7 +658,7 @@ update_layout (DataWidget *dwid)
}
else {
GSList *top_paned_list;
- gint j;
+ gsize j;
top_paned_list = make_paned_list (sources_array->len, TRUE);
gtk_box_pack_start (GTK_BOX (new_contents),
@@ -681,7 +682,7 @@ update_layout (DataWidget *dwid)
}
else {
GSList *paned_list;
- gint i;
+ gsize i;
paned_list = make_paned_list (subarray->len, FALSE);
pack_in_paned_list (top_paned_list, sources_array->len, j,
GTK_WIDGET (paned_list->data));
@@ -730,7 +731,7 @@ update_layout (DataWidget *dwid)
}
static void
-mgr_list_changed_cb (DataSourceManager *mgr, DataWidget *dwid)
+mgr_list_changed_cb (G_GNUC_UNUSED DataSourceManager *mgr, DataWidget *dwid)
{
update_layout (dwid);
}
@@ -816,7 +817,7 @@ source_exec_started_cb_timeout (DataPart *part)
}
static void
-source_exec_started_cb (DataSource *source, DataPart *part)
+source_exec_started_cb (G_GNUC_UNUSED DataSource *source, DataPart *part)
{
if (! part->spinner_show_timer_id)
part->spinner_show_timer_id = g_timeout_add (300,
@@ -826,7 +827,7 @@ source_exec_started_cb (DataSource *source, DataPart *part)
static void data_part_selection_changed_cb (GdauiDataSelector *gdauidataselector, DataPart *part);
static void
-source_exec_finished_cb (DataSource *source, GError *error, DataPart *part)
+source_exec_finished_cb (G_GNUC_UNUSED DataSource *source, GError *error, DataPart *part)
{
GtkWidget *wid;
if (part->spinner_show_timer_id) {
@@ -880,7 +881,7 @@ source_exec_finished_cb (DataSource *source, GError *error, DataPart *part)
GSList *holders = NULL;
GdaDataModel *model;
GHashTable *export_columns;
- gint i;
+ gsize i;
GdaDataModelIter *iter;
iter = gdaui_data_selector_get_data_set (GDAUI_DATA_SELECTOR (wid));
@@ -925,7 +926,7 @@ source_exec_finished_cb (DataSource *source, GError *error, DataPart *part)
}
static void
-data_part_selection_changed_cb (GdauiDataSelector *gdauidataselector, DataPart *part)
+data_part_selection_changed_cb (G_GNUC_UNUSED GdauiDataSelector *gdauidataselector, DataPart *part)
{
if (part->export_data) {
GSList *list;
diff --git a/tools/browser/data-manager/ui-spec-editor.c b/tools/browser/data-manager/ui-spec-editor.c
index 308907f..7d0602a 100644
--- a/tools/browser/data-manager/ui-spec-editor.c
+++ b/tools/browser/data-manager/ui-spec-editor.c
@@ -64,8 +64,8 @@ ui_spec_editor_class_init (UiSpecEditorClass *klass)
}
static void
-cell_text_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+cell_text_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+ GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED gpointer data)
{
DataSource *source;
gtk_tree_model_get (tree_model, iter, COLUMN_DATA_SOURCE, &source, -1);
@@ -97,8 +97,8 @@ cell_text_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
}
static void
-cell_pixbuf_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+cell_pixbuf_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+ GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED gpointer data)
{
DataSource *source;
gtk_tree_model_get (tree_model, iter, COLUMN_DATA_SOURCE, &source, -1);
@@ -132,7 +132,7 @@ data_source_selection_changed_cb (GtkTreeSelection *sel, UiSpecEditor *uied)
}
static void
-ui_spec_editor_init (UiSpecEditor *sped, UiSpecEditorClass *klass)
+ui_spec_editor_init (UiSpecEditor *sped, G_GNUC_UNUSED UiSpecEditorClass *klass)
{
g_return_if_fail (IS_UI_SPEC_EDITOR (sped));
@@ -233,7 +233,8 @@ ui_spec_editor_get_type (void)
NULL,
sizeof (UiSpecEditor),
0,
- (GInstanceInitFunc) ui_spec_editor_init
+ (GInstanceInitFunc) ui_spec_editor_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "UiSpecEditor", &info, 0);
}
@@ -293,7 +294,7 @@ mgr_changed_cb (DataSourceManager *mgr, UiSpecEditor *sped)
}
static void
-mgr_source_changed_cb (DataSourceManager *mgr, DataSource *source, UiSpecEditor *sped)
+mgr_source_changed_cb (G_GNUC_UNUSED DataSourceManager *mgr, DataSource *source, UiSpecEditor *sped)
{
GtkTreeIter iter;
GtkTreeModel *tree_model = GTK_TREE_MODEL (sped->priv->sources_model);
diff --git a/tools/browser/data-manager/xml-spec-editor.c b/tools/browser/data-manager/xml-spec-editor.c
index df239dc..279ca3c 100644
--- a/tools/browser/data-manager/xml-spec-editor.c
+++ b/tools/browser/data-manager/xml-spec-editor.c
@@ -85,7 +85,7 @@ xml_spec_editor_grab_focus (GtkWidget *widget)
}
static void
-xml_spec_editor_init (XmlSpecEditor *sped, XmlSpecEditorClass *klass)
+xml_spec_editor_init (XmlSpecEditor *sped, G_GNUC_UNUSED XmlSpecEditorClass *klass)
{
g_return_if_fail (IS_XML_SPEC_EDITOR (sped));
@@ -109,7 +109,8 @@ xml_spec_editor_get_type (void)
NULL,
sizeof (XmlSpecEditor),
0,
- (GInstanceInitFunc) xml_spec_editor_init
+ (GInstanceInitFunc) xml_spec_editor_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "XmlSpecEditor", &info, 0);
}
@@ -247,7 +248,7 @@ signal_editor_changed (XmlSpecEditor *sped)
}
static void
-editor_changed_cb (GtkTextBuffer *buffer, XmlSpecEditor *sped)
+editor_changed_cb (G_GNUC_UNUSED GtkTextBuffer *buffer, XmlSpecEditor *sped)
{
if (sped->priv->signal_editor_changed_id)
g_source_remove (sped->priv->signal_editor_changed_id);
@@ -255,7 +256,7 @@ editor_changed_cb (GtkTextBuffer *buffer, XmlSpecEditor *sped)
}
static void
-source_list_changed_cb (DataSourceManager *mgr, XmlSpecEditor *sped)
+source_list_changed_cb (G_GNUC_UNUSED DataSourceManager *mgr, XmlSpecEditor *sped)
{
xmlDocPtr doc;
xmlNodePtr root;
@@ -284,7 +285,7 @@ source_list_changed_cb (DataSourceManager *mgr, XmlSpecEditor *sped)
}
static void
-data_source_changed_cb (DataSourceManager *mgr, DataSource *source, XmlSpecEditor *sped)
+data_source_changed_cb (DataSourceManager *mgr, G_GNUC_UNUSED DataSource *source, XmlSpecEditor *sped)
{
source_list_changed_cb (mgr, sped);
}
diff --git a/tools/browser/dummy-perspective/dummy-perspective.c b/tools/browser/dummy-perspective/dummy-perspective.c
index 7081261..4ba1ce1 100644
--- a/tools/browser/dummy-perspective/dummy-perspective.c
+++ b/tools/browser/dummy-perspective/dummy-perspective.c
@@ -52,7 +52,8 @@ dummy_perspective_get_type (void)
NULL,
sizeof (DummyPerspective),
0,
- (GInstanceInitFunc) dummy_perspective_init
+ (GInstanceInitFunc) dummy_perspective_init,
+ 0
};
static GInterfaceInfo perspective_info = {
@@ -107,7 +108,7 @@ dummy_perspective_init (DummyPerspective *perspective)
* Creates new #BrowserPerspective widget which
*/
BrowserPerspective *
-dummy_perspective_new (BrowserWindow *bwin)
+dummy_perspective_new (G_GNUC_UNUSED BrowserWindow *bwin)
{
BrowserPerspective *bpers;
bpers = (BrowserPerspective*) g_object_new (TYPE_DUMMY_PERSPECTIVE, NULL);
@@ -131,13 +132,13 @@ dummy_perspective_dispose (GObject *object)
}
static void
-dummy_add_cb (GtkAction *action, BrowserPerspective *bpers)
+dummy_add_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED BrowserPerspective *bpers)
{
g_print ("Add something...\n");
}
static void
-dummy_list_cb (GtkAction *action, BrowserPerspective *bpers)
+dummy_list_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED BrowserPerspective *bpers)
{
g_print ("List something...\n");
}
@@ -178,7 +179,7 @@ dummy_perspective_get_actions_group (BrowserPerspective *bpers)
}
static const gchar *
-dummy_perspective_get_actions_ui (BrowserPerspective *bpers)
+dummy_perspective_get_actions_ui (G_GNUC_UNUSED BrowserPerspective *bpers)
{
return ui_actions_info;
}
diff --git a/tools/browser/login-dialog.c b/tools/browser/login-dialog.c
index ebeeb88..fe5cf46 100644
--- a/tools/browser/login-dialog.c
+++ b/tools/browser/login-dialog.c
@@ -67,7 +67,8 @@ login_dialog_get_type (void)
NULL,
sizeof (LoginDialog),
0,
- (GInstanceInitFunc) login_dialog_init
+ (GInstanceInitFunc) login_dialog_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -92,7 +93,7 @@ login_dialog_class_init (LoginDialogClass *class)
}
static void
-login_contents_changed_cb (GdauiLogin *login, gboolean is_valid, LoginDialog *dialog)
+login_contents_changed_cb (G_GNUC_UNUSED GdauiLogin *login, gboolean is_valid, LoginDialog *dialog)
{
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT, is_valid);
if (is_valid)
diff --git a/tools/browser/main.c b/tools/browser/main.c
index 88ea6d9..e1f62c1 100644
--- a/tools/browser/main.c
+++ b/tools/browser/main.c
@@ -56,7 +56,7 @@ gchar *perspective = NULL;
static GOptionEntry entries[] = {
{ "perspective", 'p', 0, G_OPTION_ARG_STRING, &perspective, "Perspective", "default perspective "
"to use when opening windows"},
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
int
diff --git a/tools/browser/mgr-favorites.c b/tools/browser/mgr-favorites.c
index 56d92f2..5171db6 100644
--- a/tools/browser/mgr-favorites.c
+++ b/tools/browser/mgr-favorites.c
@@ -83,7 +83,7 @@ mgr_favorites_class_init (MgrFavoritesClass *klass)
}
static void
-mgr_favorites_init (MgrFavorites *mgr, MgrFavoritesClass *klass)
+mgr_favorites_init (MgrFavorites *mgr, G_GNUC_UNUSED MgrFavoritesClass *klass)
{
mgr->priv = g_new0 (MgrFavoritesPriv, 1);
}
@@ -126,7 +126,8 @@ mgr_favorites_get_type (void)
NULL,
sizeof (MgrFavorites),
0,
- (GInstanceInitFunc) mgr_favorites_init
+ (GInstanceInitFunc) mgr_favorites_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -141,7 +142,7 @@ static void
mgr_favorites_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
MgrFavorites *mgr;
@@ -162,7 +163,7 @@ static void
mgr_favorites_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
MgrFavorites *mgr;
diff --git a/tools/browser/query-exec/query-console.c b/tools/browser/query-exec/query-console.c
index cf5d98b..e426854 100644
--- a/tools/browser/query-exec/query-console.c
+++ b/tools/browser/query-exec/query-console.c
@@ -175,7 +175,7 @@ query_console_page_init (BrowserPageIface *iface)
}
static void
-query_console_init (QueryConsole *tconsole, QueryConsoleClass *klass)
+query_console_init (QueryConsole *tconsole, G_GNUC_UNUSED QueryConsoleClass *klass)
{
tconsole->priv = g_new0 (QueryConsolePrivate, 1);
tconsole->priv->parser = NULL;
@@ -235,7 +235,8 @@ query_console_get_type (void)
NULL,
sizeof (QueryConsole),
0,
- (GInstanceInitFunc) query_console_init
+ (GInstanceInitFunc) query_console_init,
+ 0
};
static GInterfaceInfo page_console = {
@@ -457,7 +458,7 @@ query_console_new (BrowserConnection *bcnc)
}
static void
-connection_busy_cb (BrowserConnection *bcnc, gboolean is_busy, gchar *reason, QueryConsole *tconsole)
+connection_busy_cb (G_GNUC_UNUSED BrowserConnection *bcnc, gboolean is_busy, G_GNUC_UNUSED gchar *reason, QueryConsole *tconsole)
{
gtk_widget_set_sensitive (tconsole->priv->exec_button, !is_busy);
gtk_widget_set_sensitive (tconsole->priv->indent_button, !is_busy);
@@ -470,7 +471,7 @@ connection_busy_cb (BrowserConnection *bcnc, gboolean is_busy, gchar *reason, Qu
}
static void
-history_changed_cb (QueryEditor *history, QueryConsole *tconsole)
+history_changed_cb (G_GNUC_UNUSED QueryEditor *history, QueryConsole *tconsole)
{
gboolean act = FALSE;
QueryEditor *qe;
@@ -494,13 +495,13 @@ history_changed_cb (QueryEditor *history, QueryConsole *tconsole)
}
static void
-history_clear_clicked_cb (GtkButton *button, QueryConsole *tconsole)
+history_clear_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsole *tconsole)
{
query_editor_del_all_history_items (tconsole->priv->history);
}
static void
-history_copy_clicked_cb (GtkButton *button, QueryConsole *tconsole)
+history_copy_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsole *tconsole)
{
QueryEditorHistoryItem *qih;
QueryEditor *qe;
@@ -596,7 +597,7 @@ compute_params (QueryConsole *tconsole)
}
static void
-editor_changed_cb (QueryEditor *editor, QueryConsole *tconsole)
+editor_changed_cb (G_GNUC_UNUSED QueryEditor *editor, QueryConsole *tconsole)
{
if (tconsole->priv->params_compute_id)
g_source_remove (tconsole->priv->params_compute_id);
@@ -604,7 +605,7 @@ editor_changed_cb (QueryEditor *editor, QueryConsole *tconsole)
}
static void
-editor_execute_request_cb (QueryEditor *editor, QueryConsole *tconsole)
+editor_execute_request_cb (G_GNUC_UNUSED QueryEditor *editor, QueryConsole *tconsole)
{
gboolean sensitive;
g_object_get (tconsole->priv->exec_button, "sensitive", &sensitive, NULL);
@@ -622,14 +623,14 @@ sql_variables_clicked_cb (GtkToggleButton *button, QueryConsole *tconsole)
}
static void
-sql_clear_clicked_cb (GtkButton *button, QueryConsole *tconsole)
+sql_clear_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsole *tconsole)
{
query_editor_set_text (tconsole->priv->editor, NULL);
gtk_widget_grab_focus (GTK_WIDGET (tconsole->priv->editor));
}
static void
-sql_indent_clicked_cb (GtkButton *button, QueryConsole *tconsole)
+sql_indent_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsole *tconsole)
{
gchar *sql;
GdaBatch *batch;
@@ -664,7 +665,7 @@ sql_indent_clicked_cb (GtkButton *button, QueryConsole *tconsole)
}
static void
-sql_favorite_clicked_cb (GtkButton *button, QueryConsole *tconsole)
+sql_favorite_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsole *tconsole)
{
BrowserFavorites *bfav;
BrowserFavoritesAttributes fav;
@@ -715,7 +716,8 @@ popup_container_position_func (PopupContainer *cont, gint *out_x, gint *out_y)
}
static void
-params_form_changed_cb (GdauiBasicForm *form, GdaHolder *param, gboolean is_user_modif, QueryConsole *tconsole)
+params_form_changed_cb (GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param,
+ G_GNUC_UNUSED gboolean is_user_modif, QueryConsole *tconsole)
{
/* if all params are valid => authorize the execute button */
GtkWidget *button;
@@ -728,7 +730,7 @@ params_form_changed_cb (GdauiBasicForm *form, GdaHolder *param, gboolean is_user
static gboolean query_exec_fetch_cb (QueryConsole *tconsole);
static void
-sql_execute_clicked_cb (GtkButton *button, QueryConsole *tconsole)
+sql_execute_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsole *tconsole)
{
gchar *sql;
const gchar *remain;
@@ -1004,14 +1006,14 @@ query_console_set_text (QueryConsole *console, const gchar *text)
* UI actions
*/
static void
-query_execute_cb (GtkAction *action, QueryConsole *tconsole)
+query_execute_cb (G_GNUC_UNUSED GtkAction *action, QueryConsole *tconsole)
{
sql_execute_clicked_cb (NULL, tconsole);
}
#ifdef HAVE_GTKSOURCEVIEW
static void
-editor_undo_cb (GtkAction *action, QueryConsole *tconsole)
+editor_undo_cb (G_GNUC_UNUSED GtkAction *action, G_GNUC_UNUSED QueryConsole *tconsole)
{
TO_IMPLEMENT;
}
@@ -1056,7 +1058,7 @@ query_console_page_get_actions_group (BrowserPage *page)
}
static const gchar *
-query_console_page_get_actions_ui (BrowserPage *page)
+query_console_page_get_actions_ui (G_GNUC_UNUSED BrowserPage *page)
{
return ui_actions_console;
}
diff --git a/tools/browser/query-exec/query-editor.c b/tools/browser/query-exec/query-editor.c
index 7f78e82..b8ab0c1 100644
--- a/tools/browser/query-exec/query-editor.c
+++ b/tools/browser/query-exec/query-editor.c
@@ -234,7 +234,7 @@ query_editor_class_init (QueryEditorClass *klass)
}
static void
-text_buffer_changed_cb (GtkTextBuffer *buffer, QueryEditor *editor)
+text_buffer_changed_cb (G_GNUC_UNUSED GtkTextBuffer *buffer, QueryEditor *editor)
{
if (editor->priv->mode != QUERY_EDITOR_HISTORY)
g_signal_emit (editor, query_editor_signals[CHANGED], 0);
@@ -314,8 +314,8 @@ get_string_to_complete (QueryEditor *editor, gchar **out_start_pos)
}
static void
-completion_row_activated_cb (GtkTreeView *treeview, GtkTreePath *path,
- GtkTreeViewColumn *column, QueryEditor *editor)
+completion_row_activated_cb (G_GNUC_UNUSED GtkTreeView *treeview, GtkTreePath *path,
+ G_GNUC_UNUSED GtkTreeViewColumn *column, QueryEditor *editor)
{
GtkTreeModel *model;
GtkTreeIter iter;
@@ -663,7 +663,7 @@ text_view_expose_event (GtkTextView *tv, GdkEventExpose *event, QueryEditor *edi
}
static void
-query_editor_init (QueryEditor *editor, QueryEditorClass *klass)
+query_editor_init (QueryEditor *editor, G_GNUC_UNUSED QueryEditorClass *klass)
{
int tab = 8;
gboolean highlight = TRUE;
@@ -809,7 +809,7 @@ query_editor_finalize (GObject *object)
/* free memory */
hist_data_free_all (editor);
if (editor->priv->states) {
- gint i;
+ gsize i;
for (i = 0; i < editor->priv->states->len; i++) {
gchar *str;
str = g_array_index (editor->priv->states, gchar*, i);
@@ -849,7 +849,8 @@ query_editor_get_type (void)
NULL,
sizeof (QueryEditor),
0,
- (GInstanceInitFunc) query_editor_init
+ (GInstanceInitFunc) query_editor_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "QueryEditor", &info, 0);
}
diff --git a/tools/browser/query-exec/query-exec-perspective.c b/tools/browser/query-exec/query-exec-perspective.c
index 8b315d8..d8d8388 100644
--- a/tools/browser/query-exec/query-exec-perspective.c
+++ b/tools/browser/query-exec/query-exec-perspective.c
@@ -78,7 +78,8 @@ query_exec_perspective_get_type (void)
NULL,
sizeof (QueryExecPerspective),
0,
- (GInstanceInitFunc) query_exec_perspective_init
+ (GInstanceInitFunc) query_exec_perspective_init,
+ 0
};
static GInterfaceInfo perspective_info = {
@@ -223,8 +224,9 @@ query_exec_perspective_new (BrowserWindow *bwin)
}
static void
-fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
- const gchar *selection, QueryExecPerspective *perspective)
+fav_selection_changed_cb (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED gint fav_id,
+ G_GNUC_UNUSED BrowserFavoritesType fav_type, const gchar *selection,
+ QueryExecPerspective *perspective)
{
GtkNotebook *nb;
GtkWidget *page;
@@ -243,7 +245,7 @@ fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType f
}
static void
-nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num,
QueryExecPerspective *perspective)
{
GtkWidget *page_contents;
@@ -263,7 +265,7 @@ nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
}
static void
-nb_page_removed_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
+nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, G_GNUC_UNUSED gint page_num,
QueryExecPerspective *perspective)
{
if (gtk_notebook_get_n_pages (nb) == 0) {
@@ -275,14 +277,14 @@ nb_page_removed_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
}
static void
-nb_page_added_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
- QueryExecPerspective *perspective)
+nb_page_added_cb (G_GNUC_UNUSED GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page,
+ G_GNUC_UNUSED gint page_num, QueryExecPerspective *perspective)
{
adapt_notebook_for_fullscreen (perspective);
}
static void
-close_button_clicked_cb (GtkWidget *wid, GtkWidget *page_widget)
+close_button_clicked_cb (G_GNUC_UNUSED GtkWidget *wid, GtkWidget *page_widget)
{
gtk_widget_destroy (page_widget);
}
@@ -299,7 +301,7 @@ adapt_notebook_for_fullscreen (QueryExecPerspective *perspective)
}
static void
-fullscreen_changed_cb (BrowserWindow *bwin, gboolean fullscreen, QueryExecPerspective *perspective)
+fullscreen_changed_cb (G_GNUC_UNUSED BrowserWindow *bwin, gboolean fullscreen, QueryExecPerspective *perspective)
{
perspective->priv->fullscreen = fullscreen;
adapt_notebook_for_fullscreen (perspective);
@@ -336,7 +338,7 @@ query_exec_perspective_dispose (GObject *object)
}
static void
-query_exec_add_cb (GtkAction *action, BrowserPerspective *bpers)
+query_exec_add_cb (G_GNUC_UNUSED GtkAction *action, BrowserPerspective *bpers)
{
GtkWidget *page, *tlabel, *button;
QueryExecPerspective *perspective;
@@ -433,7 +435,7 @@ query_exec_perspective_get_actions_group (BrowserPerspective *perspective)
}
static const gchar *
-query_exec_perspective_get_actions_ui (BrowserPerspective *perspective)
+query_exec_perspective_get_actions_ui (G_GNUC_UNUSED BrowserPerspective *perspective)
{
return ui_actions_info;
}
diff --git a/tools/browser/query-exec/query-favorite-selector.c b/tools/browser/query-exec/query-favorite-selector.c
index 6622a4d..62c3953 100644
--- a/tools/browser/query-exec/query-favorite-selector.c
+++ b/tools/browser/query-exec/query-favorite-selector.c
@@ -105,7 +105,7 @@ query_favorite_selector_class_init (QueryFavoriteSelectorClass *klass)
static void
-query_favorite_selector_init (QueryFavoriteSelector *tsel, QueryFavoriteSelectorClass *klass)
+query_favorite_selector_init (QueryFavoriteSelector *tsel, G_GNUC_UNUSED QueryFavoriteSelectorClass *klass)
{
tsel->priv = g_new0 (QueryFavoriteSelectorPrivate, 1);
tsel->priv->idle_update_favorites = 0;
@@ -159,7 +159,8 @@ query_favorite_selector_get_type (void)
NULL,
sizeof (QueryFavoriteSelector),
0,
- (GInstanceInitFunc) query_favorite_selector_init
+ (GInstanceInitFunc) query_favorite_selector_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "QueryFavoriteSelector",
&info, 0);
@@ -201,8 +202,8 @@ key_press_event_cb (GtkTreeView *treeview, GdkEventKey *event, QueryFavoriteSele
static void
-selection_changed_cb (GtkTreeView *treeview, GtkTreePath *path,
- GtkTreeViewColumn *column, QueryFavoriteSelector *tsel)
+selection_changed_cb (GtkTreeView *treeview, G_GNUC_UNUSED GtkTreePath *path,
+ G_GNUC_UNUSED GtkTreeViewColumn *column, QueryFavoriteSelector *tsel)
{
GtkTreeModel *model;
GtkTreeSelection *select;
@@ -251,7 +252,7 @@ prop_save_timeout (QueryFavoriteSelector *tsel)
}
static void
-property_changed_cb (GtkWidget *multiple, QueryFavoriteSelector *tsel)
+property_changed_cb (G_GNUC_UNUSED GtkWidget *multiple, QueryFavoriteSelector *tsel)
{
if (tsel->priv->prop_save_timeout)
g_source_remove (tsel->priv->prop_save_timeout);
@@ -349,7 +350,7 @@ properties_activated_cb (GtkMenuItem *mitem, QueryFavoriteSelector *tsel)
}
static void
-do_popup_menu (GtkWidget *widget, GdkEventButton *event, QueryFavoriteSelector *tsel)
+do_popup_menu (G_GNUC_UNUSED GtkWidget *widget, GdkEventButton *event, QueryFavoriteSelector *tsel)
{
int button, event_time;
@@ -523,8 +524,8 @@ query_favorite_selector_new (BrowserConnection *bcnc)
}
static void
-cell_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
- GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
+cell_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+ GtkTreeModel *tree_model, GtkTreeIter *iter, G_GNUC_UNUSED gpointer data)
{
gchar *name, *summary;
gchar *markup, *tmp1, *tmp2;
@@ -559,8 +560,8 @@ idle_update_favorites (QueryFavoriteSelector *tsel)
}
static gboolean
-tree_store_drag_drop_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionData *selection_data,
- QueryFavoriteSelector *tsel)
+tree_store_drag_drop_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ GtkSelectionData *selection_data, QueryFavoriteSelector *tsel)
{
BrowserFavorites *bfav;
BrowserFavoritesAttributes fav;
@@ -600,7 +601,8 @@ tree_store_drag_drop_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionD
}
static gboolean
-tree_store_drag_can_drag_cb (GdauiTreeStore *store, const gchar *path, QueryFavoriteSelector *tsel)
+tree_store_drag_can_drag_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ QueryFavoriteSelector *tsel)
{
GdaTreeNode *node;
node = gda_tree_get_node (tsel->priv->tree, path, FALSE);
@@ -614,7 +616,8 @@ tree_store_drag_can_drag_cb (GdauiTreeStore *store, const gchar *path, QueryFavo
}
static gboolean
-tree_store_drag_get_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionData *selection_data,
+tree_store_drag_get_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ GtkSelectionData *selection_data,
QueryFavoriteSelector *tsel)
{
GdaTreeNode *node;
@@ -634,7 +637,7 @@ tree_store_drag_get_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionDa
}
static void
-favorites_changed_cb (BrowserFavorites *bfav, QueryFavoriteSelector *tsel)
+favorites_changed_cb (G_GNUC_UNUSED BrowserFavorites *bfav, QueryFavoriteSelector *tsel)
{
if (! gda_tree_update_all (tsel->priv->tree, NULL)) {
if (tsel->priv->idle_update_favorites == 0)
diff --git a/tools/browser/query-exec/query-result.c b/tools/browser/query-exec/query-result.c
index 8f241e2..ee19c68 100644
--- a/tools/browser/query-exec/query-result.c
+++ b/tools/browser/query-exec/query-result.c
@@ -63,7 +63,7 @@ query_result_class_init (QueryResultClass *klass)
}
static void
-query_result_init (QueryResult *result, QueryResultClass *klass)
+query_result_init (QueryResult *result, G_GNUC_UNUSED QueryResultClass *klass)
{
GtkWidget *wid;
@@ -81,13 +81,14 @@ query_result_init (QueryResult *result, QueryResultClass *klass)
}
static void
-history_item_removed_cb (QueryEditor *history, QueryEditorHistoryItem *item, QueryResult *result)
+history_item_removed_cb (G_GNUC_UNUSED QueryEditor *history, QueryEditorHistoryItem *item,
+ QueryResult *result)
{
g_hash_table_remove (result->priv->hash, item);
}
static void
-history_cleared_cb (QueryEditor *history, QueryResult *result)
+history_cleared_cb (G_GNUC_UNUSED QueryEditor *history, QueryResult *result)
{
g_hash_table_remove_all (result->priv->hash);
}
@@ -135,7 +136,8 @@ query_result_get_type (void)
NULL,
sizeof (QueryResult),
0,
- (GInstanceInitFunc) query_result_init
+ (GInstanceInitFunc) query_result_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "QueryResult", &info, 0);
}
diff --git a/tools/browser/schema-browser/favorite-selector.c b/tools/browser/schema-browser/favorite-selector.c
index 2674033..13ceb86 100644
--- a/tools/browser/schema-browser/favorite-selector.c
+++ b/tools/browser/schema-browser/favorite-selector.c
@@ -92,7 +92,7 @@ favorite_selector_class_init (FavoriteSelectorClass *klass)
static void
-favorite_selector_init (FavoriteSelector *tsel, FavoriteSelectorClass *klass)
+favorite_selector_init (FavoriteSelector *tsel, G_GNUC_UNUSED FavoriteSelectorClass *klass)
{
tsel->priv = g_new0 (FavoriteSelectorPrivate, 1);
tsel->priv->idle_update_favorites = 0;
@@ -138,7 +138,8 @@ favorite_selector_get_type (void)
NULL,
sizeof (FavoriteSelector),
0,
- (GInstanceInitFunc) favorite_selector_init
+ (GInstanceInitFunc) favorite_selector_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "FavoriteSelector",
&info, 0);
@@ -180,8 +181,8 @@ key_press_event_cb (GtkTreeView *treeview, GdkEventKey *event, FavoriteSelector
static void
-selection_changed_cb (GtkTreeView *treeview, GtkTreePath *path,
- GtkTreeViewColumn *column, FavoriteSelector *tsel)
+selection_changed_cb (GtkTreeView *treeview, G_GNUC_UNUSED GtkTreePath *path,
+ G_GNUC_UNUSED GtkTreeViewColumn *column, FavoriteSelector *tsel)
{
GtkTreeModel *model;
GtkTreeSelection *select;
@@ -328,8 +329,8 @@ idle_update_favorites (FavoriteSelector *tsel)
}
static gboolean
-tree_store_drag_drop_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionData *selection_data,
- FavoriteSelector *tsel)
+tree_store_drag_drop_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ GtkSelectionData *selection_data, FavoriteSelector *tsel)
{
BrowserFavorites *bfav;
BrowserFavoritesAttributes fav;
@@ -360,7 +361,7 @@ tree_store_drag_drop_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionD
}
static gboolean
-tree_store_drag_can_drag_cb (GdauiTreeStore *store, const gchar *path, FavoriteSelector *tsel)
+tree_store_drag_can_drag_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path, FavoriteSelector *tsel)
{
GdaTreeNode *node;
node = gda_tree_get_node (tsel->priv->tree, path, FALSE);
@@ -374,8 +375,8 @@ tree_store_drag_can_drag_cb (GdauiTreeStore *store, const gchar *path, FavoriteS
}
static gboolean
-tree_store_drag_get_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionData *selection_data,
- FavoriteSelector *tsel)
+tree_store_drag_get_cb (G_GNUC_UNUSED GdauiTreeStore *store, const gchar *path,
+ GtkSelectionData *selection_data, FavoriteSelector *tsel)
{
GdaTreeNode *node;
node = gda_tree_get_node (tsel->priv->tree, path, FALSE);
@@ -395,7 +396,7 @@ tree_store_drag_get_cb (GdauiTreeStore *store, const gchar *path, GtkSelectionDa
}
static void
-favorites_changed_cb (BrowserFavorites *bfav, FavoriteSelector *tsel)
+favorites_changed_cb (G_GNUC_UNUSED BrowserFavorites *bfav, FavoriteSelector *tsel)
{
if (! gda_tree_update_all (tsel->priv->tree, NULL)) {
if (tsel->priv->idle_update_favorites == 0)
diff --git a/tools/browser/schema-browser/mgr-columns.c b/tools/browser/schema-browser/mgr-columns.c
index 3e8941e..3617868 100644
--- a/tools/browser/schema-browser/mgr-columns.c
+++ b/tools/browser/schema-browser/mgr-columns.c
@@ -82,7 +82,7 @@ mgr_columns_class_init (MgrColumnsClass *klass)
}
static void
-mgr_columns_init (MgrColumns *mgr, MgrColumnsClass *klass)
+mgr_columns_init (MgrColumns *mgr, G_GNUC_UNUSED MgrColumnsClass *klass)
{
mgr->priv = g_new0 (MgrColumnsPriv, 1);
}
@@ -136,7 +136,8 @@ mgr_columns_get_type (void)
NULL,
sizeof (MgrColumns),
0,
- (GInstanceInitFunc) mgr_columns_init
+ (GInstanceInitFunc) mgr_columns_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -151,7 +152,7 @@ static void
mgr_columns_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
MgrColumns *mgr;
@@ -172,7 +173,7 @@ static void
mgr_columns_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GParamSpec *pspec)
{
MgrColumns *mgr;
diff --git a/tools/browser/schema-browser/objects-index.c b/tools/browser/schema-browser/objects-index.c
index 553d72a..817d824 100644
--- a/tools/browser/schema-browser/objects-index.c
+++ b/tools/browser/schema-browser/objects-index.c
@@ -83,7 +83,7 @@ objects_index_class_init (ObjectsIndexClass *klass)
static void
-objects_index_init (ObjectsIndex *index, ObjectsIndexClass *klass)
+objects_index_init (ObjectsIndex *index, G_GNUC_UNUSED ObjectsIndexClass *klass)
{
index->priv = g_new0 (ObjectsIndexPrivate, 1);
}
@@ -123,7 +123,8 @@ objects_index_get_type (void)
NULL,
sizeof (ObjectsIndex),
0,
- (GInstanceInitFunc) objects_index_init
+ (GInstanceInitFunc) objects_index_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "ObjectsIndex",
&info, 0);
@@ -132,7 +133,7 @@ objects_index_get_type (void)
}
static void
-cloud_object_selected_cb (ObjectsCloud *sel, ObjectsCloudObjType sel_type,
+cloud_object_selected_cb (G_GNUC_UNUSED ObjectsCloud *sel, G_GNUC_UNUSED ObjectsCloudObjType sel_type,
const gchar *sel_contents, ObjectsIndex *index)
{
/* FIXME: adjust with sel->priv->type */
@@ -206,7 +207,7 @@ objects_index_new (BrowserConnection *bcnc)
}
static void
-meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, ObjectsIndex *index)
+meta_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, GdaMetaStruct *mstruct, ObjectsIndex *index)
{
objects_cloud_set_meta_struct (index->priv->cloud, mstruct);
}
diff --git a/tools/browser/schema-browser/relations-diagram.c b/tools/browser/schema-browser/relations-diagram.c
index f67520e..33e8d28 100644
--- a/tools/browser/schema-browser/relations-diagram.c
+++ b/tools/browser/schema-browser/relations-diagram.c
@@ -103,7 +103,7 @@ relations_diagram_page_init (BrowserPageIface *iface)
}
static void
-relations_diagram_init (RelationsDiagram *diagram, RelationsDiagramClass *klass)
+relations_diagram_init (RelationsDiagram *diagram, G_GNUC_UNUSED RelationsDiagramClass *klass)
{
diagram->priv = g_new0 (RelationsDiagramPrivate, 1);
diagram->priv->fav_id = -1;
@@ -150,7 +150,8 @@ relations_diagram_get_type (void)
NULL,
sizeof (RelationsDiagram),
0,
- (GInstanceInitFunc) relations_diagram_init
+ (GInstanceInitFunc) relations_diagram_init,
+ 0
};
static GInterfaceInfo page_info = {
(GInterfaceInitFunc) relations_diagram_page_init,
@@ -167,8 +168,8 @@ relations_diagram_get_type (void)
static void
relations_diagram_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
RelationsDiagram *diagram;
diagram = RELATIONS_DIAGRAM (object);
@@ -179,8 +180,8 @@ relations_diagram_set_property (GObject *object,
static void
relations_diagram_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
RelationsDiagram *diagram;
diagram = RELATIONS_DIAGRAM (object);
@@ -189,13 +190,13 @@ relations_diagram_get_property (GObject *object,
}
static void
-meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, RelationsDiagram *diagram)
+meta_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, GdaMetaStruct *mstruct, RelationsDiagram *diagram)
{
g_object_set (G_OBJECT (diagram->priv->canvas), "meta-struct", mstruct, NULL);
}
static void
-favorites_changed_cb (BrowserConnection *bcnc, RelationsDiagram *diagram)
+favorites_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, RelationsDiagram *diagram)
{
if (diagram->priv->fav_id >= 0)
relations_diagram_set_fav_id (diagram, diagram->priv->fav_id, NULL);
@@ -491,7 +492,7 @@ relations_diagram_get_fav_id (RelationsDiagram *diagram)
}
static void
-action_view_contents_cb (GtkAction *action, RelationsDiagram *diagram)
+action_view_contents_cb (G_GNUC_UNUSED GtkAction *action, RelationsDiagram *diagram)
{
gchar *str;
str = browser_canvas_db_relations_items_to_data_manager (BROWSER_CANVAS_DB_RELATIONS (diagram->priv->canvas));
@@ -534,7 +535,7 @@ relations_diagram_page_get_actions_group (BrowserPage *page)
}
static const gchar *
-relations_diagram_page_get_actions_ui (BrowserPage *page)
+relations_diagram_page_get_actions_ui (G_GNUC_UNUSED BrowserPage *page)
{
return ui_actions_info;
}
diff --git a/tools/browser/schema-browser/schema-browser-perspective.c b/tools/browser/schema-browser/schema-browser-perspective.c
index 6f6eb34..62e4ccb 100644
--- a/tools/browser/schema-browser/schema-browser-perspective.c
+++ b/tools/browser/schema-browser/schema-browser-perspective.c
@@ -72,7 +72,8 @@ schema_browser_perspective_get_type (void)
NULL,
sizeof (SchemaBrowserPerspective),
0,
- (GInstanceInitFunc) schema_browser_perspective_init
+ (GInstanceInitFunc) schema_browser_perspective_init,
+ 0
};
static GInterfaceInfo perspective_info = {
@@ -181,7 +182,7 @@ schema_browser_perspective_new (BrowserWindow *bwin)
}
static void
-nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num,
SchemaBrowserPerspective *perspective)
{
GtkWidget *page_contents;
@@ -201,7 +202,7 @@ nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
}
static void
-close_button_clicked_cb (GtkWidget *wid, GtkWidget *page_widget)
+close_button_clicked_cb (G_GNUC_UNUSED GtkWidget *wid, GtkWidget *page_widget)
{
gtk_widget_destroy (page_widget);
}
@@ -215,7 +216,7 @@ objects_index_selection_changed_cb (GtkWidget *widget, BrowserFavoritesType fav_
static void
-fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
+fav_selection_changed_cb (G_GNUC_UNUSED GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
const gchar *selection, SchemaBrowserPerspective *bpers)
{
if (fav_type == BROWSER_FAVORITES_TABLES) {
@@ -294,7 +295,7 @@ schema_browser_perspective_dispose (GObject *object)
#ifdef HAVE_GOOCANVAS
static void
-action_create_diagram_cb (GtkAction *action, SchemaBrowserPerspective *bpers)
+action_create_diagram_cb (G_GNUC_UNUSED GtkAction *action, SchemaBrowserPerspective *bpers)
{
schema_browser_perspective_display_diagram (bpers, -1);
}
@@ -356,7 +357,7 @@ schema_browser_perspective_get_actions_group (BrowserPerspective *bpers)
}
static const gchar *
-schema_browser_perspective_get_actions_ui (BrowserPerspective *bpers)
+schema_browser_perspective_get_actions_ui (G_GNUC_UNUSED BrowserPerspective *bpers)
{
return ui_actions_info;
}
@@ -454,7 +455,7 @@ void
schema_browser_perspective_display_table_info (SchemaBrowserPerspective *bpers,
const gchar *table_schema,
const gchar *table_name,
- const gchar *table_short_name)
+ G_GNUC_UNUSED const gchar *table_short_name)
{
g_return_if_fail (IS_SCHEMA_BROWSER_PERSPECTIVE (bpers));
diff --git a/tools/browser/schema-browser/table-columns.c b/tools/browser/schema-browser/table-columns.c
index b0acfc2..c8ff5aa 100644
--- a/tools/browser/schema-browser/table-columns.c
+++ b/tools/browser/schema-browser/table-columns.c
@@ -68,7 +68,7 @@ table_columns_class_init (TableColumnsClass *klass)
static void
-table_columns_init (TableColumns *tcolumns, TableColumnsClass *klass)
+table_columns_init (TableColumns *tcolumns, G_GNUC_UNUSED TableColumnsClass *klass)
{
tcolumns->priv = g_new0 (TableColumnsPrivate, 1);
tcolumns->priv->idle_update_columns = 0;
@@ -113,7 +113,8 @@ table_columns_get_type (void)
NULL,
sizeof (TableColumns),
0,
- (GInstanceInitFunc) table_columns_init
+ (GInstanceInitFunc) table_columns_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "TableColumns", &columns, 0);
}
@@ -147,7 +148,7 @@ static gboolean motion_notify_event (GtkWidget *text_view, GdkEventMotion *event
static gboolean visibility_notify_event (GtkWidget *text_view, GdkEventVisibility *event, TableColumns *tcolumns);
static void
-meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableColumns *tcolumns)
+meta_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableColumns *tcolumns)
{
GtkTextBuffer *tbuffer;
GtkTextIter start, end;
@@ -606,7 +607,8 @@ set_cursor_if_appropriate (GtkTextView *text_view, gint x, gint y, TableColumns
* (e.g. when a window covering it got iconified).
*/
static gboolean
-visibility_notify_event (GtkWidget *text_view, GdkEventVisibility *event, TableColumns *tcolumns)
+visibility_notify_event (GtkWidget *text_view, G_GNUC_UNUSED GdkEventVisibility *event,
+ TableColumns *tcolumns)
{
gint wx, wy, bx, by;
@@ -645,7 +647,7 @@ motion_notify_event (GtkWidget *text_view, GdkEventMotion *event, TableColumns *
* by the data attached to it.
*/
static void
-follow_if_link (GtkWidget *text_view, GtkTextIter *iter, TableColumns *tcolumns)
+follow_if_link (G_GNUC_UNUSED GtkWidget *text_view, GtkTextIter *iter, TableColumns *tcolumns)
{
GSList *tags = NULL, *tagp = NULL;
diff --git a/tools/browser/schema-browser/table-info.c b/tools/browser/schema-browser/table-info.c
index eb0e438..98df90c 100644
--- a/tools/browser/schema-browser/table-info.c
+++ b/tools/browser/schema-browser/table-info.c
@@ -112,7 +112,7 @@ table_info_page_init (BrowserPageIface *iface)
}
static void
-table_info_init (TableInfo *tinfo, TableInfoClass *klass)
+table_info_init (TableInfo *tinfo, G_GNUC_UNUSED TableInfoClass *klass)
{
tinfo->priv = g_new0 (TableInfoPrivate, 1);
}
@@ -159,7 +159,8 @@ table_info_get_type (void)
NULL,
sizeof (TableInfo),
0,
- (GInstanceInitFunc) table_info_init
+ (GInstanceInitFunc) table_info_init,
+ 0
};
static GInterfaceInfo page_info = {
@@ -177,8 +178,8 @@ table_info_get_type (void)
static void
table_info_set_property (GObject *object,
guint param_id,
- const GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED const GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
TableInfo *tinfo;
tinfo = TABLE_INFO (object);
@@ -189,8 +190,8 @@ table_info_set_property (GObject *object,
static void
table_info_get_property (GObject *object,
guint param_id,
- GValue *value,
- GParamSpec *pspec)
+ G_GNUC_UNUSED GValue *value,
+ G_GNUC_UNUSED GParamSpec *pspec)
{
TableInfo *tinfo;
tinfo = TABLE_INFO (object);
@@ -226,9 +227,9 @@ table_info_to_selection (TableInfo *tinfo)
}
static void
-source_drag_data_get_cb (GtkWidget *widget, GdkDragContext *context,
+source_drag_data_get_cb (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED GdkDragContext *context,
GtkSelectionData *selection_data,
- guint info, guint time, TableInfo *tinfo)
+ guint info, G_GNUC_UNUSED guint time, TableInfo *tinfo)
{
switch (info) {
case TARGET_KEY_VALUE: {
@@ -255,7 +256,7 @@ source_drag_data_get_cb (GtkWidget *widget, GdkDragContext *context,
}
static void
-meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableInfo *tinfo)
+meta_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableInfo *tinfo)
{
GdaMetaDbObject *dbo;
GValue *schema_v = NULL, *name_v;
@@ -444,7 +445,7 @@ table_info_get_connection (TableInfo *tinfo)
* UI actions
*/
static void
-action_add_to_fav_cb (GtkAction *action, TableInfo *tinfo)
+action_add_to_fav_cb (G_GNUC_UNUSED GtkAction *action, TableInfo *tinfo)
{
BrowserFavorites *bfav;
BrowserFavoritesAttributes fav;
@@ -469,7 +470,7 @@ action_add_to_fav_cb (GtkAction *action, TableInfo *tinfo)
}
static void
-action_view_contents_cb (GtkAction *action, TableInfo *tinfo)
+action_view_contents_cb (G_GNUC_UNUSED GtkAction *action, TableInfo *tinfo)
{
if (! tinfo->priv->table_short_name)
return;
@@ -496,18 +497,18 @@ action_view_contents_cb (GtkAction *action, TableInfo *tinfo)
}
static void
-insert_form_params_changed_cb (GdauiBasicForm *form, GdaHolder *param,
- gboolean is_user_modif, GtkWidget *popup)
+insert_form_params_changed_cb (GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param,
+ G_GNUC_UNUSED gboolean is_user_modif, GtkWidget *popup)
{
/* if all params are valid => authorize the execute button */
gtk_dialog_set_response_sensitive (GTK_DIALOG (popup), GTK_RESPONSE_ACCEPT,
gdaui_basic_form_is_valid (form));
}
-static void statement_executed_cb (BrowserConnection *bcnc,
- guint exec_id,
- GObject *out_result,
- GdaSet *out_last_inserted_row, GError *error,
+static void statement_executed_cb (G_GNUC_UNUSED BrowserConnection *bcnc,
+ G_GNUC_UNUSED guint exec_id,
+ G_GNUC_UNUSED GObject *out_result,
+ G_GNUC_UNUSED GdaSet *out_last_inserted_row, GError *error,
TableInfo *tinfo)
{
if (error)
@@ -567,10 +568,10 @@ typedef struct {
} FKBindData;
static void
-fk_bind_select_executed_cb (BrowserConnection *bcnc,
- guint exec_id,
+fk_bind_select_executed_cb (G_GNUC_UNUSED BrowserConnection *bcnc,
+ G_GNUC_UNUSED guint exec_id,
GObject *out_result,
- GdaSet *out_last_inserted_row, GError *error,
+ G_GNUC_UNUSED GdaSet *out_last_inserted_row, G_GNUC_UNUSED GError *error,
FKBindData *fkdata)
{
gint i;
@@ -627,7 +628,7 @@ fkdata_list_free (GSList *fkdata_list)
}
static void
-action_insert_cb (GtkAction *action, TableInfo *tinfo)
+action_insert_cb (G_GNUC_UNUSED GtkAction *action, TableInfo *tinfo)
{
/* init */
if (! tinfo->priv->table_short_name)
@@ -965,7 +966,7 @@ table_info_page_get_actions_group (BrowserPage *page)
}
static const gchar *
-table_info_page_get_actions_ui (BrowserPage *page)
+table_info_page_get_actions_ui (G_GNUC_UNUSED BrowserPage *page)
{
return ui_actions_info;
}
diff --git a/tools/browser/schema-browser/table-preferences.c b/tools/browser/schema-browser/table-preferences.c
index 6dcdca5..f284b6a 100644
--- a/tools/browser/schema-browser/table-preferences.c
+++ b/tools/browser/schema-browser/table-preferences.c
@@ -92,7 +92,7 @@ table_preferences_class_init (TablePreferencesClass *klass)
static void
-table_preferences_init (TablePreferences *tpreferences, TablePreferencesClass *klass)
+table_preferences_init (TablePreferences *tpreferences, G_GNUC_UNUSED TablePreferencesClass *klass)
{
tpreferences->priv = g_new0 (TablePreferencesPrivate, 1);
}
@@ -138,7 +138,8 @@ table_preferences_get_type (void)
NULL,
sizeof (TablePreferences),
0,
- (GInstanceInitFunc) table_preferences_init
+ (GInstanceInitFunc) table_preferences_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "TablePreferences", &preferences, 0);
}
@@ -154,7 +155,7 @@ enum
};
static void
-meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TablePreferences *tpref)
+meta_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, GdaMetaStruct *mstruct, TablePreferences *tpref)
{
gtk_list_store_clear (tpref->priv->columns_store);
@@ -211,7 +212,7 @@ meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TablePreferenc
}
static void
-table_column_pref_changed_cb (BrowserConnection *bcnc, GdaMetaTable *table,
+table_column_pref_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, G_GNUC_UNUSED GdaMetaTable *table,
GdaMetaTableColumn *column,
const gchar *attr_name, const gchar *value, TablePreferences *tpref)
{
@@ -237,11 +238,11 @@ table_column_pref_changed_cb (BrowserConnection *bcnc, GdaMetaTable *table,
}
static void
-cell_name_data_func (GtkTreeViewColumn *tree_column,
+cell_name_data_func (G_GNUC_UNUSED GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
GtkTreeIter *iter,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
gchar *plugin;
GdaMetaTableColumn *column;
@@ -288,8 +289,8 @@ selection_changed_cb (GtkTreeSelection *select, TablePreferences *tpref)
}
static void
-columns_model_row_changed_cb (GtkTreeModel *tree_model, GtkTreePath *path, GtkTreeIter *iter,
- TablePreferences *tpref)
+columns_model_row_changed_cb (G_GNUC_UNUSED GtkTreeModel *tree_model, G_GNUC_UNUSED GtkTreePath *path,
+ G_GNUC_UNUSED GtkTreeIter *iter, TablePreferences *tpref)
{
tpref->priv->save_plugin_changes = FALSE;
plugins_combo_changed_cb (GTK_COMBO_BOX (tpref->priv->plugins_combo), tpref);
@@ -493,7 +494,7 @@ create_column_properties (TablePreferences *tpref)
}
static void
-plugin_hash_foreach_func (const gchar *plugin_name, GdauiPlugin *plugin, ForeachData *fdata)
+plugin_hash_foreach_func (G_GNUC_UNUSED const gchar *plugin_name, GdauiPlugin *plugin, ForeachData *fdata)
{
gboolean add_it = FALSE;
if ((plugin->nb_g_types == 0) || (!plugin->plugin_file && !plugin->options_xml_spec))
@@ -502,7 +503,7 @@ plugin_hash_foreach_func (const gchar *plugin_name, GdauiPlugin *plugin, Foreach
if (! fdata->type)
add_it = TRUE;
else {
- gint i;
+ gsize i;
for (i = 0; i < plugin->nb_g_types; i++) {
if (fdata->type == plugin->valid_g_types[i]) {
add_it = TRUE;
@@ -711,8 +712,8 @@ plugins_combo_changed_cb (GtkComboBox *combo, TablePreferences *tpref)
}
static void
-options_form_param_changed_cb (GdauiBasicForm *form, GdaHolder *param, gboolean is_user_modif,
- TablePreferences *tpref)
+options_form_param_changed_cb (G_GNUC_UNUSED GdauiBasicForm *form, G_GNUC_UNUSED GdaHolder *param,
+ G_GNUC_UNUSED gboolean is_user_modif, TablePreferences *tpref)
{
GtkTreeIter iter;
diff --git a/tools/browser/schema-browser/table-relations.c b/tools/browser/schema-browser/table-relations.c
index 0a148ff..f135e80 100644
--- a/tools/browser/schema-browser/table-relations.c
+++ b/tools/browser/schema-browser/table-relations.c
@@ -65,7 +65,7 @@ table_relations_class_init (TableRelationsClass *klass)
static void
-table_relations_init (TableRelations *trels, TableRelationsClass *klass)
+table_relations_init (TableRelations *trels, G_GNUC_UNUSED TableRelationsClass *klass)
{
trels->priv = g_new0 (TableRelationsPrivate, 1);
trels->priv->all_schemas = FALSE;
@@ -105,7 +105,8 @@ table_relations_get_type (void)
NULL,
sizeof (TableRelations),
0,
- (GInstanceInitFunc) table_relations_init
+ (GInstanceInitFunc) table_relations_init,
+ 0
};
type = g_type_register_static (GTK_TYPE_VBOX, "TableRelations", &relations, 0);
}
@@ -113,7 +114,7 @@ table_relations_get_type (void)
}
static void
-meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableRelations *trels)
+meta_changed_cb (G_GNUC_UNUSED BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableRelations *trels)
{
GdaMetaDbObject *dbo;
GValue *tname, *tschema;
diff --git a/tools/browser/support.c b/tools/browser/support.c
index ddc7fea..d68e5c6 100644
--- a/tools/browser/support.c
+++ b/tools/browser/support.c
@@ -417,7 +417,7 @@ browser_get_connections_list (void)
}
static void
-connection_added_cb (BrowserCore *bcore, BrowserConnection *bcnc, GdaDataModel *model)
+connection_added_cb (G_GNUC_UNUSED BrowserCore *bcore, BrowserConnection *bcnc, GdaDataModel *model)
{
GList *values;
GValue *value;
@@ -434,7 +434,7 @@ connection_added_cb (BrowserCore *bcore, BrowserConnection *bcnc, GdaDataModel *
}
static void
-connection_removed_cb (BrowserCore *bcore, BrowserConnection *bcnc, GdaDataModel *model)
+connection_removed_cb (G_GNUC_UNUSED BrowserCore *bcore, BrowserConnection *bcnc, GdaDataModel *model)
{
gint i, nrows;
nrows = gda_data_model_get_n_rows (model);
diff --git a/tools/command-exec.c b/tools/command-exec.c
index ee9ee46..018bf39 100644
--- a/tools/command-exec.c
+++ b/tools/command-exec.c
@@ -251,8 +251,8 @@ default_gda_internal_commandargs_func (const gchar *string)
}
GdaInternalCommandResult *
-gda_internal_command_help (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error,
+gda_internal_command_help (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED const gchar **args, G_GNUC_UNUSED GError **error,
GdaInternalCommandsList *clist)
{
GdaInternalCommandResult *res;
@@ -296,7 +296,8 @@ gda_internal_command_help (SqlConsole *console, GdaConnection *cnc, const gchar
}
GdaInternalCommandResult *
-gda_internal_command_history (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+gda_internal_command_history (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
@@ -341,7 +342,8 @@ gda_internal_command_history (SqlConsole *console, GdaConnection *cnc, const gch
}
GdaInternalCommandResult *
-gda_internal_command_dict_sync (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+gda_internal_command_dict_sync (G_GNUC_UNUSED SqlConsole *console, GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
@@ -376,7 +378,8 @@ gda_internal_command_dict_sync (SqlConsole *console, GdaConnection *cnc, const g
}
GdaInternalCommandResult *
-gda_internal_command_list_tables (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+gda_internal_command_list_tables (G_GNUC_UNUSED SqlConsole *console, GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
GdaDataModel *model;
@@ -419,7 +422,8 @@ gda_internal_command_list_tables (SqlConsole *console, GdaConnection *cnc, const
}
GdaInternalCommandResult *
-gda_internal_command_list_views (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+gda_internal_command_list_views (G_GNUC_UNUSED SqlConsole *console, GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
GdaDataModel *model;
@@ -461,7 +465,8 @@ gda_internal_command_list_views (SqlConsole *console, GdaConnection *cnc, const
}
GdaInternalCommandResult *
-gda_internal_command_list_schemas (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+gda_internal_command_list_schemas (G_GNUC_UNUSED SqlConsole *console, GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
GdaDataModel *model;
@@ -593,8 +598,8 @@ meta_table_column_foreach_attribute_func (const gchar *att_name, const GValue *v
}
GdaInternalCommandResult *
-gda_internal_command_detail (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+gda_internal_command_detail (G_GNUC_UNUSED SqlConsole *console, GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
GdaDataModel *model;
diff --git a/tools/dict-file-name.c b/tools/dict-file-name.c
index 2364555..1bb968c 100644
--- a/tools/dict-file-name.c
+++ b/tools/dict-file-name.c
@@ -22,7 +22,7 @@
/* must be included AS-IS in .c file */
static void
-compute_dict_file_name_foreach_cb (const gchar *key, const gchar *value, GSList **list)
+compute_dict_file_name_foreach_cb (const gchar *key, G_GNUC_UNUSED const gchar *value, GSList **list)
{
if (!*list)
*list = g_slist_prepend (NULL, (gpointer) key);
diff --git a/tools/gda-list-config.c b/tools/gda-list-config.c
index aeeff42..183bb63 100644
--- a/tools/gda-list-config.c
+++ b/tools/gda-list-config.c
@@ -4,7 +4,7 @@
#include <glib/gi18n-lib.h>
gint
-main (int argc, char **argv) {
+main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv) {
GdaDataModel *model;
gda_init ();
diff --git a/tools/gda-list-server-op.c b/tools/gda-list-server-op.c
index 9feef40..63910c2 100644
--- a/tools/gda-list-server-op.c
+++ b/tools/gda-list-server-op.c
@@ -15,7 +15,7 @@ static GOptionEntry entries[] = {
{ "provider", 'p', 0, G_OPTION_ARG_STRING, &prov, "Provider name", "provider"},
{ "op", 'o', 0, G_OPTION_ARG_STRING, &op, "Operation", "operation name"},
{ "list-ops", 'l', 0, G_OPTION_ARG_NONE, &list_ops, "List existing operations", NULL },
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
static xmlDocPtr merge_specs (const gchar *xml_dir, GdaServerOperationType type, gboolean *op_supported, GError **error);
diff --git a/tools/gda-sql.c b/tools/gda-sql.c
index 0817ab0..3faa058 100644
--- a/tools/gda-sql.c
+++ b/tools/gda-sql.c
@@ -89,7 +89,7 @@ static GOptionEntry entries[] = {
{ "http-port", 's', 0, G_OPTION_ARG_INT, &http_port, "Run embedded HTTP server on specified port", "port" },
{ "http-token", 't', 0, G_OPTION_ARG_STRING, &auth_token, "Authentication token (required to authenticate clients)", "token phrase" },
#endif
- { NULL }
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
};
/* interruption handling */
@@ -123,7 +123,7 @@ typedef struct {
WebServer *server;
#endif
} MainData;
-MainData *main_data;
+ MainData *main_data;
GString *prompt = NULL;
GMainLoop *main_loop = NULL;
@@ -825,7 +825,7 @@ find_command (GdaInternalCommandsList *commands_list, const gchar *command_str,
{
GdaInternalCommand *command = NULL;
GSList *list;
- gint length;
+ gsize length;
if (!command_str || ((*command_str != '\\') && (*command_str != '.')))
return NULL;
@@ -834,7 +834,7 @@ find_command (GdaInternalCommandsList *commands_list, const gchar *command_str,
for (list = commands_list->name_ordered; list; list = list->next) {
command = (GdaInternalCommand*) list->data;
if (!strncmp (command->name, command_str + 1, MIN (length, strlen (command->name)))) {
- gint l;
+ gsize l;
gchar *ptr;
for (ptr = command->name, l = 0; *ptr && (*ptr != ' '); ptr++, l++);
@@ -1602,7 +1602,7 @@ thread_start_update_meta_store (MetaUpdateData *data)
}
static void
-thread_ok_cb_update_meta_store (GdaThreader *threader, guint job, MetaUpdateData *data)
+thread_ok_cb_update_meta_store (G_GNUC_UNUSED GdaThreader *threader, G_GNUC_UNUSED guint job, MetaUpdateData *data)
{
data->cs->meta_job_id = 0;
if (data->cannot_lock) {
@@ -1631,7 +1631,8 @@ thread_ok_cb_update_meta_store (GdaThreader *threader, guint job, MetaUpdateData
}
static void
-thread_cancelled_cb_update_meta_store (GdaThreader *threader, guint job, MetaUpdateData *data)
+thread_cancelled_cb_update_meta_store (G_GNUC_UNUSED GdaThreader *threader, G_GNUC_UNUSED guint job,
+ MetaUpdateData *data)
{
data->cs->meta_job_id = 0;
if (data->error)
@@ -2458,8 +2459,8 @@ build_internal_commands_list (void)
}
static GdaInternalCommandResult *
-extra_command_set_output (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_set_output (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
if (console) {
GdaInternalCommandResult *res;
@@ -2481,8 +2482,8 @@ extra_command_set_output (SqlConsole *console, GdaConnection *cnc, const gchar *
}
static GdaInternalCommandResult *
-extra_command_set_output_format (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_set_output_format (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
const gchar *format = NULL;
@@ -2545,7 +2546,7 @@ extra_command_set_output_format (SqlConsole *console, GdaConnection *cnc, const
}
static gboolean
-idle_read_input_stream (gpointer data)
+idle_read_input_stream (G_GNUC_UNUSED gpointer data)
{
if (main_data->input_stream) {
gchar *cmde;
@@ -2572,8 +2573,8 @@ idle_read_input_stream (gpointer data)
}
static GdaInternalCommandResult *
-extra_command_set_input (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_set_input (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
if (console) {
GdaInternalCommandResult *res;
@@ -2598,8 +2599,8 @@ extra_command_set_input (SqlConsole *console, GdaConnection *cnc, const gchar **
}
static GdaInternalCommandResult *
-extra_command_echo (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_echo (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
@@ -2612,8 +2613,8 @@ extra_command_echo (SqlConsole *console, GdaConnection *cnc, const gchar **args,
}
static GdaInternalCommandResult *
-extra_command_qecho (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_qecho (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
@@ -2633,7 +2634,8 @@ extra_command_qecho (SqlConsole *console, GdaConnection *cnc, const gchar **args
}
static GdaInternalCommandResult *
-extra_command_list_dsn (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_list_dsn (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
GdaDataModel *dsn_list, *model = NULL;
@@ -2742,7 +2744,8 @@ extra_command_list_dsn (SqlConsole *console, GdaConnection *cnc, const gchar **a
}
static GdaInternalCommandResult *
-extra_command_create_dsn (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_create_dsn (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
GdaDsnInfo newdsn;
@@ -2787,7 +2790,8 @@ extra_command_create_dsn (SqlConsole *console, GdaConnection *cnc, const gchar *
}
static GdaInternalCommandResult *
-extra_command_remove_dsn (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_remove_dsn (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
gint i;
@@ -2808,7 +2812,8 @@ extra_command_remove_dsn (SqlConsole *console, GdaConnection *cnc, const gchar *
}
static GdaInternalCommandResult *
-extra_command_list_providers (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_list_providers (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
GdaDataModel *prov_list, *model = NULL;
@@ -2911,7 +2916,7 @@ extra_command_list_providers (SqlConsole *console, GdaConnection *cnc, const gch
}
static void
-vconnection_hub_foreach_cb (GdaConnection *cnc, const gchar *ns, GString *string)
+vconnection_hub_foreach_cb (G_GNUC_UNUSED GdaConnection *cnc, const gchar *ns, GString *string)
{
if (string->len > 0)
g_string_append_c (string, '\n');
@@ -2920,7 +2925,8 @@ vconnection_hub_foreach_cb (GdaConnection *cnc, const gchar *ns, GString *string
static
GdaInternalCommandResult *
-extra_command_manage_cnc (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_manage_cnc (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
/* arguments:
* 0 = connection name
@@ -3148,14 +3154,15 @@ extra_command_manage_cnc (SqlConsole *console, GdaConnection *cnc, const gchar *
}
static void
-conn_closed_cb (GdaConnection *cnc, ConnectionSetting *cs)
+conn_closed_cb (GdaConnection *cnc, G_GNUC_UNUSED ConnectionSetting *cs)
{
extra_command_close_cnc (NULL, cnc, NULL, NULL, NULL);
}
static
GdaInternalCommandResult *
-extra_command_close_cnc (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_close_cnc (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error,
+ G_GNUC_UNUSED gpointer data)
{
ConnectionSetting *cs = NULL;
if (args && args[0] && *args[0]) {
@@ -3208,7 +3215,8 @@ extra_command_close_cnc (SqlConsole *console, GdaConnection *cnc, const gchar **
}
static GdaInternalCommandResult *
-extra_command_bind_cnc (SqlConsole *console, GdaConnection *cnc, const gchar **args, GError **error, gpointer data)
+extra_command_bind_cnc (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
ConnectionSetting *cs = NULL;
gint i, nargs = g_strv_length ((gchar **) args);
@@ -3289,8 +3297,9 @@ extra_command_bind_cnc (SqlConsole *console, GdaConnection *cnc, const gchar **a
}
static GdaInternalCommandResult *
-extra_command_copyright (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_copyright (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED const gchar **args, G_GNUC_UNUSED GError **error,
+ G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
@@ -3308,8 +3317,8 @@ extra_command_copyright (SqlConsole *console, GdaConnection *cnc, const gchar **
}
static GdaInternalCommandResult *
-extra_command_quit (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_quit (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, G_GNUC_UNUSED const gchar **args,
+ G_GNUC_UNUSED GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res;
@@ -3328,8 +3337,8 @@ extra_command_quit (SqlConsole *console, GdaConnection *cnc, const gchar **args,
}
static GdaInternalCommandResult *
-extra_command_cd (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_cd (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
const gchar *dir = NULL;
#define DIR_LENGTH 256
@@ -3348,7 +3357,7 @@ extra_command_cd (SqlConsole *console, GdaConnection *cnc, const gchar **args,
if (!init_done) {
init_done = TRUE;
memset (start_dir, 0, DIR_LENGTH);
- if (getcwd (start_dir, DIR_LENGTH) <= 0) {
+ if (getcwd (start_dir, DIR_LENGTH) != NULL) {
/* default to $HOME */
#ifdef G_OS_WIN32
TO_IMPLEMENT;
@@ -3362,7 +3371,7 @@ extra_command_cd (SqlConsole *console, GdaConnection *cnc, const gchar **args,
return NULL;
}
else {
- gint l = strlen (pw->pw_dir);
+ gsize l = strlen (pw->pw_dir);
if (l > DIR_LENGTH - 1)
strncpy (start_dir, "/", 2);
else
@@ -3396,8 +3405,8 @@ extra_command_cd (SqlConsole *console, GdaConnection *cnc, const gchar **args,
}
static GdaInternalCommandResult *
-extra_command_edit_buffer (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_edit_buffer (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
gchar *filename = NULL;
static gchar *editor_name = NULL;
@@ -3431,7 +3440,7 @@ extra_command_edit_buffer (SqlConsole *console, GdaConnection *cnc, const gchar
if (fd < 0)
goto end_of_command;
if (write (fd, main_data->current->query_buffer->str,
- main_data->current->query_buffer->len) != main_data->current->query_buffer->len) {
+ main_data->current->query_buffer->len) != (gint)main_data->current->query_buffer->len) {
g_set_error (error, 0, 0,
_("Could not write to temporary file '%s': %s"),
filename, strerror (errno));
@@ -3503,8 +3512,8 @@ extra_command_edit_buffer (SqlConsole *console, GdaConnection *cnc, const gchar
}
static GdaInternalCommandResult *
-extra_command_reset_buffer (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_reset_buffer (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3546,8 +3555,8 @@ extra_command_reset_buffer (SqlConsole *console, GdaConnection *cnc, const gchar
}
static GdaInternalCommandResult *
-extra_command_show_buffer (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_show_buffer (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ G_GNUC_UNUSED const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3616,8 +3625,8 @@ extra_command_exec_buffer (SqlConsole *console, GdaConnection *cnc, const gchar
}
static GdaInternalCommandResult *
-extra_command_write_buffer (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_write_buffer (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3667,8 +3676,8 @@ extra_command_write_buffer (SqlConsole *console, GdaConnection *cnc, const gchar
"DELETE FROM " QUERY_BUFFERS_TABLE_NAME " WHERE name = ##name::string"
static GdaInternalCommandResult *
-extra_command_query_buffer_list_dict (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_query_buffer_list_dict (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, G_GNUC_UNUSED const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3720,8 +3729,8 @@ extra_command_query_buffer_list_dict (SqlConsole *console, GdaConnection *cnc, c
}
static GdaInternalCommandResult *
-extra_command_query_buffer_to_dict (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_query_buffer_to_dict (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3811,8 +3820,8 @@ extra_command_query_buffer_to_dict (SqlConsole *console, GdaConnection *cnc, con
}
static GdaInternalCommandResult *
-extra_command_query_buffer_from_dict (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_query_buffer_from_dict (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3883,8 +3892,8 @@ extra_command_query_buffer_from_dict (SqlConsole *console, GdaConnection *cnc, c
}
static GdaInternalCommandResult *
-extra_command_query_buffer_delete_dict (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_query_buffer_delete_dict (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc,
+ const gchar **args, GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -3945,8 +3954,8 @@ extra_command_query_buffer_delete_dict (SqlConsole *console, GdaConnection *cnc,
static void foreach_param_set (const gchar *pname, GdaHolder *param, GdaDataModel *model);
static GdaInternalCommandResult *
-extra_command_set (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_set (G_GNUC_UNUSED SqlConsole *console, GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
const gchar *pname = NULL;
@@ -4042,7 +4051,7 @@ foreach_param_set (const gchar *pname, GdaHolder *param, GdaDataModel *model)
}
static const GValue *
-get_table_value_at_cell (GdaConnection *cnc, GError **error, MainData *data,
+get_table_value_at_cell (GdaConnection *cnc, GError **error, G_GNUC_UNUSED MainData *data,
const gchar *table, const gchar *column, const gchar *row_cond,
GdaDataModel **out_model_of_value)
{
@@ -4312,8 +4321,8 @@ extra_command_export (SqlConsole *console, GdaConnection *cnc, const gchar **arg
static GdaInternalCommandResult *
-extra_command_unset (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_unset (G_GNUC_UNUSED SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
const gchar *pname = NULL;
@@ -4344,7 +4353,7 @@ extra_command_unset (SqlConsole *console, GdaConnection *cnc, const gchar **args
#define DO_UNLINK(x) g_unlink(x)
static void
-graph_func_child_died_cb (GPid pid, gint status, gchar *fname)
+graph_func_child_died_cb (GPid pid, G_GNUC_UNUSED gint status, gchar *fname)
{
DO_UNLINK (fname);
g_free (fname);
@@ -4352,7 +4361,7 @@ graph_func_child_died_cb (GPid pid, gint status, gchar *fname)
}
static gchar *
-create_graph_from_meta_struct (GdaConnection *cnc, GdaMetaStruct *mstruct, GError **error)
+create_graph_from_meta_struct (G_GNUC_UNUSED GdaConnection *cnc, GdaMetaStruct *mstruct, GError **error)
{
#define FNAME "graph.dot"
gchar *graph;
@@ -4424,7 +4433,7 @@ create_graph_from_meta_struct (GdaConnection *cnc, GdaMetaStruct *mstruct, GErro
static GdaInternalCommandResult *
extra_command_graph (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+ GError **error, G_GNUC_UNUSED gpointer data)
{
gchar *result;
GdaMetaStruct *mstruct;
@@ -4463,8 +4472,8 @@ extra_command_graph (SqlConsole *console, GdaConnection *cnc, const gchar **args
#ifdef HAVE_LIBSOUP
static GdaInternalCommandResult *
-extra_command_httpd (SqlConsole *console, GdaConnection *cnc, const gchar **args,
- GError **error, gpointer data)
+extra_command_httpd (SqlConsole *console, G_GNUC_UNUSED GdaConnection *cnc, const gchar **args,
+ GError **error, G_GNUC_UNUSED gpointer data)
{
GdaInternalCommandResult *res = NULL;
@@ -4643,7 +4652,7 @@ args_as_string_set (const gchar *str)
}
static char **
-completion_func (const char *text, int start, int end)
+completion_func (G_GNUC_UNUSED const char *text, int start, int end)
{
#ifdef HAVE_READLINE
ConnectionSetting *cs = main_data->current;
diff --git a/tools/gda-threader.c b/tools/gda-threader.c
index dbe1e5a..4cf4632 100644
--- a/tools/gda-threader.c
+++ b/tools/gda-threader.c
@@ -80,7 +80,8 @@ gda_threader_get_type (void)
NULL,
sizeof (GdaThreader),
0,
- (GInstanceInitFunc) gda_threader_init
+ (GInstanceInitFunc) gda_threader_init,
+ 0
};
g_static_mutex_lock (®istering);
diff --git a/tools/information-schema-doc.c b/tools/information-schema-doc.c
index 292fbc1..87cb67d 100644
--- a/tools/information-schema-doc.c
+++ b/tools/information-schema-doc.c
@@ -29,7 +29,7 @@
#define OUT_FILE "i_s_doc.xml"
int
-main (int argc, char** argv)
+main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char** argv)
{
xmlDocPtr doc;
xmlNodePtr node;
diff --git a/tools/information-schema-types.c b/tools/information-schema-types.c
index bc3539e..d6f7f90 100644
--- a/tools/information-schema-types.c
+++ b/tools/information-schema-types.c
@@ -30,7 +30,7 @@
#define OUT_FILE "gda-meta-column-types.h"
int
-main (int argc, char** argv)
+main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char** argv)
{
xmlDocPtr doc;
xmlNodePtr node;
diff --git a/tools/tools-input.c b/tools/tools-input.c
index c656132..83d29e1 100644
--- a/tools/tools-input.c
+++ b/tools/tools-input.c
@@ -105,7 +105,8 @@ static ComputePromptFunc line_prompt_func = NULL;
static GIOChannel *ioc = NULL;
static gboolean
-chars_for_readline_cb (GIOChannel *ioc, GIOCondition condition, gpointer data)
+chars_for_readline_cb (G_GNUC_UNUSED GIOChannel *ioc, G_GNUC_UNUSED GIOCondition condition,
+ G_GNUC_UNUSED gpointer data)
{
#ifdef HAVE_READLINE
rl_callback_read_char ();
diff --git a/tools/web-server.c b/tools/web-server.c
index bf45504..41b5dc2 100644
--- a/tools/web-server.c
+++ b/tools/web-server.c
@@ -128,7 +128,8 @@ web_server_get_type (void)
NULL,
sizeof (WebServer),
0,
- (GInstanceInitFunc) web_server_init
+ (GInstanceInitFunc) web_server_init,
+ 0
};
g_static_mutex_lock (®istering);
@@ -193,9 +194,9 @@ debug_display_query (gchar *key, gchar *value, gpointer data)
#endif
static void
-server_callback (SoupServer *server, SoupMessage *msg,
+server_callback (G_GNUC_UNUSED SoupServer *server, SoupMessage *msg,
const char *path, GHashTable *query,
- SoupClientContext *context, WebServer *webserver)
+ G_GNUC_UNUSED SoupClientContext *context, WebServer *webserver)
{
#ifdef DEBUG_SERVER
printf ("%s %s HTTP/1.%d\n", msg->method, path, soup_message_get_http_version (msg));
@@ -235,7 +236,7 @@ server_callback (SoupServer *server, SoupMessage *msg,
get_cookies (msg, "coa", &cookie, NULL);
if (cookie) {
- gint n;
+ gsize n;
for (n = 0; n < webserver->priv->cookies->len; n++) {
TimedString *ts = g_array_index (webserver->priv->cookies, TimedString *, n);
#ifdef DEBUG_SERVER
@@ -402,7 +403,7 @@ web_server_finalize (GObject * object)
server = WEB_SERVER (object);
if (server->priv) {
- gint i;
+ gsize i;
for (i = 0; i < server->priv->challenges->len; i++) {
TimedString *ts = g_array_index (server->priv->challenges, TimedString *, i);
timed_string_free (ts);
@@ -438,7 +439,7 @@ static void get_variables (SoupMessage *msg, GHashTable *query, ...);
* GET for a file
*/
static gboolean
-get_file (WebServer *server, SoupMessage *msg, const char *path, GError **error)
+get_file (G_GNUC_UNUSED WebServer *server, SoupMessage *msg, const char *path, GError **error)
{
GMappedFile *mfile;
gchar *real_path;
@@ -573,7 +574,7 @@ get_auth (WebServer *server, SoupMessage *msg, GHashTable *query)
get_variables (msg, query, "etoken", &token, NULL);
if (token) {
- gint n;
+ gsize n;
for (n = 0; n < server->priv->challenges->len; n++) {
TimedString *ts = g_array_index (server->priv->challenges, TimedString *, n);
uint8_t hmac[16];
@@ -732,7 +733,7 @@ cnc_ul (gboolean is_authenticated)
}
static void
-get_for_cnclist (WebServer *webserver, SoupMessage *msg, gboolean is_authenticated)
+get_for_cnclist (G_GNUC_UNUSED WebServer *webserver, SoupMessage *msg, gboolean is_authenticated)
{
xmlNodePtr ul;
SoupBuffer *buffer;
@@ -1118,7 +1119,7 @@ compute_table_details (const ConnectionSetting *cs, HtmlDoc *hdoc, WebServer *we
*/
static gchar *
meta_struct_dump_as_graph (const ConnectionSetting *cs, GdaMetaStruct *mstruct, GdaMetaDbObject *central_dbo,
- GError **error)
+ G_GNUC_UNUSED GError **error)
{
GString *string;
gchar *result;
@@ -1262,8 +1263,9 @@ meta_struct_dump_as_graph (const ConnectionSetting *cs, GdaMetaStruct *mstruct,
}
static gboolean
-compute_view_details (const ConnectionSetting *cs, HtmlDoc *hdoc, GdaMetaStruct *mstruct,
- GdaMetaDbObject *dbo, GError **error)
+compute_view_details (G_GNUC_UNUSED const ConnectionSetting *cs, HtmlDoc *hdoc,
+ G_GNUC_UNUSED GdaMetaStruct *mstruct, GdaMetaDbObject *dbo,
+ G_GNUC_UNUSED GError **error)
{
GdaMetaView *view = GDA_META_VIEW (dbo);
if (view->view_def) {
@@ -1282,7 +1284,7 @@ compute_view_details (const ConnectionSetting *cs, HtmlDoc *hdoc, GdaMetaStruct
* Returns: TRUE if the object was really a trigger
*/
static gboolean
-compute_trigger_content (HtmlDoc *hdoc, WebServer *webserver, const ConnectionSetting *cs,
+compute_trigger_content (HtmlDoc *hdoc, G_GNUC_UNUSED WebServer *webserver, const ConnectionSetting *cs,
const gchar *schema, const gchar *name, GError **error)
{
GdaMetaStore *store;
@@ -1843,7 +1845,7 @@ get_cookies (SoupMessage *msg, ...)
}
static HtmlDoc*
-create_new_htmldoc (WebServer *webserver, const ConnectionSetting *cs)
+create_new_htmldoc (G_GNUC_UNUSED WebServer *webserver, const ConnectionSetting *cs)
{
HtmlDoc *hdoc;
gchar *str;
@@ -1926,8 +1928,8 @@ delete_consoles (WebServer *server)
* GET/POST method for IRB
*/
static gboolean
-get_post_for_irb (WebServer *webserver, SoupMessage *msg, const ConnectionSetting *cs,
- GHashTable *query, GError **error)
+get_post_for_irb (WebServer *webserver, SoupMessage *msg, G_GNUC_UNUSED const ConnectionSetting *cs,
+ GHashTable *query, G_GNUC_UNUSED GError **error)
{
gboolean retval = FALSE;
SoupBuffer *buffer;
@@ -2181,7 +2183,7 @@ challenge_add (WebServer *server)
static void
challenges_manage (WebServer *server)
{
- gint i;
+ gsize i;
GTimeVal current_ts;
if (server->priv->challenges->len > MAX_CHALLENGES) {
@@ -2222,7 +2224,7 @@ auth_cookie_add (WebServer *server)
static void
auth_cookies_manage (WebServer *server)
{
- gint i;
+ gsize i;
GTimeVal current_ts;
if (server->priv->cookies->len > MAX_AUTH_COOKIES) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]