I've had mixed results warning people before passing them on MUPs. I found that too often, announcing myself causes them to react in a way that endangers them and/or me. If they are well to the right and seem to be heading straight, I will usually pass without comment. If I feel they are likely to do something that will impair my ability to pass or they are taking the whole path, I'll call out far enough back to see how they react.