← Back to team overview

maria-developers team mailing list archive

Rev 2771: embedded builds used to refer to undefined functions inside if(0) { } in http://bazaar.launchpad.net/~maria-captains/maria/5.2/

 

At http://bazaar.launchpad.net/~maria-captains/maria/5.2/

------------------------------------------------------------
revno: 2771
revision-id: sergii@xxxxxxxxx-20100402200840-0nctbdvalpetkkzp
parent: sergii@xxxxxxxxx-20100402185102-3jj9hj51tfjblsyu
committer: Sergei Golubchik <sergii@xxxxxxxxx>
branch nick: 5.2
timestamp: Fri 2010-04-02 22:08:40 +0200
message:
  embedded builds used to refer to undefined functions inside if(0) { }
  gcc optimized this dead code away, and does not notice that functions
  were undefined. Other compilers are more picky
=== modified file 'sql/sql_acl.cc'
--- a/sql/sql_acl.cc	2010-04-01 14:34:51 +0000
+++ b/sql/sql_acl.cc	2010-04-02 20:08:40 +0000
@@ -6849,6 +6849,7 @@ bool check_routine_level_acl(THD *thd, c
 #define initialized 0
 #define decrease_user_connections(X)        /* nothing */
 #define check_for_max_user_connections(X,Y)   0
+#define get_or_create_user_conn(A,B,C,D) 0
 #endif
 #endif
 #ifndef HAVE_OPENSSL