From:
[email protected]
Package: libgda
Severity: normal
Tags: patch
When building 'libgda' with gcc-3.4 I get the following error:
gda-mysql-connection.c: In function `schema_tables': gda-mysql-connection.c:543: error: label at end of compound statement gda-mysql-connection.c:557: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
gda-mysql-connection.c:565: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
gda-mysql-connection.c:640: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
gda-mysql-connection.c: In function `schema_columns': gda-mysql-connection.c:687: error: label at end of compound statement gda-mysql-connection.c:701: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
gda-mysql-connection.c:709: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
gda-mysql-connection.c:780: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
gda-mysql-connection.c:793: warning: passing arg 4 of `gda_server_error_make' discards qualifiers from pointer target type
make[4]: *** [gda-mysql-connection.o] Error 1
make[4]: Leaving directory `/libgda-0.2.96/build-tree/libgda-0.2.96/providers/gda-mysql-server'
With the attached patch 'libgda' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/libgda-0.2.96/debian/patches/004_gcc-libgda-gcc-3.4.patch ./debian/patches/004_gcc-libgda-gcc-3.4.patch
--- ../tmp-orig/libgda-0.2.96/debian/patches/004_gcc-libgda-gcc-3.4.patch 1970-01-01 01:00:00.000000000 +0100
+++ ./debian/patches/004_gcc-libgda-gcc-3.4.patch 2004-08-14 14:07:47.097367609 +0200
@@ -0,0 +1,18 @@
+--- gda-mysql-connection.c 2001-09-28 23:18:52.000000000 +0200
++++ libgda-0.2.96/providers/gda-mysql-server/gda-mysql-connection.c 2004-08-14 14:03:14.567798401 +0200
+@@ -539,7 +539,6 @@
+ case GDA_Connection_OBJECT_CATALOG:
+ /* N/A */
+ break;
+- default:
+ }
+ }
+
+@@ -683,7 +682,6 @@
+ break;
+ case GDA_Connection_COLUMN_NAME:
+ break;
+- default:
+ }
+ }
+
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)