File mysql-gui-tools-gcc-errors.patch of Package mysql-gui-tools

diff -Naru mysql-gui-tools-5.0r14-bak/common/library/generic-canvas/source/myx_gc_figure.cpp mysql-gui-tools-5.0r14/common/library/generic-canvas/source/myx_gc_figure.cpp
--- mysql-gui-tools-5.0r14-bak/common/library/generic-canvas/source/myx_gc_figure.cpp	2008-12-09 12:13:50.000000000 +0100
+++ mysql-gui-tools-5.0r14/common/library/generic-canvas/source/myx_gc_figure.cpp	2008-12-09 12:17:34.000000000 +0100
@@ -3164,7 +3164,8 @@
         // Convert depth map so that unused values become 0 (transparent).
         unsigned char* run = buffer;
         for (int i = 0; i < bufferSize; ++i)
-          *run = 255 - *run++;
+          *run = 255 - *run;
+          ++run;
       };
       
       // Release frame buffer binding to enable normal rendering again.
diff -Naru mysql-gui-tools-5.0r14-bak/common/library/grt-modules/source/myx_grt_mysql_transformation.c mysql-gui-tools-5.0r14/common/library/grt-modules/source/myx_grt_mysql_transformation.c
--- mysql-gui-tools-5.0r14-bak/common/library/grt-modules/source/myx_grt_mysql_transformation.c	2008-12-09 12:13:50.000000000 +0100
+++ mysql-gui-tools-5.0r14/common/library/grt-modules/source/myx_grt_mysql_transformation.c	2008-12-09 13:10:25.000000000 +0100
@@ -2432,7 +2432,7 @@
   // add changed table options
   for(i= 0; data[i].key != NULL; i++)
   {
-    if(data[i].value != "")
+    if(strcmp(data[i].value,""))
     {
       sql= str_g_append_and_free(sql, g_strdup_printf(", %s", data[i].value));
       g_free(data[i].value);
@@ -2514,7 +2514,7 @@
   // add changed routine options
   for(i= 0; data[i].key != NULL; i++)
   {
-    if(data[i].value != "")
+    if(strcmp(data[i].value,""))
     {
       sql= str_g_append_and_free(sql, g_strdup_printf(" %s", data[i].value));
       g_free(data[i].value);
diff -Naru mysql-gui-tools-5.0r14-bak/common/library/mysql-resultset/include/MYXResultSetStorage.h mysql-gui-tools-5.0r14/common/library/mysql-resultset/include/MYXResultSetStorage.h
--- mysql-gui-tools-5.0r14-bak/common/library/mysql-resultset/include/MYXResultSetStorage.h	2008-12-09 12:13:51.000000000 +0100
+++ mysql-gui-tools-5.0r14/common/library/mysql-resultset/include/MYXResultSetStorage.h	2008-12-09 12:50:15.000000000 +0100
@@ -196,7 +196,7 @@
     // comparing
 
     bool compare(MYXResultSetStorage *rset);
-    MYXRSCompareStatus get_compare_status(bigint row, int column);
+//  MYXRSCompareStatus get_compare_status(bigint row, int column);
 
 
     // resultset modification
diff -Naru mysql-gui-tools-5.0r14-bak/common/library/mysql-resultset/source/MYXResultSetStorage.cc mysql-gui-tools-5.0r14/common/library/mysql-resultset/source/MYXResultSetStorage.cc
--- mysql-gui-tools-5.0r14-bak/common/library/mysql-resultset/source/MYXResultSetStorage.cc	2008-12-09 12:13:51.000000000 +0100
+++ mysql-gui-tools-5.0r14/common/library/mysql-resultset/source/MYXResultSetStorage.cc	2008-12-09 12:48:20.000000000 +0100
@@ -422,10 +422,9 @@
 }
 
 
-
+/*
 MYXRSCompareStatus MYXResultSetStorage::get_compare_status(bigint row, int column)
 {
-  /*
   switch (_resultset->rows[row].diff&MYX_RD_MASK)
   {
     case MYX_RD_OTHER_ONLY:
@@ -438,8 +437,8 @@
         return MCSDiffers;
     default:
       return MCSMatch;
-  }*/
-}
+  }
+}*/
 
 
 MYXRSEditStatus MYXResultSetStorage::get_edit_status(bigint row, int column) const
openSUSE Build Service is sponsored by