Pakistan were dismissed for 313 on the opening day of the third Test against Australia in Sydney.
In reply, Australia safely negotiated an over to head to stumps at 6-0. Warner, playing his final Test, smashed a four on the first ball by Sajid Khan to begin his innings.
Pakistan team gave a guard of honour to Warner with the entire crowd applauding the star batter as he made his way out to the middle.
Aamer Jamal scored a crucial fifty lower down the order to help Pakistan post a competitive total on the board.
Jamal and tailender Mir Hamza added 86 runs for the last wicket to get Pakistan past 300 despite being reduced to 227-9 at one stage.
Jamal scored 82 runs in 97 balls, which included nine fours and four sixes.
Hamza provided Jamal with able support from the other end and remained not out on seven runs in 43 balls.
Earlier, Mohammad Rizwan and Agha Salman took the attack to Australia to help Pakistan recover from a rocky start.
After slipping to 96 for five soon after lunch, Rizwan and Salman stitched a pulsating 94-run partnership before Rizwan was dismissed just before tea for 88.
Rizwan, who was left out for the first Test, smashed two sixes and 10 fours off 103 balls before he fell to a legside trap set by Pat Cummins.
Rizwan top-edged a pull shot for Josh Hazlewood to take the catch at fine leg after posting the highest individual score by a Pakistan batter of the series.
After the tea break, Mitchell Star got rid of Agha Salman after the latter had scored 53 runs in 67 balls.
Cummins, who was the pick of the bowlers with figures of 5-61, became the first Australian to take three consecutive five-wicket hauls in Tests since Nathan Lyon in 2017.
Pakistan made a disastrous start after winning the toss, losing four wickets in the opening session and skipper Shan Masood shortly after lunch for 35.
It was a rousing morning session for the Australians, who are looking to send off 37-year-old opening batter David Warner as a winner in his home city in his 112th and final Test match.
Openers Abdullah Shafique and debutant Saim Ayub were dismissed inside the first two overs.
The out-of-form Shafique fell to the second ball of Mitchell Starc´s opening over, needlessly playing a loose drive and nicking a catch to Steve Smith at second slip for a duck.
Ayub, brought in for Imam-ul-Haq to make his Test debut, only lasted two balls before he fell to a Hazlewood outswinger in the next over, snapped up behind by Alex Carey.
Pakistan lurched to four for two and for a time looked to be consolidating with Babar Azam playing three glorious cover drives to the ropes before he was out on first-hour drinks for 26.
Cummins appealed vociferously for lbw but was turned down by the umpire, only to seek a review and get the verdict he sought, leaving the tourists tottering at 39 for three.
Saud Shakeel copped a nasty blow on the collarbone from a Cummins lifter and in the Australian skipper´s next over he prodded a catch behind to Carey for five, leaving his side further in the mire at 47 for four.
Masood had a big moment on 32 in the second over after lunch when he was caught by Smith at second slip but it was ruled a no-ball from bowler Mitchell Marsh.
Marsh got the last laugh two overs later when Masood, on 35, again edged the medium-pacer to Smith in almost identical fashion to leave Pakistan at 96 for five.
Australia bagged the three-match series with a 79-run win in the second Test in Melbourne.