diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-01-08 08:10:18 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-01-08 08:10:18 +0200 |
commit | cd1e5d65c6d3aab7f77860803d2d0f29bf307b4a (patch) | |
tree | 0f71f9eb04fe519072493dd23013e6766804fb27 /sql/sql_prepare.cc | |
parent | e25623e78a3efde05e30070dc7362f8dc0d8c459 (diff) | |
download | mariadb-git-cd1e5d65c6d3aab7f77860803d2d0f29bf307b4a.tar.gz |
MDEV-19838 fixup: clang -Wunused-const-variable
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 3144b36ff77..dc2fb414de9 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -1,5 +1,5 @@ /* Copyright (c) 2002, 2015, Oracle and/or its affiliates. - Copyright (c) 2008, 2019, MariaDB + Copyright (c) 2008, 2021, MariaDB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -117,15 +117,14 @@ When one supplies long data for a placeholder: #include <mysql.h> #else #include <mysql_com.h> +/* Constants defining bits in parameter type flags. Flags are read from high byte of short value */ +static const uint PARAMETER_FLAG_UNSIGNED= 128U << 8; #endif #include "lock.h" // MYSQL_OPEN_FORCE_SHARED_MDL #include "sql_handler.h" #include "transaction.h" // trans_rollback_implicit #include "wsrep_mysqld.h" -/* Constants defining bits in parameter type flags. Flags are read from high byte of short value */ -static const uint PARAMETER_FLAG_UNSIGNED = 128U << 8; - /** A result class used to send cursor rows using the binary protocol. */ |