summaryrefslogtreecommitdiff
path: root/databases/libgda6/files
diff options
context:
space:
mode:
Diffstat (limited to 'databases/libgda6/files')
-rw-r--r--databases/libgda6/files/patch-libgda_gda-connection.c30
-rw-r--r--databases/libgda6/files/patch-libgda_gda-db-catalog.c36
-rw-r--r--databases/libgda6/files/patch-tests_data-models_check__model__errors.c24
-rw-r--r--databases/libgda6/files/patch-tests_data-models_check__pmodel.c24
-rw-r--r--databases/libgda6/files/patch-tests_test-bin-converter.c10
-rw-r--r--databases/libgda6/files/patch-tests_test-input-parsers.c77
6 files changed, 201 insertions, 0 deletions
diff --git a/databases/libgda6/files/patch-libgda_gda-connection.c b/databases/libgda6/files/patch-libgda_gda-connection.c
new file mode 100644
index 000000000000..87c2d770d13d
--- /dev/null
+++ b/databases/libgda6/files/patch-libgda_gda-connection.c
@@ -0,0 +1,30 @@
+../libgda/gda-connection.c:6931:7: error: variable 'refs' set but not used [-Werror,-Wunused-but-set-variable]
+ 6931 | gint refs;
+ | ^
+1 error generated.
+
+--- libgda/gda-connection.c.orig 2025-03-02 15:03:58 UTC
++++ libgda/gda-connection.c
+@@ -6928,14 +6928,12 @@ gda_connection_prepare_operation_create_table_v (GdaCo
+ gchar *arg;
+ GType type;
+ GdaServerOperationCreateTableFlag flag;
+- gint refs;
+ GList *arguments = NULL;
+ GdaServerOperationCreateTableArg* argument;
+
+ va_start (args, error);
+ type = 0;
+ arg = NULL;
+- refs = -1;
+
+ while ((arg = va_arg (args, gchar*))) {
+ argument = gda_server_operation_create_table_arg_new ();
+@@ -6956,7 +6954,6 @@ gda_connection_prepare_operation_create_table_v (GdaCo
+ gchar *fkey_ondelete;
+ gchar *fkey_onupdate;
+
+- refs++;
+ GList *lfields = NULL;
+
+ fkey_table = va_arg (args, gchar*);
diff --git a/databases/libgda6/files/patch-libgda_gda-db-catalog.c b/databases/libgda6/files/patch-libgda_gda-db-catalog.c
new file mode 100644
index 000000000000..1b50a22006c0
--- /dev/null
+++ b/databases/libgda6/files/patch-libgda_gda-db-catalog.c
@@ -0,0 +1,36 @@
+../libgda/gda-db-catalog.c:832:8: error: variable 'ntables' set but not used [-Werror,-Wunused-but-set-variable]
+ 832 | gint ntables = 0;
+ | ^
+../libgda/gda-db-catalog.c:833:8: error: variable 'nviews' set but not used [-Werror,-Wunused-but-set-variable]
+ 833 | gint nviews = 0;
+ | ^
+2 errors generated.
+
+--- libgda/gda-db-catalog.c.orig 2025-03-02 15:03:58 UTC
++++ libgda/gda-db-catalog.c
+@@ -829,9 +829,6 @@ gda_db_catalog_parse_cnc (GdaDbCatalog *self,
+
+ GSList *it = NULL;
+
+- gint ntables = 0;
+- gint nviews = 0;
+-
+ for (it=dblist; it; it = it->next)
+ {
+ if(GDA_META_DB_OBJECT(it->data)->obj_type == GDA_META_DB_TABLE)
+@@ -841,7 +838,6 @@ gda_db_catalog_parse_cnc (GdaDbCatalog *self,
+ continue;
+
+ priv->mp_tables = g_list_append (priv->mp_tables,table);
+- ntables++;
+ continue;
+ }
+
+@@ -854,7 +850,6 @@ gda_db_catalog_parse_cnc (GdaDbCatalog *self,
+
+ g_print ("%s:%d Found %s view\n", __FILE__, __LINE__, gda_db_base_get_full_name(GDA_DB_BASE (view)));
+ priv->mp_views = g_list_append (priv->mp_views, view);
+- nviews++;
+ continue;
+ }
+ }
diff --git a/databases/libgda6/files/patch-tests_data-models_check__model__errors.c b/databases/libgda6/files/patch-tests_data-models_check__model__errors.c
new file mode 100644
index 000000000000..605f338ee812
--- /dev/null
+++ b/databases/libgda6/files/patch-tests_data-models_check__model__errors.c
@@ -0,0 +1,24 @@
+../tests/data-models/check_model_errors.c:51:11: error: variable 'ntests' set but not used [-Werror,-Wunused-but-set-variable]
+ 51 | guint i, ntests = 0, number_failed = 0;
+ | ^
+1 error generated.
+
+--- tests/data-models/check_model_errors.c.orig 2025-03-02 15:03:58 UTC
++++ tests/data-models/check_model_errors.c
+@@ -48,7 +48,7 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **arg
+ int
+ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
+ {
+- guint i, ntests = 0, number_failed = 0;
++ guint i, number_failed = 0;
+
+ gda_init ();
+
+@@ -58,7 +58,6 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **arg
+ number_failed += n;
+ if (n > 0)
+ g_print ("Test %d failed\n", i+1);
+- ntests ++;
+ }
+
+ g_print ("TESTS COUNT: %d\n", i);
diff --git a/databases/libgda6/files/patch-tests_data-models_check__pmodel.c b/databases/libgda6/files/patch-tests_data-models_check__pmodel.c
new file mode 100644
index 000000000000..35bda1e18c61
--- /dev/null
+++ b/databases/libgda6/files/patch-tests_data-models_check__pmodel.c
@@ -0,0 +1,24 @@
+../tests/data-models/check_pmodel.c:108:11: error: variable 'ntests' set but not used [-Werror,-Wunused-but-set-variable]
+ 108 | guint i, ntests = 0, number_failed = 0;
+ | ^
+1 error generated.
+
+--- tests/data-models/check_pmodel.c.orig 2025-03-02 15:03:58 UTC
++++ tests/data-models/check_pmodel.c
+@@ -105,7 +105,7 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **arg
+ int
+ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
+ {
+- guint i, ntests = 0, number_failed = 0;
++ guint i, number_failed = 0;
+ GdaConnection *cnc;
+
+ gda_init ();
+@@ -119,7 +119,6 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **arg
+ number_failed += n;
+ if (n > 0)
+ g_print ("Test %d failed\n", i+1);
+- ntests ++;
+ }
+
+ g_object_unref (cnc);
diff --git a/databases/libgda6/files/patch-tests_test-bin-converter.c b/databases/libgda6/files/patch-tests_test-bin-converter.c
new file mode 100644
index 000000000000..44549f407a73
--- /dev/null
+++ b/databases/libgda6/files/patch-tests_test-bin-converter.c
@@ -0,0 +1,10 @@
+--- tests/test-bin-converter.c.orig 2025-03-02 15:03:58 UTC
++++ tests/test-bin-converter.c
+@@ -67,6 +67,6 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char** arg
+ gda_binary_free (bin);
+ gda_binary_free (bin2);
+
+- g_print ("Ok (file size: %ld)\n", bin_length);
++ g_print ("Ok (file size: %ld)\n", (long)bin_length);
+ return EXIT_SUCCESS;
+ }
diff --git a/databases/libgda6/files/patch-tests_test-input-parsers.c b/databases/libgda6/files/patch-tests_test-input-parsers.c
new file mode 100644
index 000000000000..3dd69c4f3881
--- /dev/null
+++ b/databases/libgda6/files/patch-tests_test-input-parsers.c
@@ -0,0 +1,77 @@
+--- tests/test-input-parsers.c.orig 2025-03-02 15:03:58 UTC
++++ tests/test-input-parsers.c
+@@ -170,7 +170,7 @@ test_parse_iso8601_time (void)
+ " got: HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n",
+ td.in_string,
+ td.hour, td.minute, td.second,
+- td.fraction, td.timezone,
++ td.fraction, (long)td.timezone,
+ gda_time_get_hour (time), gda_time_get_minute (time), gda_time_get_second (time),
+ gda_time_get_fraction (time), gda_time_get_timezone (time));
+ g_assert (gda_time_get_hour (time) == td.hour);
+@@ -220,12 +220,12 @@ test_parse_iso8601_timestamp (void)
+ " exp: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n"
+ " got: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n",
+ str, td.exp_day, td.exp_month, td.exp_year,
+- tt.hour, tt.minute, tt.second, tt.fraction, tt.timezone,
++ tt.hour, tt.minute, tt.second, tt.fraction, (long)tt.timezone,
+ g_date_time_get_year (timestamp), g_date_time_get_month (timestamp),
+ g_date_time_get_day_of_month (timestamp), g_date_time_get_hour (timestamp), g_date_time_get_minute (timestamp),
+ g_date_time_get_second (timestamp),
+ (glong) (g_date_time_get_seconds (timestamp) - g_date_time_get_second (timestamp)) / 1000000l,
+- g_date_time_get_utc_offset (timestamp)/1000000);
++ (long)g_date_time_get_utc_offset (timestamp)/1000000);
+
+ g_free (str);
+ return FALSE;
+@@ -343,7 +343,7 @@ test_time_handler (void)
+ " got: HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n",
+ td.in_string,
+ td.hour, td.minute, td.second,
+- td.fraction, td.timezone,
++ td.fraction, (long)td.timezone,
+ gda_time_get_hour (ptime), gda_time_get_minute (ptime), gda_time_get_second (ptime),
+ gda_time_get_fraction (ptime), gda_time_get_timezone (ptime));
+ return FALSE;
+@@ -377,7 +377,7 @@ test_time_handler (void)
+ " got: HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n",
+ td.in_string,
+ td.hour, td.minute, td.second,
+- td.fraction, td.timezone,
++ td.fraction, (long)td.timezone,
+ gda_time_get_hour (ptime), gda_time_get_minute (ptime), gda_time_get_second (ptime),
+ gda_time_get_fraction (ptime), gda_time_get_timezone (ptime));
+ return FALSE;
+@@ -430,7 +430,7 @@ test_timestamp_handler (void)
+ " exp: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n"
+ " got: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld (SF=%f) TZ=%ld\n",
+ td.exp_day, td.exp_month, td.exp_year,
+- tt.hour, tt.minute, tt.second, tt.fraction, tt.timezone,
++ tt.hour, tt.minute, tt.second, tt.fraction, (long)tt.timezone,
+ g_date_time_get_day_of_month (timestamp),
+ g_date_time_get_month (timestamp),
+ g_date_time_get_year (timestamp),
+@@ -438,7 +438,7 @@ test_timestamp_handler (void)
+ g_date_time_get_second (timestamp),
+ (glong) ((g_date_time_get_seconds (timestamp) - g_date_time_get_second (timestamp)) * 1000000.0),
+ g_date_time_get_seconds (timestamp),
+- g_date_time_get_utc_offset (timestamp)/1000000);
++ (long)g_date_time_get_utc_offset (timestamp)/1000000);
+
+ g_assert (g_date_time_get_year (timestamp) == td.exp_year);
+ g_assert (g_date_time_get_month (timestamp) == (gint) td.exp_month);
+@@ -491,12 +491,12 @@ test_timestamp_handler (void)
+ " exp: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\\n"
+ " got: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\\n",
+ str, td.exp_day, td.exp_month, td.exp_year,
+- tt.hour, tt.minute, tt.second, tt.fraction, tt.timezone,
++ tt.hour, tt.minute, tt.second, tt.fraction, (long)tt.timezone,
+ g_date_time_get_year (timestamp), g_date_time_get_month (timestamp),
+ g_date_time_get_day_of_month (timestamp), g_date_time_get_hour (timestamp), g_date_time_get_minute (timestamp),
+ g_date_time_get_second (timestamp),
+ (glong) ((g_date_time_get_seconds (timestamp) - g_date_time_get_second (timestamp)) * 1000000.0),
+- g_date_time_get_utc_offset (timestamp)/1000000);
++ (long)g_date_time_get_utc_offset (timestamp)/1000000);
+
+ g_object_unref (dh);
+ g_free (str);