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:
@ -1418,7 +1418,7 @@ boost::any DataConvert::StringToUDecimal(const datatypes::SystemCatalog::TypeAtt
|
||||
{
|
||||
int64_t val64;
|
||||
number_int_value(data, typeCode, colType, pushWarning, prm.noRoundup(), val64);
|
||||
char ival = (char)val64;
|
||||
signed char ival = (signed char)val64;
|
||||
|
||||
if (ival < 0 && ival != static_cast<int8_t>(joblist::TINYINTEMPTYROW) &&
|
||||
ival != static_cast<int8_t>(joblist::TINYINTNULL))
|
||||
@ -3388,4 +3388,3 @@ void DataConvert::joinColTypeForUnion(datatypes::SystemCatalog::TypeHolderStd& u
|
||||
}
|
||||
|
||||
} // namespace dataconvert
|
||||
// vim:ts=4 sw=4:
|
||||
|
Reference in New Issue
Block a user