In the match, Warner scored 52 off 35 balls, consisting of five fours and three sixes. His runs came at a strike rate of 148.73.
Australia will take on Pakistan in the first Test at Perth on Thursday.
This is Warner's 46th international century, the most by an opener. He has 20 centuries in ODIs, 25 in Tests and one in T20Is.