• Barry Warsaw's avatar
    Eliminated gcc -Wall complaints: · 93d29b68
    Barry Warsaw yazdı
        - Quieted gcc -Wall by removing unused local variables.
    
        - Added some choice parentheses around assignments in conditional
          tests.
    
        - Removed an unused (and seemingly unreachable) err label in
          load_short_binstring().
    
        - in Unpickler_load(), removed \. in string format.
    
        - init_stuff() was declared to return an int, but had these
          problems:
    
    	- it was returning NULL instead of 0 or 1 in some cases
    	- it was falling of the end of the routine without returning
    	  anything
    	- the call of init_stuff() in initcPickle() was never checking
    	  the return value anyway.
    
          I changed all this by returning 1 in the case of errors, 0 when
          no error occurred.  Then in initcPickle(), if init_stuff()
          returns non-zero, I call Py_FatalError().
    
    Suppressing my urge to reformat according to Python coding standards!
    :-)
    93d29b68
cPickle.c 71.9 KB