[Python-Dev] 2.3.3 Compilation warnings... (original) (raw)
Troels Therkelsen troels at 2-10.org
Sat Dec 27 15:10:05 EST 2003
- Previous message: [Python-Dev] 2.3.3: test_import wreaks havoc when it runs out of memory
- Next message: [Python-Dev] 2.3.3 Compilation warnings...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey all,
I don't know what the policy on compilation warnings are with the development of Python, but I'd imagine that it's "no warnings".
I get the following warnings:
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes - I. -I./Include -DPy_BUILD_CORE -o Python/errors.o Python/errors.c Python/errors.c:602: warning: function declaration isn't a prototype
gcc -pthread -Xlinker -export-dynamic -o python
Modules/python.o
libpython2.3.a -lpthread -ldl -lutil -lm
libpython2.3.a(posixmodule.o): In function posix_tmpnam': /usr/local/src/Python-2.3.3/./Modules/posixmodule.c:5833: the use of
tmpnam_r'
is dangerous, better use mkstemp' libpython2.3.a(posixmodule.o): In function
posix_tempnam':
/usr/local/src/Python-2.3.3/./Modules/posixmodule.c:5788: the use of tempnam' is dangerous, better use
mkstemp'
building 'readline' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasin
g -I. -I/usr/local/src/Python-2.3.3/./Include -I/usr/local/include -I/usr/local/
src/Python-2.3.3/Include -I/usr/local/src/Python-2.3.3 -c
/usr/local/src/Python-2.3.3/Modules/readline.c -o
build/temp.linux-i686-2.3/readline.o
/usr/local/src/Python-2.3.3/Modules/readline.c: In function flex_complete': /usr/local/src/Python-2.3.3/Modules/readline.c:583: warning: implicit declaration of function
completion_matches'
/usr/local/src/Python-2.3.3/Modules/readline.c:583: warning: return makes
pointer from integer without a cast
I guess the warnings in posixmodule has always been there, I just haven't been paying much attention to it and I thought I might just as well report all warnings.
System specs:
$ uname -a Linux gateway 2.2.19 #22 Wed Jun 20 18:12:16 PDT 2001 i686 unknown
$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs gcc version 2.95.3 20010315 (release)
Regards,
Troels Therkelsen
- Previous message: [Python-Dev] 2.3.3: test_import wreaks havoc when it runs out of memory
- Next message: [Python-Dev] 2.3.3 Compilation warnings...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]