You'll get the warning if you do any offensive actions (sallying out from a besieged castle counts as an offensive action) if the catholic faction less than 50% (I think it was that size) of your size. On the positive side, the pope can only give out one warning at the time, so you'll get a carte blanche against any other catholic faction.

This will happen, no matter the stance with the pope.