mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -457,7 +457,7 @@ char *ARRAY::GetStringValue(int n)
|
||||
/***********************************************************************/
|
||||
bool ARRAY::Find(PVAL valp)
|
||||
{
|
||||
register int n;
|
||||
int n;
|
||||
PVAL vp;
|
||||
|
||||
if (Type != valp->GetType()) {
|
||||
@@ -1065,7 +1065,7 @@ MULAR::MULAR(PGLOBAL g, int n) : CSORT(false)
|
||||
/***********************************************************************/
|
||||
int MULAR::Qcompare(int *i1, int *i2)
|
||||
{
|
||||
register int i, n = 0;
|
||||
int i, n = 0;
|
||||
|
||||
for (i = 0; i < Narray; i++)
|
||||
if ((n = Pars[i]->Qcompare(i1, i2)))
|
||||
|
Reference in New Issue
Block a user