1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-1376 Fix compiler errors in Ubuntu 18.04

Ubuntu 18.04 uses GCC 7.3 which is a little stricter than before.

Fixes a few errors due to implicit includes that are no longer implicit
and a ton of warnings about the implied alignment of code in
utils/common/any.hpp
This commit is contained in:
Andrew Hutchings
2018-05-02 09:40:27 +01:00
parent 47ccb3f259
commit b83c21d891
4 changed files with 24 additions and 12 deletions

View File

@ -48,7 +48,7 @@ using namespace dataconvert;
namespace
{
//returns the value of 10 raised to the power x.
inline double pow10(double x)
inline double exp10(double x)
{
return exp(x * M_LN10);
}
@ -460,7 +460,7 @@ void TupleUnion::normalize(const Row& in, Row* out)
if (in.getScale(i))
{
double d = in.getIntField(i);
d /= pow10(in.getScale(i));
d /= exp10(in.getScale(i));
os.precision(15);
os << d;
}
@ -570,7 +570,7 @@ dec1:
if (in.getScale(i))
{
double d = in.getUintField(i);
d /= pow10(in.getScale(i));
d /= exp10(in.getScale(i));
os.precision(15);
os << d;
}