Commit 5713e139 authored by Davi Arnaut's avatar Davi Arnaut

Bug#45288: pb2 returns a lot of compilation warnings on linux

Use UNINIT_VAR workaround instead of LINT_INIT. The former is
also used in non-debug builds as it doesn't cause changes.
parent afa568c2
...@@ -153,7 +153,7 @@ int handle_options(int *argc, char ***argv, ...@@ -153,7 +153,7 @@ int handle_options(int *argc, char ***argv,
const struct my_option *longopts, const struct my_option *longopts,
my_get_one_option get_one_option) my_get_one_option get_one_option)
{ {
uint opt_found, argvpos= 0, length; uint UNINIT_VAR(opt_found), argvpos= 0, length;
my_bool end_of_options= 0, must_be_var, set_maximum_value, my_bool end_of_options= 0, must_be_var, set_maximum_value,
option_is_loose; option_is_loose;
char **pos, **pos_end, *optend, *opt_str, key_name[FN_REFLEN]; char **pos, **pos_end, *optend, *opt_str, key_name[FN_REFLEN];
...@@ -163,7 +163,6 @@ int handle_options(int *argc, char ***argv, ...@@ -163,7 +163,6 @@ int handle_options(int *argc, char ***argv,
int error, i; int error, i;
my_bool is_cmdline_arg= 1; my_bool is_cmdline_arg= 1;
LINT_INIT(opt_found);
/* handle_options() assumes arg0 (program name) always exists */ /* handle_options() assumes arg0 (program name) always exists */
DBUG_ASSERT(argc && *argc >= 1); DBUG_ASSERT(argc && *argc >= 1);
DBUG_ASSERT(argv && *argv); DBUG_ASSERT(argv && *argv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment