While fiddling around with the _GNU_SOURCE define I found that there are several warnings left in the current CVS version which should be removed, I guess. Here's the list I get from compiling the tree using -Wall grouped by C file: bufferobject.c: In function `PyBuffer_New': bufferobject.c:174: warning: value computed is not used classobject.c: In function `instance_dealloc': classobject.c:526: warning: unused variable `_Py_RefTotal' object.c: In function `_PyTrash_deposit_object': object.c:1172: warning: unused variable `hold' object.c:1171: warning: `typecode' might be used uninitialized in this function ceval.c: In function `eval_code2': ceval.c:333: warning: `opcode' might be used uninitialized in this function ceval.c:334: warning: `oparg' might be used uninitialized in this function pystate.c: In function `PyInterpreterState_New': pystate.c:45: warning: value computed is not used ./gcmodule.c: In function `debug_cycle': ./gcmodule.c:295: warning: unsigned int format, long unsigned int arg (arg 5) ./gcmodule.c: In function `collect': ./gcmodule.c:374: warning: int format, long int arg (arg 3) ./gcmodule.c:374: warning: int format, long int arg (arg 4) ./gcmodule.c:374: warning: int format, long int arg (arg 5) ./gcmodule.c:438: warning: int format, long int arg (arg 3) ./gcmodule.c:438: warning: int format, long int arg (arg 4) ./gcmodule.c: In function `collect_generations': ./gcmodule.c:458: warning: `n' might be used uninitialized in this function ./pypcre.c: In function `compile_branch': ./pypcre.c:1222: warning: `c' might be used uninitialized in this function ./pypcre.c: In function `pcre_exec': ./pypcre.c:4524: warning: variable `start_bits' might be clobbered by `longjmp' or `vfork' ./pypcre.c:4525: warning: variable `start_match' might be clobbered by `longjmp' or `vfork' ./posixmodule.c: At top level: ./posixmodule.c:496: warning: `posix_strint' defined but not used _sre.c: In function `pattern_match': _sre.c:819: warning: `mark1' might be used uninitialized in this function _sre.c:819: warning: `mark0' might be used uninitialized in this function ./_sre.c:819: warning: `mark1' might be used uninitialized in this function ./_sre.c:819: warning: `mark0' might be used uninitialized in this function _sre.c: In function `pattern_search': _sre.c:985: warning: `prefix_len' might be used uninitialized in this function _sre.c:819: warning: `mark0' might be used uninitialized in this function [...many more of these... all referencing line 819] In file included from ./mmapmodule.c:24: ../Include/Python.h:18: warning: `_GNU_SOURCE' redefined ./mmapmodule.c:21: warning: this is the location of the previous definition [...looks like someone needed _GNU_SOURCE too ;-)...] ./parsermodule.c: In function `validate_arglist': ./parsermodule.c:2089: warning: `ok' might be used uninitialized in this function -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4