mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
imporve clang build
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug Maintainer mode makes all warnings errors. This patch fix warnings. Mostly about deprecated `register` keyword. Too much warnings came from Mroonga and I gave up on it.
This commit is contained in:
@@ -1001,7 +1001,7 @@ Lex_input_stream::unescape(CHARSET_INFO *cs, char *to,
|
||||
bool Lex_input_stream::get_text(LEX_STRING *dst, uint sep,
|
||||
int pre_skip, int post_skip)
|
||||
{
|
||||
reg1 uchar c;
|
||||
uchar c;
|
||||
uint found_escape=0;
|
||||
CHARSET_INFO *cs= m_thd->charset();
|
||||
|
||||
@@ -1181,7 +1181,7 @@ static inline uint int_token(const char *str,uint length)
|
||||
*/
|
||||
bool consume_comment(Lex_input_stream *lip, int remaining_recursions_permitted)
|
||||
{
|
||||
reg1 uchar c;
|
||||
uchar c;
|
||||
while (! lip->eof())
|
||||
{
|
||||
c= lip->yyGet();
|
||||
@@ -1283,7 +1283,7 @@ int MYSQLlex(YYSTYPE *yylval, THD *thd)
|
||||
|
||||
static int lex_one_token(YYSTYPE *yylval, THD *thd)
|
||||
{
|
||||
reg1 uchar UNINIT_VAR(c);
|
||||
uchar UNINIT_VAR(c);
|
||||
bool comment_closed;
|
||||
int tokval, result_state;
|
||||
uint length;
|
||||
|
||||
Reference in New Issue
Block a user