As it was already said, if all that bothers you is that warning message and nothing more, there is no need to send a patch, especially with a dirty hack.
Ok, but this warining did not appear before ! Is there a regression somewhere in the code ?
Stephan