Remove compilation warnings 'this expression should have type unit'.