The Catholic Church has never taught that war and the death penalty are intrinsically evil, but that they can be justified under certain serious conditions,
If you're interested, you can find a much fuller treatment of the Catholic doctrine on the death penalty and on war in the Catechism, and I can assure you that no pope is going to contradict this.
Thanks Mrs. Don-o. I am interested, and I will use the links you were kind enough to provide to learn more about Catholic doctrine on those matters.