One of the
mysql()
calls is probably returning type
my_ulonglong
, usually a type "long long" integer is a 64-bit integer, so the compiler's telling you that you may lose data when placing the value of a "long long" integer to a regular 32-bit integer. If you don't expect the result to ever exceed the maximum value of a 32-bit integer, then just do an explicit cast to keep the warning from coming up, otherwise, pass the value onto a 64-bit integer instead.
Explicit Cast:
unsigned int val = (unsigned int) mysqlblah();
Or set your return int to a 64-bit int (two alternatives):
unsigned long long val = mysqlblah();
unsigned __int64 val = mysqlblah();
Here's a reference page:
http://msdn.microsoft.com/en-us/library/s3f49ktz%28v=vs.80%29.aspx[
^]