[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-14 Thread Mark Dickinson
Mark Dickinson added the comment: The latest patch looks good to me, and results in a much cleaner looking _struct.c. Thank you! One worry: the issue 4228 discussion suggests that the zipfile module still relies on the deprecated wrapping. I think this needs to be investigated (and fixed i

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-11 Thread Andreas Schawo
Changes by Andreas Schawo : Removed file: http://bugs.python.org/file13288/get_ulong_patch.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-11 Thread Andreas Schawo
Andreas Schawo added the comment: Hi Mark, I've removed all overflow masking from _struct.c. Running the regression test test_struct failed for test_issue4228 wich I think have to be removed too because it tests the deprecated feature. I've tested the constraints with some values and got the

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch! Certainly it's desirable to get rid of this warning, especially as in this case the warning indicates a genuine problem: namely that there's unused code floating around. I think it would not be unreasonable to simply remove the code tha

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-09 Thread Andreas Schawo
New submission from Andreas Schawo : When compiling the newest 3.x trunk I've got a compiler warning that get_ulong is defined but never used. I moved the function near the only place where it is used (disabled code). Now I have no more warnings. I don't know if it's of any use. -- co