I find this way of silencing warning cumbersome and problematic. Often, one has seen the warning and switches it off at one particular place in the code. With the above this is switched off for the entire code and people might not see that somewhere else ignoring the warning doesn't make sense.