Browse Source
Bug #43414 Parenthesis (and other) warnings compiling MySQL
Bug #43414 Parenthesis (and other) warnings compiling MySQL
with gcc 4.3.2 This patch fixes a number of GCC warnings about variables used before initialized. A new macro UNINIT_VAR() is introduced for use in the variable declaration, and LINT_INIT() usage will be gradually deprecated. (A workaround is used for g++, pending a patch for a g++ bug.) GCC warnings for unused results (attribute warn_unused_result) for a number of system calls (present at least in later Ubuntus, where the usual void cast trick doesn't work) are also fixed. client/mysqlmanager-pwgen.c: A fix for warn_unused_result, adding fallback to use of srand()/rand() if /dev/random cannot be used. Also actually adds calls to rand() in the second branch so that it actually creates a random password.pull/374/head
51 changed files with 142 additions and 191 deletions
-
3client/mysql.cc
-
3client/mysql_upgrade.c
-
6client/mysqladmin.cc
-
19client/mysqlmanager-pwgen.c
-
15client/mysqltest.c
-
6cmd-line-utils/readline/bind.c
-
7cmd-line-utils/readline/histfile.c
-
3cmd-line-utils/readline/undo.c
-
3heap/hp_test2.c
-
13include/my_global.h
-
3libmysql/libmysql.c
-
4myisam/ft_boolean_search.c
-
18myisam/mi_check.c
-
2myisam/mi_create.c
-
2myisam/mi_delete.c
-
9myisam/mi_dynrec.c
-
2myisam/mi_open.c
-
2myisam/mi_packrec.c
-
5myisam/mi_search.c
-
5myisam/mi_update.c
-
4myisam/sort.c
-
4myisammrg/myrg_open.c
-
9myisammrg/myrg_rkey.c
-
3mysys/mf_pack.c
-
5mysys/my_copy.c
-
2mysys/my_getopt.c
-
3mysys/my_redel.c
-
4mysys/typelib.c
-
6regex/regcomp.c
-
5sql-common/client.c
-
3sql-common/my_time.c
-
19sql/field.cc
-
2sql/ha_myisammrg.cc
-
7sql/item.cc
-
17sql/item_cmpfunc.cc
-
6sql/item_create.cc
-
12sql/item_func.cc
-
3sql/lock.cc
-
3sql/log.cc
-
8sql/opt_range.cc
-
13sql/spatial.cc
-
10sql/sql_acl.cc
-
6sql/sql_base.cc
-
4sql/sql_parse.cc
-
3sql/sql_prepare.cc
-
7sql/sql_show.cc
-
4sql/sql_update.cc
-
3sql/sql_view.cc
-
9strings/ctype-ucs2.c
-
6strings/ctype-utf8.c
-
13strings/decimal.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue