1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

chore(build): fixes to satisfy clang19 warnings

This commit is contained in:
Leonid Fedorov
2025-05-08 15:26:36 +00:00
committed by Leonid Fedorov
parent 9fd7f342a7
commit a0bee173f6
334 changed files with 3062 additions and 3323 deletions

View File

@ -59,13 +59,9 @@ const string IDB_date_format(const DateTime& dt, const string& format, bool& isN
switch (format[i])
{
case 'M':
oss << helpers::monthFullNames[dt.month];
break;
case 'M': oss << helpers::monthFullNames[dt.month]; break;
case 'b':
oss << helpers::monthAbNames[dt.month].c_str();
break;
case 'b': oss << helpers::monthAbNames[dt.month].c_str(); break;
case 'W':
weekday = helpers::calc_mysql_weekday(dt.year, dt.month, dt.day, false, isNull);
@ -83,9 +79,7 @@ const string IDB_date_format(const DateTime& dt, const string& format, bool& isN
oss << helpers::weekdayAbNames[weekday];
break;
case 'D':
oss << helpers::dayOfMonth[dt.day].c_str();
break;
case 'D': oss << helpers::dayOfMonth[dt.day].c_str(); break;
case 'Y':
sprintf(buf, "%04d", dt.year);
@ -227,8 +221,8 @@ const string IDB_date_format(const DateTime& dt, const string& format, bool& isN
}
} // namespace helpers
CalpontSystemCatalog::ColType Func_date_format::operationType(FunctionParm& fp,
CalpontSystemCatalog::ColType& resultType)
CalpontSystemCatalog::ColType Func_date_format::operationType(FunctionParm& /*fp*/,
CalpontSystemCatalog::ColType& /*resultType*/)
{
CalpontSystemCatalog::ColType ct;
ct.colDataType = CalpontSystemCatalog::VARCHAR;