[Python-Dev] -Wall output for the Python 2.0c1

Fred L. Drake, Jr. fdrake@beopen.com
Tue, 10 Oct 2000 17:13:47 -0400 (EDT)


M.-A. Lemburg writes:
 > ceval.c: In function `eval_code2':
 > ceval.c:345: warning: `v' might be used uninitialized in this function
 > ceval.c:346: warning: `w' might be used uninitialized in this function
 > ceval.c:347: warning: `u' might be used uninitialized in this function
 > ceval.c:348: warning: `t' might be used uninitialized in this function

  These would be a real tedium to fix, and I'm not convinced the loss
of clarity is worth it.  From looking at the code in the DUP_TOPX
code, I'm led to think that the compiler just isn't smart enough (it
should figure out that oparg won't change before the second case
statement, and figure it out more carefully.  I'll bet *that* would
remove these warnings and still right in all cases.

 > errors.c: In function `PyErr_Format':
 > errors.c:409: warning: value computed is not used
 > errors.c:415: warning: value computed is not used

  Fixed.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at beopen.com>
BeOpen PythonLabs Team Member