Every contract in restraint of the marriage of any person, other than a minor, is void.
R.L.1910, § 981.