You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +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:
@ -522,7 +522,7 @@ IDB_Decimal Func_truncate::getDecimalVal(Row& row, FunctionParm& parm, bool& isN
|
||||
{
|
||||
// strip off micro seconds
|
||||
value = value.substr(0, 14);
|
||||
int64_t x = atoll(value.c_str());
|
||||
x = atoll(value.c_str());
|
||||
|
||||
if (s > 5)
|
||||
s = 0;
|
||||
@ -613,7 +613,7 @@ IDB_Decimal Func_truncate::getDecimalVal(Row& row, FunctionParm& parm, bool& isN
|
||||
{
|
||||
// strip off micro seconds
|
||||
value = value.substr(0, 14);
|
||||
int64_t x = atoll(value.c_str());
|
||||
x = atoll(value.c_str());
|
||||
|
||||
if (s > 5)
|
||||
s = 0;
|
||||
@ -721,4 +721,3 @@ int64_t Func_truncate::getTimestampIntVal(rowgroup::Row& row, FunctionParm& parm
|
||||
}
|
||||
|
||||
} // namespace funcexp
|
||||
// vim:ts=4 sw=4:
|
||||
|
Reference in New Issue
Block a user