You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
New warnfixes (#2254)
* Fix clang warnings * Remove vim tab guides * initialize variables * 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length * Fix ISO C++17 does not allow 'register' storage class specifier for outdated bison * chars are unsigned on ARM, having if (ival < 0) always false * chars are unsigned by default on ARM and comparison with -1 if always true
This commit is contained in:
@ -639,14 +639,7 @@ int ServiceDMLProc::Child()
|
||||
|
||||
// Couldn't check the return code b/c
|
||||
// fuser returns 1 for unused port.
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-result"
|
||||
(void)::system(cmd.c_str());
|
||||
#pragma GCC diagnostic pop
|
||||
#else
|
||||
(void)::system(cmd.c_str());
|
||||
#endif
|
||||
std::ignore = ::system(cmd.c_str());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -698,4 +691,3 @@ int main(int argc, char** argv)
|
||||
return ServiceDMLProc(opt).Run();
|
||||
}
|
||||
|
||||
// vim:ts=4 sw=4:
|
||||
|
Reference in New Issue
Block a user