Paddy McNair’s excellent first-half free-kick decided the game as Boro produced an improved performance following a surprising defeat at York City earlier in the week.
Trialists Sol Bamba and Jamie Paterson also came off the bench in the second half as both sides made plenty of changes to give players minutes ahead of the new campaign.
Boro will play their Championship opener at Fulham in just over a week’s time on Sunday, August 8.
Warnock will hope he can make more signings before the game at Craven Cottage and has admitted his squad remains thin following several first-team departures this summer.
Marcus Tavernier, Marc Bola and Sammy Ameobi all missed the Rotherham game through injury.
Here’s how each Boro player fared.