warnings cleanup

See https://github.com/GigaOM/legacy-pro/issues/2092