You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Fix clang 16 warnings for comfort build
This commit is contained in:
@@ -1131,7 +1131,7 @@ bool mysql_str_to_time(const string& input, Time& output, long decimals)
|
||||
output.minute = 59;
|
||||
output.second = 59;
|
||||
output.msecond = exp10(decimals) - 1;
|
||||
output.is_neg = 1;
|
||||
output.is_neg = -1;
|
||||
}
|
||||
// If neither of the above match then we return a 0 time
|
||||
else
|
||||
|
@@ -971,7 +971,7 @@ struct Time
|
||||
signed is_neg : 1;
|
||||
|
||||
// NULL column value = 0xFFFFFFFFFFFFFFFE
|
||||
Time() : msecond(-2), second(-1), minute(-1), hour(-1), day(-1), is_neg(0b1)
|
||||
Time() : msecond(-2), second(-1), minute(-1), hour(-1), day(-1), is_neg(-1)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -990,7 +990,7 @@ struct Time
|
||||
: msecond(msec), second(sec), minute(min), hour(h), day(d), is_neg(neg)
|
||||
{
|
||||
if (h < 0)
|
||||
is_neg = 0b1;
|
||||
is_neg = -1;
|
||||
}
|
||||
|
||||
int64_t convertToMySQLint() const;
|
||||
@@ -1003,7 +1003,7 @@ inline void Time::reset()
|
||||
second = -1;
|
||||
minute = -1;
|
||||
hour = -1;
|
||||
is_neg = 0b1;
|
||||
is_neg = -1;
|
||||
day = -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user