diff options
author | unknown <greg@mysql.com> | 2003-11-12 03:38:46 -0500 |
---|---|---|
committer | unknown <greg@mysql.com> | 2003-11-12 03:38:46 -0500 |
commit | d35292fdf1e568e448e097e873459a10d01fa8d7 (patch) | |
tree | 4a51a6b365d0f47e5086c8189c17bdcb977bca13 | |
parent | f5ea1f4f2ff8c3a6cedfeaf19efe81c4c2943fad (diff) | |
download | mariadb-git-d35292fdf1e568e448e097e873459a10d01fa8d7.tar.gz |
Fixed minor compiler errors encountered during pre-final builds.
sql/item_func.cc:
Goto statement potentially skips declaration of 'i'-- VC++ compiler
generates an error.
sql/mysql_priv.h:
Some platforms will not find sql_bitmap.h when angle brackets are used.
sql/mysqld.cc:
my_strcasecmp now needs a charset info parameter.
strings/my_strtoll10.c:
Changed constant macro to use LL()-- fixes compiler error under Windows.
-rw-r--r-- | sql/item_func.cc | 4 | ||||
-rw-r--r-- | sql/mysql_priv.h | 2 | ||||
-rw-r--r-- | sql/mysqld.cc | 4 | ||||
-rw-r--r-- | strings/my_strtoll10.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 3112c73b188..43cc67b554e 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -2743,7 +2743,7 @@ bool Item_func_match::fix_index() { Item_field *item; uint ft_to_key[MAX_KEY], ft_cnt[MAX_KEY], fts=0, keynr; - uint max_cnt=0, mkeys=0; + uint max_cnt=0, mkeys=0, i; if (key == NO_SUCH_KEY) return 0; @@ -2762,7 +2762,7 @@ bool Item_func_match::fix_index() if (!fts) goto err; - for (uint i=1; i < arg_count; i++) + for (i=1; i < arg_count; i++) { item=(Item_field*)args[i]; for (keynr=0 ; keynr < fts ; keynr++) diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 12c772e7253..71ad5ce67c2 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -24,7 +24,7 @@ #include <signal.h> #include <thr_lock.h> #include <my_base.h> /* Needed by field.h */ -#include <sql_bitmap.h> +#include "sql_bitmap.h" #ifdef __EMX__ #undef write /* remove pthread.h macro definition for EMX */ diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 7c432a05786..a4c51321e97 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2796,7 +2796,7 @@ int main(int argc, char **argv) but we started a bad tradition by calling it MySQL from the start and we are now stuck with it. */ - if (my_strcasecmp(argv[1],"mysql")) + if (my_strcasecmp(system_charset_info, argv[1],"mysql")) load_default_groups[3]= argv[1]; start_mode= 1; Service.Init(argv[1], mysql_service); @@ -2817,7 +2817,7 @@ int main(int argc, char **argv) opt_argc= 2; // Skip service-name opt_argv=argv; start_mode= 1; - if (my_strcasecmp(argv[2],"mysql")) + if (my_strcasecmp(system_charset_info, argv[2],"mysql")) load_default_groups[3]= argv[2]; Service.Init(argv[2], mysql_service); return 0; diff --git a/strings/my_strtoll10.c b/strings/my_strtoll10.c index d741fac6825..f795ef64728 100644 --- a/strings/my_strtoll10.c +++ b/strings/my_strtoll10.c @@ -19,7 +19,7 @@ #include <m_string.h> #define ULONGLONG_MAX (~(ulonglong) 0) -#define MAX_NEGATIVE_NUMBER ((ulonglong) 0x8000000000000000LL) +#define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000)) #define INIT_CNT 9 #define LFACTOR LL(1000000000) #define LFACTOR1 LL(10000000000) |