It seems to me you are trying to deal with an imaginary problem that almost certainly has nothing to do with any of the compiler warnings you want to clean up.

But I could be wrong. Why don't you post the warnings?