Warberg attended the
Royal Swedish Army Staff College in 1867 and was promoted to lieutenant the year after. In 1871 he was appointed general staff officer and was in 1874 appointed staff adjutant and lieutenant in the
General Staff as well as to captain there in 1875. In 1877 he served a military attaché for six months in the Russian Army of the
Danube during the
Russo-Turkish War. Warberg was then stationed partly at the headquarters and partly in the
9th Army Corps. He attended the shelling and the
battle of Nikopol fortress and the fortress's surrender in July. Furthermore, he was an attentive witness to the various afflictions at Plevna, Sgalevica and Pelisat as well as to the
Siege of Plevna. From 1909 until his death a year later, he served as
First Aide-de-Camp and Chief of the King's Staff. Warberg had also participated in the work of various committees. He was the secretary of the Swedish-Norwegian Committee for indication of proposals in the security service from 1879 to 1881, and after 1900–1901 having been heavily involved in the work for a new army order, Warberg was in 1903 the chairman of the committee for reviewing and reworking proposals for organizing the
landstorm. ==Personal life==