List:Commits« Previous MessageNext Message »
From:Ramil Kalimullin Date:October 8 2008 1:54pm
Subject:bzr commit into mysql-6.0 branch (ramil:2862)
View as plain text  
#At file:///home/ram/mysql/mysql-6.0-5.1.29-rc/

 2862 Ramil Kalimullin	2008-10-08
      Add cast to avoid warnings on some platforms.
modified:
  sql/mysql_priv.h

per-file messages:
  sql/mysql_priv.h
    Add cast to avoid warnings on some platforms.
=== modified file 'sql/mysql_priv.h'
--- a/sql/mysql_priv.h	2008-10-07 17:04:28 +0000
+++ b/sql/mysql_priv.h	2008-10-08 13:54:30 +0000
@@ -140,7 +140,7 @@ char* query_table_status(THD *thd,const 
 #define WARN_DEPRECATED(Thd,VerHi,VerLo,Old,New)                            \
   do {                                                                      \
     compile_time_assert(MYSQL_VERSION_ID < VerHi * 10000 + VerLo * 100);    \
-    if ((Thd) != NULL)                                                      \
+    if (((THD *) Thd) != NULL)                                              \
       push_warning_printf((Thd), MYSQL_ERROR::WARN_LEVEL_WARN,              \
                         ER_WARN_DEPRECATED_SYNTAX,                          \
                         ER(ER_WARN_DEPRECATED_SYNTAX_WITH_VER),             \

Thread
bzr commit into mysql-6.0 branch (ramil:2862) Ramil Kalimullin8 Oct