1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00

Another try to cope with warnings under gcc 8.2.

This commit is contained in:
Roman Nozdrin
2018-11-30 13:24:58 +03:00
parent cbbf267e88
commit 9dc33c4e82
37 changed files with 145 additions and 100 deletions

View File

@@ -272,9 +272,7 @@ int main(int argc, char* argv[])
//check if root-user
int user;
int usergroup;
user = getuid();
usergroup = getgid();
string SUDO = "";
if (user != 0)
@@ -1412,7 +1410,7 @@ int main(int argc, char* argv[])
{
string amazonLog = tmpDir + "/amazon.log";
string cmd = "aws --version > " + amazonLog + " 2>&1";
int rtnCode = system(cmd.c_str());
system(cmd.c_str());
ifstream in(amazonLog.c_str());
@@ -1973,7 +1971,7 @@ int main(int argc, char* argv[])
}
}
unsigned int maxPMNicCount = 1;
int maxPMNicCount = 1;
//configure module type
bool parentOAMmoduleConfig = false;
@@ -2110,7 +2108,7 @@ int main(int argc, char* argv[])
//clear any Equipped Module IP addresses that aren't in current ID range
for ( int j = 0 ; j < listSize ; j++ )
{
for ( unsigned int k = 1 ; k < MaxNicID+1 ; k++)
for ( int k = 1 ; k < MaxNicID+1 ; k++)
{
string ModuleIPAddr = "ModuleIPAddr" + oam.itoa(j + 1) + "-" + oam.itoa(k) + "-" + oam.itoa(i + 1);
@@ -2184,8 +2182,7 @@ int main(int argc, char* argv[])
}
}
}
unsigned int nicID=1;
int nicID=1;
for( ; nicID < MaxNicID +1 ; nicID++ )
{
if ( !found )
@@ -3546,7 +3543,7 @@ int main(int argc, char* argv[])
for ( int pmsID = 1; pmsID < pmPorts + 1 ; )
{
for (unsigned int j = 1 ; j < maxPMNicCount + 1 ; j++)
for (int j = 1 ; j < maxPMNicCount + 1 ; j++)
{
PerformanceModuleList::iterator list1 = performancemodulelist.begin();
@@ -4007,9 +4004,11 @@ int main(int argc, char* argv[])
break;
}
if ( pass1 == "exit")
if ( strncmp(pass1, "exit", 4) )
{
exit(0);
}
string p1 = pass1;
pass2 = getpass("Confirm password > ");
string p2 = pass2;
@@ -6417,7 +6416,6 @@ bool glusterSetup(string password, bool doNotResolveHostNames)
Oam oam;
int dataRedundancyCopies = 0;
int dataRedundancyNetwork = 0;
int dataRedundancyStorage = 0;
int numberDBRootsPerPM = DBRootCount / pmNumber;
int numberBricksPM = 0;
std::vector<int> dbrootPms[DBRootCount];