in december 1861, warner joined the volunteer army as major of the 76th ohio infantry. he served in several battles in the western theater, including the battle of fort donelson, the siege of corinth, and the vicksburg campaign. in 1863 he became lieutenant colonel of the regiment, which he led from vicksburg to chattanooga. he served on the staff of william t. sherman during the atlanta campaign as the inspector general.