Is there a general rule about disabling warnings in your code?
In my particular case, an unreachable code warning was issued because of an if statement testing a constant value, where it could be replaced with a compilation directive.
I believe that code where you have 100% of control over should never require #pragma warning disable XXXX
.