The court must appoint a competent attorney-at-law as guardian ad litem to represent the interests of minors and persons of unsound mind interested in such settlement.

(Code 1852, Β§1803; Code 1867, Β§2138; Code 1876, Β§2510; Code 1886, Β§2137; Code 1896, Β§205; Code 1907, Β§2670; Code 1923, Β§5903; Code 1940, T. 61, Β§297.)