1
0
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:
Leonid Fedorov
2022-12-27 19:07:28 +00:00
parent b4a6a35b40
commit d42485656c
11 changed files with 8 additions and 29 deletions

View File

@@ -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

View File

@@ -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;
}