[issue1616] compiler warnings

Ezio Melotti report at bugs.python.org
Sat Mar 13 07:14:06 CET 2010


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

After fixing some warning on _cursesmodule.c in r78900 I found this issue and generated an updated list of all the warnings on trunk on the buildbots. When two or more buildbots had the same warnings I grouped them together, showing the url of the buildbot first and then the warnings.

http://www.python.org/dev/buildbot/builders/x86%20XP-4%20trunk
http://www.python.org/dev/buildbot/builders/x86%20XP-5%20trunk
http://www.python.org/dev/buildbot/builders/x86%20Windows7%20trunk
7>..\Objects\bufferobject.c(406) : warning C4018: '<=' : signed/unsigned mismatch
7>..\Modules\zlib\gzio.c(131) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(181) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(226) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(627) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(1001) : warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(1008) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(1009) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
7>..\Modules\zlib\gzio.c(1010) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
21>..\Modules\_ctypes\libffi_msvc\ffi.c(113) : warning C4018: '>' : signed/unsigned mismatch
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

http://www.python.org/dev/buildbot/builders/x86%20Ubuntu%20trunk
http://www.python.org/dev/buildbot/builders/i386%20Ubuntu%20trunk
http://www.python.org/dev/buildbot/builders/alpha%20Debian%20trunk
http://www.python.org/dev/buildbot/builders/amd64%20gentoo%20trunk
http://www.python.org/dev/buildbot/builders/AMD64%20Ubuntu%20trunk
http://www.python.org/dev/buildbot/builders/AMD64%20Ubuntu%20wide%20trunk
/home/db3l/buildarea/trunk.bolen-ubuntu/build/./Modules/posixmodule.c:7223: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/home/db3l/buildarea/trunk.bolen-ubuntu/build/./Modules/posixmodule.c:7178: warning: the use of `tempnam' is dangerous, better use `mkstemp'

http://www.python.org/dev/buildbot/builders/ia64%20Ubuntu%20trunk
/home/pybot/buildarea/trunk.klose-debian-ia64/build/./Modules/posixmodule.c:7223: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/home/pybot/buildarea/trunk.klose-debian-ia64/build/./Modules/posixmodule.c:7178: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/home/pybot/buildarea/trunk.klose-debian-ia64/build/Modules/_ctypes/libffi/src/ia64/ffi.c:401: warning: function declaration isn't a prototype

http://www.python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%20trunk
/home2/buildbot/slave/trunk.loewis-sun/build/Modules/_cursesmodule.c:706: warning: implicit declaration of function `mvwchgat'
/home2/buildbot/slave/trunk.loewis-sun/build/Modules/_cursesmodule.c:710: warning: implicit declaration of function `wchgat'

http://www.python.org/dev/buildbot/builders/x86%20FreeBSD%20trunk
./Modules/posixmodule.c:7225: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
./Modules/posixmodule.c:7178: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Modules/_ssl.c:706: warning: passing arg 2 of `ASN1_item_d2i' from incompatible pointer type
/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Modules/_ssl.c:710: warning: passing arg 2 of pointer to function from incompatible pointer type
/usr/local/include/gdbm.h:85: warning: function declaration isn't a prototype
/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Modules/dlmodule.c:189: warning: initialization discards qualifiers from pointer target type
/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Modules/_ctypes/callproc.c:1411: warning: initialization discards qualifiers from pointer target type

http://www.python.org/dev/buildbot/builders/x86%20FreeBSD%207.2%20trunk
: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
/usr/home/db3l/buildarea/trunk.bolen-freebsd7/build/Modules/dlmodule.c:189: warning: initialization discards qualifiers from pointer target type
/usr/home/db3l/buildarea/trunk.bolen-freebsd7/build/Modules/_ctypes/callproc.c:1411: warning: initialization discards qualifiers from pointer target type

http://www.python.org/dev/buildbot/builders/x86%20gentoo%20trunk
Modules/posixmodule.c:7223: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
Modules/posixmodule.c:7178: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/home/buildslave/python-trunk/trunk.norwitz-x86/build/Modules/_ssl.c:706: warning: passing arg 2 of `ASN1_item_d2i' from incompatible pointer type
/home/buildslave/python-trunk/trunk.norwitz-x86/build/Modules/_ssl.c:710: warning: passing arg 2 of pointer to function from incompatible pointer type

----------
nosy: +ezio.melotti
stage:  -> needs patch
type:  -> compile error
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1616>
_______________________________________


More information about the Python-bugs-list mailing list