Bug #68348 Compiler warnings on Windows x64 platform
Submitted: 12 Feb 2013 10:45 Modified: 16 Jan 2014 10:33
Reporter: Manuel Matonin Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.6.10 OS:Windows
Assigned to: CPU Architecture:Any

[12 Feb 2013 10:45] Manuel Matonin
Description:
I am using the following build system:

cmake version 2.8.10.2
bison (GNU Bison) 2.4.1
Microsoft (R) Visual Studio Version 9.0.30729.1
OS Version 6.1.7601 Service Pack 1 Build 7601

When I start the build then I get enormous amount of "possible loss of data" warnings. Is it related to CMAKE or improper INCLUDE paths ?

Below is just a small portion:

50>.\handler\ha_innodb.cc(8763) : warning C4244: 'argument' : conversion from 'ulint' to 'unsigned int', possible loss of data
50>.\handler\ha_innodb.cc(8768) : warning C4244: 'argument' : conversion from 'ulint' to 'unsigned int', possible loss of data
50>.\handler\ha_innodb.cc(8777) : warning C4244: 'argument' : conversion from 'ulint' to 'unsigned int', possible loss of data
50>.\handler\ha_innodb.cc(8782) : warning C4244: 'argument' : conversion from 'ulint' to 'unsigned int', possible loss of data
50>.\handler\ha_innodb.cc(8811) : warning C4244: 'argument' : conversion from 'ulint' to 'unsigned int', possible loss of data
50>.\handler\ha_innodb.cc(8829) : warning C4244: 'argument' : conversion from 'ulint' to 'unsigned int', possible loss of data
45>h:\work\mysql\mysql-5.5.30\sql\sql_error.h(514) : warning C4267: 'argument' : conversion from 'size_t' to 'uint', possible loss of data
46>myrg_open.c
50>.\handler\ha_innodb.cc(9561) : warning C4267: '=' : conversion from 'size_t' to 'uint', possible loss of data
50>.\handler\ha_innodb.cc(9572) : warning C4267: '=' : conversion from 'size_t' to 'uint', possible loss of data
50>.\handler\ha_innodb.cc(9641) : warning C4267: '=' : conversion from 'size_t' to 'uint', possible loss of data
50>.\handler\ha_innodb.cc(9643) : warning C4267: '=' : conversion from 'size_t' to 'uint', possible loss of data
50>.\handler\ha_innodb.cc(9682) : warning C4267: '=' : conversion from 'size_t' to 'uint', possible loss of data

How to repeat:
cmake . -DSIGNCODE=0 -DBUILD_CONFIG=mysql_release -G "Visual Studio 9 2008 Win64"
devenv.exe MySQL.sln /build Debug > debug_output.log
[12 Feb 2013 11:12] MySQL Verification Team
Thanks for a bug report.  In fact this is already known problem, and there is an internal worklog to cleanup these warnings.
[12 Feb 2013 11:13] Manuel Matonin
Shane, can you point me a work around ?
[12 Feb 2013 14:45] Manuel Matonin
I think this information needs to be documented on "Building MySQL from Source" knowledge page. Currently, it is not mentioned, this may lead to building unsafe binaries.
[16 Jan 2014 10:33] Ståle Deraas
Duplicate of bug#43915