Building for OS X produces a few "implicit conversion shortens 64-bit value into a 32-bit value" warnings:
Bogdans-MacBook-Pro:MySQL-python-1.2.3 bhapca$ ARCHFLAGS="-arch x86_64" python setup.py build
running build
running build_py
creating build/lib.macosx-10.7-x86_64-2.7
copying _mysql_exceptions.py -> build/lib.macosx-10.7-x86_64-2.7
creating build/lib.macosx-10.7-x86_64-2.7/MySQLdb
copying MySQLdb/init.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb
creating build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/init.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.7-x86_64-2.7/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.7-x86_64-2.7
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -Dversion=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-x86_64-2.7/_mysql.o -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
In file included from _mysql.c:36:
/usr/local/mysql/include/my_config.h:1088:1: warning: "HAVE_WCSCOLL" redefined
In file included from /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:8,
from pymemcompat.h:10,
from _mysql.c:29:
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:891:1: warning: this is the location of the previous definition
_mysql.c: In function ‘_mysql_server_init’:
_mysql.c:253: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c:278: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c: In function ‘_mysql_ResultObject_Initialize’:
_mysql.c:405: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c: In function ‘_mysql_escape_string’:
_mysql.c:986: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c:988: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c: In function ‘_mysql_string_literal’:
_mysql.c:1016: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c:1025: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c:1027: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c: In function ‘_mysql_escape_sequence’:
_mysql.c:1111: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c: In function ‘_mysql_row_to_dict’:
_mysql.c:1298: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c:1300: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c: In function ‘_mysql_row_to_dict_old’:
_mysql.c:1336: warning: implicit conversion shortens 64-bit value into a 32-bit value
_mysql.c:1338: warning: implicit conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. build/temp.macosx-10.7-x86_64-2.7/_mysql.o -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm -lmygcc -o build/lib.macosx-10.7-x86_64-2.7/_mysql.so -arch x86_64
This patch is an attempt at fixing those.