We're updating the issue view to help you get more done.Learn more

Build fails with clang on amd64

When building MariaDB 10.0.14 using clang 3.3 on FreeBSD amd64, there's a compile error in storage/connect/filamap.h

107: virtual int GetNextPos(void)

{return (int)Fpos + Nrec;}

error: cast from pointer to smaller type 'int' loses information

int is a 32-bit type this will not fit a memory address of a 64-bit platform. This should probably be handled using a uintptr_t type which should be available on all platforms.

Status

Assignee

Olivier Bertrand

Reporter

Bernard Spil

Labels

Components

Fix versions

Affects versions

10.0.14

Priority

Minor