diff options
author | Sergei Golubchik <serg@mysql.com> | 2008-11-29 00:27:13 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2008-11-29 00:27:13 +0100 |
commit | f1906c62d563fa1502e68a7d9854313560474be9 (patch) | |
tree | a78968c5920197f27eb1be86ae94e1dcbdc020fa /mysys/my_getopt.c | |
parent | 255f8feb4c1120af264d9b686dbde8f65da4e4eb (diff) | |
download | mariadb-git-f1906c62d563fa1502e68a7d9854313560474be9.tar.gz |
Bug#34374: mysql generates incorrect warning
an item was evaluated unnecessary, fix that by checking preconditions before evaluating the item
sql/sql_select.cc:
an item was evaluated unnecessary, fix that by checking preconditions before evaluating the item
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r-- | mysys/my_getopt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index ddb0a4d3ed5..059896f5081 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -39,8 +39,7 @@ static ulonglong getopt_ull(char *arg, const struct my_option *optp, static double getopt_double(char *arg, const struct my_option *optp, int *err); static void init_variables(const struct my_option *options, init_func_p init_one_value); -static void init_one_value(const struct my_option *option, uchar* *variable, - longlong value); +static void init_one_value(const struct my_option *opt, uchar* *, longlong); static void fini_one_value(const struct my_option *option, uchar* *variable, longlong value); static int setval(const struct my_option *opts, uchar **value, char *argument, |