in reply to gunzip exception
The warning is there to tell you (the programmer) that you're doing something wrong. The easiest step would be to stop doing the wrong thing.