Warsh had strong words about his commitment to fighting inflation.
Inflation rose for a third consecutive month amid the Iran war, matching expectations.
A key inflation gauge accelerated in April to the highest level in three years, the latest sign that spiking gas prices and higher food costs are squeezing Americans' finances.
Americans are facing price increases on everything from gas to groceries, prompting people to search for new ways to save.
Prices that both consumers and wholesalers pay for goods and services have increased over the past month, according to new data.
President Donald Trump said Americans' financial situation was "not even a little bit" of a motivating factor for him reaching a deal to end the war in Iran.