I would recommend not turning off this warning: simply because it will lead to buggy code. If you eliminate the warning by not showing it, then you may end up with a runtime error which is a magnitude harder to fix (as well as costly and time consuming). Personally, I don't like programs which crash unexpectedly, I don't know about you.
It's pretty trivial to check for null exceptions (you need that in there), and even initialize the structure to some default values. The overhead is minimal compared to the potential of a runtime error.
|