1
0
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:
Leonid Fedorov
2022-02-17 13:08:58 +03:00
committed by GitHub
parent 15a87ee510
commit 3919c541ac
325 changed files with 20 additions and 353 deletions

View File

@ -72,4 +72,3 @@ const string FrameBound::toString() const
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -145,4 +145,3 @@ extern std::map<int, std::string> colType2String;
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -411,4 +411,3 @@ template class FrameBoundExpressionRange<float>;
template class FrameBoundExpressionRange<uint64_t>;
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -213,4 +213,3 @@ class FrameBoundExpressionRange : public FrameBoundConstantRange<T>
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -139,4 +139,3 @@ template class FrameBoundExpressionRow<float>;
template class FrameBoundExpressionRow<uint64_t>;
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -146,4 +146,3 @@ class FrameBoundExpressionRow : public FrameBoundConstantRow
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -900,4 +900,3 @@ bool IdbOrderBy::Eq::operator()(const Row::Pointer& d1, const Row::Pointer& d2)
}
} // namespace ordering
// vim:ts=4 sw=4:

View File

@ -184,4 +184,3 @@ template boost::shared_ptr<WindowFunctionType> WF_count<int64_t>::makeFunction(i
WindowFunctionColumn*);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -47,4 +47,3 @@ class WF_count : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -306,4 +306,3 @@ template void WF_lead_lag<double>::parseParms(const std::vector<execplan::SRCP>&
template void WF_lead_lag<string>::parseParms(const std::vector<execplan::SRCP>&);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -52,4 +52,3 @@ class WF_lead_lag : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -185,4 +185,3 @@ template boost::shared_ptr<WindowFunctionType> WF_min_max<int64_t>::makeFunction
WindowFunctionColumn*);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -46,4 +46,3 @@ class WF_min_max : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -271,4 +271,3 @@ template boost::shared_ptr<WindowFunctionType> WF_nth_value<int64_t>::makeFuncti
WindowFunctionColumn*);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -50,4 +50,3 @@ class WF_nth_value : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -154,4 +154,3 @@ void WF_ntile::operator()(int64_t b, int64_t e, int64_t c)
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -47,4 +47,3 @@ class WF_ntile : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -382,4 +382,3 @@ template boost::shared_ptr<WindowFunctionType> WF_percentile<int64_t>::makeFunct
WindowFunctionColumn*);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -48,4 +48,3 @@ class WF_percentile : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -145,4 +145,3 @@ void WF_ranking::operator()(int64_t b, int64_t e, int64_t c)
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -46,4 +46,3 @@ class WF_ranking : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -86,4 +86,3 @@ void WF_row_number::operator()(int64_t b, int64_t e, int64_t c)
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -45,4 +45,3 @@ class WF_row_number : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -239,4 +239,3 @@ template boost::shared_ptr<WindowFunctionType> WF_stats<int64_t>::makeFunction(i
WindowFunctionColumn*);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -48,4 +48,3 @@ class WF_stats : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -306,4 +306,3 @@ template boost::shared_ptr<WindowFunctionType> WF_sum_avg<int64_t, long double>:
int, const string&, int, WindowFunctionColumn*);
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -60,4 +60,3 @@ class WF_sum_avg : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -1191,4 +1191,3 @@ void WF_udaf::operator()(int64_t b, int64_t e, int64_t c)
fPrev = c;
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -112,4 +112,3 @@ class WF_udaf : public WindowFunctionType
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -81,4 +81,3 @@ const string WindowFrame::toString() const
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -119,4 +119,3 @@ class WindowFrame
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -259,4 +259,3 @@ void WindowFunction::sort(std::vector<RowPosition>::iterator v, uint64_t n)
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -111,4 +111,3 @@ class WindowFunction
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -797,4 +797,3 @@ void WindowFunctionType::constParms(const std::vector<SRCP>& functionParms)
}
} // namespace windowfunction
// vim:ts=4 sw=4:

View File

@ -303,4 +303,3 @@ extern std::map<int, std::string> colType2String;
} // namespace windowfunction
// vim:ts=4 sw=4: