[gnome-db] Problem and fix for libgda-1.0.4



Error:
compilation fails with "label at end of compound statement"
It looks like the programmer forgot to add code for a case.


Fix:

Remove the label (it would also work to put ";" after the ":").

--- libgda/gda-util.c~  2004-08-08 13:08:17.000000000 +0200
+++ libgda/gda-util.c   2004-08-08 13:07:46.000000000 +0200
@@ -61,5 +61,4 @@
        case GDA_VALUE_TYPE_TIMESTAMP : return "timestamp";
        case GDA_VALUE_TYPE_TINYINT : return "tinyint";
-       default:
        }

--- providers/xml/gda-xml-provider.c~   2004-08-08 13:08:58.000000000 +0200
+++ providers/xml/gda-xml-provider.c    2004-08-08 13:08:43.000000000 +0200
@@ -682,5 +682,4 @@
        case GDA_CONNECTION_SCHEMA_TYPES :
                return get_types (cnc);
-       default :
        }




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