Commit 3e638e80 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-4226 [PATCH] "Unused variable" warnings in the tarball

parent cc28eda6
......@@ -738,7 +738,7 @@ static char **remaining_argv;
int orig_argc;
char **orig_argv;
static struct my_option pfs_early_options[]=
static struct my_option pfs_early_options[] __attribute__((unused)) =
{
{"performance_schema_instrument", OPT_PFS_INSTRUMENT,
"Default startup value for a performance schema instrument.",
......
......@@ -923,7 +923,7 @@ static my_bool socket_peek_read(Vio *vio, uint *bytes)
int vio_io_wait(Vio *vio, enum enum_vio_io_event event, int timeout)
{
int ret;
short revents= 0;
short revents __attribute__((unused)) = 0;
struct pollfd pfd;
my_socket sd= mysql_socket_getfd(vio->mysql_socket);
MYSQL_SOCKET_WAIT_VARIABLES(locker, state) /* no ';' */
......
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