S1128 false-positive when obsolete attribute is used

I think the title is misleading; it is not about the [Obsolete] attribute but the #if pragma. That aside it is a FP indeed.