diff options
author | unknown <monty@mysql.com> | 2005-05-18 19:00:21 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-05-18 19:00:21 +0300 |
commit | d93806ef7d479f353349862833364f0b332bacea (patch) | |
tree | b3842c1613c97d550be652ce1e354686b5ca35ee /sql/gen_lex_hash.cc | |
parent | 880bff92639aa80e38a7b3d8686b620b5048de31 (diff) | |
download | mariadb-git-d93806ef7d479f353349862833364f0b332bacea.tar.gz |
Fix warnings from icc
Added BUILD scripts for icc
Fixed (one time) memory leak in grant handling
config/ac-macros/misc.m4:
Remove warnings flags from icc when compiling with -Werror
configure.in:
Remove warnings flags from icc when compiling with -Werror
extra/replace.c:
Fix warnings from icc
include/my_dbug.h:
Fix warnings from icc
sql/gen_lex_hash.cc:
Fix warnings from icc
sql/mysql_priv.h:
Add missing variables
sql/mysqld.cc:
Fix warnings from icc:
- made a lot of variables static
- Removing some not used variables
- Fixed wrong printf()
- removed extern "C" from some functions
sql/spatial.h:
Fix warnings from icc
sql/sql_acl.cc:
Fixed memory leak
sql/sql_lex.cc:
Fix warnings from icc
sql/sql_lex.h:
Fix warnings from icc
Diffstat (limited to 'sql/gen_lex_hash.cc')
-rw-r--r-- | sql/gen_lex_hash.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/gen_lex_hash.cc b/sql/gen_lex_hash.cc index 57b5e006489..c3206de3cd4 100644 --- a/sql/gen_lex_hash.cc +++ b/sql/gen_lex_hash.cc @@ -300,7 +300,7 @@ void print_hash_map(const char *name) char *cur; int i; - printf("uchar %s[%d]= {\n",name,size_hash_map); + printf("static uchar %s[%d]= {\n",name,size_hash_map); for (i=0, cur= hash_map; i<size_hash_map; i++, cur++) { switch(i%4){ @@ -459,11 +459,11 @@ int main(int argc,char **argv) generate_find_structs(); print_find_structs(); - printf("\nunsigned int sql_functions_max_len=%d;\n",max_len); - printf("\nunsigned int symbols_max_len=%d;\n\n",max_len2); + printf("\static unsigned int sql_functions_max_len=%d;\n",max_len); + printf("\static unsigned int symbols_max_len=%d;\n\n",max_len2); printf("\ -inline SYMBOL *get_hash_symbol(const char *s,\n \ +static inline SYMBOL *get_hash_symbol(const char *s,\n\ unsigned int len,bool function)\n\ {\n\ register uchar *hash_map;\n\ |